Refactor Linux raise implementation (BZ#15368)
[platform/upstream/glibc.git] / ChangeLog
1 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2
3         [BZ #15368]
4         * sysdeps/unix/sysv/linux/nptl-signals.h
5         (__nptl_clear_internal_signals): New function.
6         (__libc_signal_block_all): Likewise.
7         (__libc_signal_block_app): Likewise.
8         (__libc_signal_restore_set): Likewise.
9         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
10         implementation.
11         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
12         the cached pid/tid value in pthread structure.
13
14 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
15
16         [BZ #20347]
17         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
18
19 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
20
21         [BZ #20348]
22         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
23         preadv64, pwrite64 and pwritev64.
24
25 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
26
27         [BZ #20350]
28         * posix/tst-preadwrite.c: Renamed to ...
29         * posix/tst-preadwrite-common.c: This.
30         (PREAD): Removed.
31         (PWRITE): Likewise.
32         (STRINGIFY): Likewise.
33         (STRINGIFY2): Likewise.
34         (do_prepare): Make it static and remove function arguments.
35         (do_test): Likewise.
36         (PREPARE): Updated.
37         (TEST_FUNCTION): New.
38         (name): Make it static.
39         (fd): Likewise.
40         (do_prepare): Use create_temp_file.
41         (do_test): Renamed to ...
42         (do_test_with_offset): This.  Make it static and accept offset.
43         Properly check return value of PWRITE and PREAD.  Return bytes
44         read.  Don't close fd nor unlink name.
45         * posix/tst-preadwrite.c: Rewrite.
46         * posix/tst-preadwrite64.c: Likewise.
47
48 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
49
50         [BZ #20309]
51         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
52         -mtls-dialect=gnu2 works.
53         * configure: Regenerated.
54         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
55         (tests): Add tst-gnu2-tls1.
56         (modules-names): Add tst-gnu2-tls1mod.
57         ($(objpfx)tst-gnu2-tls1): New.
58         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
59         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
60         * elf/tst-gnu2-tls1.c: New file.
61         * elf/tst-gnu2-tls1mod.c: Likewise.
62         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
63         bytes for push in the PLT entry to align the stack.
64
65 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
66
67         [BZ #20349]
68         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
69
70 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
71
72         [BZ #18707]
73         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
74         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
75
76 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
77
78         * sysdeps/unix/sysv/linux/sysdep.h
79         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
80         guards.
81         * misc/tst-preadvwritev-common.c: New file.
82         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
83         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
84         a check for files larger than 2GB.
85
86         * sysdeps/unix/sysv/linux/mips/kernel-features.h
87         (__ASSUME_OFF_DIFF_OFF64): Remove define.
88         * sysdeps/unix/sysv/linux/pread.c
89         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
90         __OFF_T_MATCHES_OFF64_T.
91         * sysdeps/unix/sysv/linux/pread64.c
92         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
93         * sysdeps/unix/sysv/linux/preadv.c
94         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
95         * sysdeps/unix/sysv/linux/preadv64.c
96         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
97         * sysdeps/unix/sysv/linux/pwrite.c
98         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
99         * sysdeps/unix/sysv/linux/pwrite64.c
100         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
101         * sysdeps/unix/sysv/linux/pwritev.c
102         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
103         * sysdeps/unix/sysv/linux/pwritev64.c
104         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
105
106 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
107
108         * sysdeps/unix/sysv/linux/tile/kernel-features.h
109         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
110
111 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
112
113         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
114
115 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
116
117         [BZ #20240]
118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
119         (CFLAGS-s_modf-ppc32.c): New variable.
120         (CFLAGS-s_modff-ppc32.c): Likewise.
121         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
122         (CFLAGS-s_modf-ppc64.c): Likewise.
123         (CFLAGS-s_modff-ppc64.c): Likewise.
124
125 2016-07-07  Andreas Schwab  <schwab@suse.de>
126
127         [BZ #20263]
128         * nptl/tst-robust10.c: New test.
129         * nptl/Makefile (tests): Add tst-robust10.
130
131 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
132
133         [BZ #20263]
134         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
135
136 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
137
138         * sysdeps/s390/linkmap.h (struct link_map_machine):
139         Remove member gotplt and add member jmprel.
140         * sysdeps/s390/s390-32/dl-machine.h
141         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
142         instead of gotplt with &got[3].
143         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
144         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
145
146 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
147
148         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
149
150 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
151
152         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
153         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
154         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
155         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
156         * libio/vtables.c (_IO_vtable_check)
157         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
158         * libio/libioP.h (IO_set_accept_foreign_vtables)
159         [!PTR_MANGLE]: Do not call PTR_MANGLE.
160
161 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
162
163         [BZ #20314]
164         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
165         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
166         $(common-objpfx)cmath.
167         ($(common-objpfx)cstdlib): New target.
168         ($(common-objpfx)cmath): Likewise.
169
170 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
171
172         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
173
174 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
175
176         [BZ #20327]
177         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
178         are not part of the string.
179
180 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
181
182         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
183         * nptl/tst-cancel4-common.h (fifoname): New variable.
184         (fifofd): Likewise.
185         (cl_fifo): New function.
186         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
187         SIGINT.
188         (tf_open): Add early cancel test.
189
190 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
191
192         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
193
194 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
195
196         * sysdeps/generic/ldsodefs.h
197         (dl_symbol_visibility_binds_local_p): New inline function.
198         * elf/dl-addr.c (determine_info): Treat hidden and internal
199         symbols as local.
200         * elf/dl-lookup.c (do_lookup_x): Likewise.
201         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
202
203 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
204
205         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
206         invalid exception for a sNaN input.
207         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
208         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
209         (__nearbyint_vis3): Likewise
210         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
211         (__nearbyintf_vis3): Likewise
212         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
213         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
214         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
215         Likewise.
216         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
217         Likewise.
218
219 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
220
221         [BZ #20139]
222         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
223         (HAVE_AVX512DQ_ASM_SUPPORT): This.
224         * sysdeps/x86_64/configure.ac: Require assembler from binutils
225         2.24 or above.
226         (HAVE_AVX512_ASM_SUPPORT): Removed.
227         (HAVE_AVX512DQ_ASM_SUPPORT): New.
228         * sysdeps/x86_64/configure: Regenerated.
229         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
230         check unconditional.
231         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
232         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
233         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
234         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
235         Likewise.
236         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
237         Likewise.
238         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
239         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
240         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
241         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
242         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
243         Likewise.
244         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
245         Likewise.
246         * sysdeps/x86_64/multiarch/memset.S: Likewise.
247         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
248         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
249         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
250         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
251         Likewise.
252         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
253         Likewise.
254         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
255         Likewise.
256         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
257         Likewise.
258         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
259         Likewise.
260         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
261         Likewise.
262         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
263         Likewise.
264         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
265         Likewise.
266         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
267         Likewise.
268         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
269         Likewise.
270         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
271         Likewise.
272
273 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
274
275         [BZ #20024]
276         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
277         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
278         of this implementation of vector function.
279         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
280         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
281         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
282         Likewise.
283         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
284         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
285         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
286         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
287         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
288         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
289         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
290         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
291         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
292         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
293         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
294         for testing vector sincos with fixed ABI.
295         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
296         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
297         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
298         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
299         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
300         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
301         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
302         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
303         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
304         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
305         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
306         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
307         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
308         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
309         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
310         * sysdeps/x86_64/fpu/Makefile: Added new tests.
311
312 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
313
314         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
315
316 2016-06-30  Anton Blanchard  <anton@samba.org>
317
318         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
319         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
320         s_sinf-ppc64.
321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
324         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
325
326 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
327
328         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
329         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
330         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
331         e_expf-ppc64.
332         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
333         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
334         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
335         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
336
337 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
338
339         [BZ #20277]
340         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
341         when SHARED is defined.
342
343 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
344
345         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
346         (index_arch_Prefer_ERMS): Likewise.
347         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
348         __memcpy_erms for Prefer_ERMS.
349         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
350         (__memmove_erms): Enabled for libc.a.
351         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
352         __memmove_erms or Prefer_ERMS.
353         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
354         __mempcpy_erms for Prefer_ERMS.
355         * sysdeps/x86_64/multiarch/memset.S (memset): Return
356         __memset_erms for Prefer_ERMS.
357
358 2016-06-30  Andreas Schwab  <schwab@suse.de>
359
360         [BZ #20262]
361         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
362         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
363         of memory.
364
365 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
366
367         [BZ #18645]
368         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
369         (test-extras): Add tst-cleanupx4aux.
370         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
371         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
372         tst-cleanupx4aux.o.
373         * nptl/tst-cleanupx4aux.c: New file.
374
375 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
376
377         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
378
379 2016-06-29  Andreas Schwab  <schwab@suse.de>
380
381         [BZ #20260]
382         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
383         address before the beginning of the string as an integer to avoid
384         array-bounds warning.
385
386 2016-06-28  Richard Henderson  <rth@redhat.com>
387
388         * elf/elf.h (EM_BPF): New.
389         (EM_NUM): Update.
390         (R_BPF_NONE, R_BPF_MAP_FD): New.
391
392         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
393         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
394         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
395         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
396         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
397         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
398         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
399         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
400         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
401         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
402         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
403         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
404         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
405         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
406         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
407         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
408         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
409         (EM_NUM): Update.
410
411 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
412
413         [BZ #18960]
414         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
415         Set _nl_current_LC_CATEGORY_used to two instead of one.
416
417 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
418
419         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
420         (do_test): ... this.
421         (TEST_FUNCTION): New macro.
422          Include test-skeleton.c.
423         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
424         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
425
426 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
427
428         [BZ #15479]
429         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
430         floating-point environment rather than just control word.
431         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
432         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
433         floating-point environment, with "invalid" exceptions merged in,
434         rather than just control word.
435         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
436         * math/libm-test.inc (trunc_test_data): Do not allow spurious
437         "inexact" exceptions.
438
439         [BZ #15479]
440         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
441         floating-point environment rather than just control word.
442         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
443         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
444         floating-point environment, with "invalid" exceptions merged in,
445         rather than just control word.
446         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
447         * math/libm-test.inc (floor_test_data): Do not allow spurious
448         "inexact" exceptions.
449
450         [BZ #15479]
451         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
452         floating-point environment rather than just control word.
453         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
454         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
455         floating-point environment, with "invalid" exceptions merged in,
456         rather than just control word.
457         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
458         * math/libm-test.inc (ceil_test_data): Do not allow spurious
459         "inexact" exceptions.
460
461 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
462
463         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
464         __libc_vfork.
465         (__vfork) [IS_IN (libc)]: Remove alias.
466         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
467         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
468         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
469
470 2016-06-24  Torvald Riegel  <triegel@redhat.com>
471
472         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
473         of atomic_compare_and_exchange_bool_rel.
474         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
475         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
476         catomic_compare_and_exchange_bool_rel): Remove.
477         * sysdeps/aarch64/atomic-machine.h
478         (atomic_compare_and_exchange_bool_rel): Likewise.
479         * sysdeps/alpha/atomic-machine.h
480         (atomic_compare_and_exchange_bool_rel): Likewise.
481         * sysdeps/arm/atomic-machine.h
482         (atomic_compare_and_exchange_bool_rel): Likewise.
483         * sysdeps/mips/atomic-machine.h
484         (atomic_compare_and_exchange_bool_rel): Likewise.
485         * sysdeps/microblaze/atomic-machine.h
486         ( __arch_compare_and_exchange_bool_8_rel,
487         __arch_compare_and_exchange_bool_16_rel): Likewise.
488         * sysdeps/powerpc/atomic-machine.h
489         ( __arch_compare_and_exchange_bool_8_rel,
490         __arch_compare_and_exchange_bool_16_rel): Likewise.
491         * sysdeps/powerpc/powerpc32/atomic-machine.h
492         ( __arch_compare_and_exchange_bool_32_rel,
493         __arch_compare_and_exchange_bool_64_rel): Likewise.
494         * sysdeps/powerpc/powerpc64/atomic-machine.h
495         ( __arch_compare_and_exchange_bool_32_rel,
496         __arch_compare_and_exchange_bool_64_rel): Likewise.
497         * sysdeps/tile/atomic-machine.h
498         (atomic_compare_and_exchange_bool_rel): Likewise.
499
500 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
501
502         [BZ #20296]
503         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
504         when either argument is a NaN.
505         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
506         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
507
508         * math/libm-test.inc (snan_value_ld): New macro.
509         (isgreater_test_data): Add sNaN tests.
510         (isgreaterequal_test_data): Likewise.
511         (isless_test_data): Likewise.
512         (islessequal_test_data): Likewise.
513         (islessgreater_test_data): Likewise.
514         (isunordered_test_data): Likewise.
515         (nextafter_test_data): Likewise.
516         (nexttoward_test_data): Likewise.
517         (remainder_test_data): Likewise.
518         (remquo_test_data): Likewise.
519         (significand_test_data): Likewise.
520         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
521
522 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
523
524         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
525         environment macros are defined.
526         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
527
528 2016-06-23  Florian Weimer  <fweimer@redhat.com>
529
530         [BZ #20191]
531         Implement vtable verification in libio.
532         * Makerules (shlib.lds): Place __libc_IO_vtables section.
533         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
534         * debug/vdprintf_chk.c (__vdprintf_chk): Call
535         _IO_new_file_init_internal instead of _IO_file_init.
536         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
537         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
538         * libio/Makefile (routines): Add vtables.
539         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
540         (_IO_init): Remove, not for internal use.
541         (_IO_init_internal): Declare, internal replacement for _IO_init.
542         (_IO_file_init): Remove, not for internal use.
543         (_IO_new_file_init): Remove, not for internal use.
544         (_IO_new_file_init_internal): Declare, internal replacement for
545         _IO_new_file_init.
546         (_IO_old_file_init): Remove, not for internal use.
547         (_IO_old_file_init_internal): Declare, internal replacement for
548         _IO_old_file_init.
549         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
550         internal use.
551         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
552         Declare.
553         (libio_vtable): New macro.
554         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
555         functions.
556         * libio/fileops.c (_IO_new_file_init_internal): Rename from
557         _IO_new_file_init.
558         (_IO_new_file_init): New externally visible wrapper which disables
559         vtable verification.
560         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
561         Define as vtables.
562         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
563         (_IO_init): New externally visible wrapper which disables
564         vtable verification.
565         * libio/iofdopen.c (_IO_new_fdopen): Call
566         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
567         comment.
568         * libio/iofopen.c (__fopen_internal): Call
569         _IO_new_file_init_internal instead of _IO_file_init.
570         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
571         Define as vtables.
572         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
573         _IO_new_file_init_internal instead of _IO_file_init.
574         * libio/iopopen.c (_IO_new_popen): Likewise.
575         (_IO_proc_jumps): Define as vtable.
576         * libio/iovdprintf.c (_IO_vdprintf): Call
577         _IO_new_file_init_internal instead of _IO_file_init.
578         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
579         (__open_memstream): Call _IO_init_internal instead of _IO_init.
580         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
581         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
582         _IO_old_file_init.
583         (_IO_old_file_init): New externally visible wrapper which disables
584         vtable verification.
585         (_IO_old_file_jumps): Define as vtable.
586         * libio/oldiofdopen.c (_IO_old_fdopen): Call
587         _IO_old_file_init_internal instead of _IO_old_file_init.
588         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
589         * libio/oldiopopen.c (_IO_old_popen): Likewise.
590         (_IO_old_proc_jumps): Define as vtable.
591         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
592         Define as vtables.
593         * libio/vtables.c: New file.
594         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
595         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
596         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
597         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
598         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
599         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
600         instead of _IO_init.
601
602 2016-06-23  Florian Weimer  <fweimer@redhat.com>
603
604         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
605
606 2016-06-23  Florian Weimer  <fweimer@redhat.com>
607
608         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
609         potentially unused.
610
611 2016-06-22  Florian Weimer  <fweimer@redhat.com>
612
613         * test-skeleton.c (write_message): New function.
614         * malloc/tst-mallocfork2.c (write_message): Remove.
615         * debug/tst-longjmp_chk2.c (write_indented): New function.
616         (write_message): Remove.
617         (stackoverflow_handler): Call write_indented.
618
619 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
620
621         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
622         "inexact" exceptions after fnstenv.
623         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
624         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
625         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
626
627 2015-06-22  Zack Weinberg  <zackw@panix.com>
628
629         * sysdeps/generic/bits/hwcap.h: Moved to ...
630         * bits/hwcap.h: Here.
631
632 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
633
634         * sysdeps/aarch64/memcpy.S (memcpy):
635         Further tuning for performance.
636
637 2016-06-21  Florian Weimer  <fweimer@redhat.com>
638
639         [BZ #20284]
640         * malloc/arena.c (reused_arena): Do not return NULL if we start
641         out with a non-corrupted arena.
642
643 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
644
645         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
646         * misc/tst-preadvwritev.c: New file.
647         * misc/tst-preadvwritev64.c: Likewise.
648         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
649         usage.
650         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
651         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
652         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
653         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
654
655 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
656
657         [BZ #19654]
658         * sysdeps/x86_64/fpu/Makefile: Added new tests.
659         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
660         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
661         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
662         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
663         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
664         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
665         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
666         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
667         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
668         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
669         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
670         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
671         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
672         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
673         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
674         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
675         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
676         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
677         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
678         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
679         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
680         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
681         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
682         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
683         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
684
685 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
686
687         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
688         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
689
690 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
691
692         * sysdeps/aarch64/memcpy.S (memcpy):
693         Rewrite of optimized memcpy and memmove.
694         * sysdeps/aarch64/memmove.S (memmove): Remove
695         memmove code (merged into memcpy.S).
696
697 2016-06-20  Florian Weimer  <fweimer@redhat.com>
698
699         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
700         * sysdeps/generic/dl-dtv.h: New file.
701         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
702         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
703         (dtv_t): Remove.
704         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
705         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
706         (dtv_t): Remove.
707         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
708         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
709         (dtv_t): Remove.
710         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
711         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
712         (dtv_t): Remove.
713         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
714         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
715         (dtv_t): Remove.
716         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
717         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
718         (dtv_t): Remove.
719         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
720         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
721         (dtv_t): Remove.
722         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
723         (dtv_t): Remove.
724         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
725         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
726         (dtv_t): Remove.
727         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
728         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
729         (dtv_t): Remove.
730         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
731         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
732         (dtv_t): Remove.
733         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
734         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
735         (dtv_t): Remove.
736         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
737         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
738         (dtv_t): Remove.
739         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
740         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
741         (dtv_t): Remove.
742         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
743         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
744         (dtv_t): Remove.
745         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
746         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
747         (dtv_t): Remove.
748
749 2016-06-20  Florian Weimer  <fweimer@redhat.com>
750
751         Revert symbol poisoning of  __malloc_initialize_hook.
752         * include/stdc-predef.h (__malloc_initialize_hook): Remove
753         poisoning.
754         * malloc/Makefile: Remove un-poisoning.
755         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
756         instead of old__malloc_initialize_hook.
757         * malloc/malloc-hooks.h: Likewise.
758         * malloc/malloc.c: Likewise.
759         * malloc/mcheck-init.c: Likewise.
760
761 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
762
763         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
764
765 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
766
767         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
768         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
769         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
770         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
771
772 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
773
774         * NEWS: Mention addition of nextup and nextdown.
775         * manual/arith.texi: Document nextup and nextdown.
776         * manual/libm-err-tab.pl: Add nextup and nextdown.
777         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
778         * math/Versions (libm): Add GLIBC_2.24.
779         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
780         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
781         Add new test.
782         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
783         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
784         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
785         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
786         (nextup_test_data): Likewise.
787         (nextdown_test_data): Likewise.
788         * math/s_nextdown.c: New file.
789         * math/s_nextdownf.c: Likewise.
790         * math/s_nextdownl.c: Likewise.
791         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
792         F(nextup): New function.
793         F(nextdown): Likewise.
794         * math/tgmath.h: Add nextup and nextdown.
795         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
796         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
797         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
798         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
799         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
800         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
801         Add nextup and nextdown.
802         (CFLAGS-nldbl-nextup.c): New variable.
803         (CFLAGS-nldbl-nextdown.c): Likewise.
804         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
805         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
806         * sysdeps/nacl/libm.abilist: Update.
807         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
808         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
809         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
810         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
811         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
812         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
813         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
814         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
815         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
816         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
817         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
818         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
821         Likewise.
822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
824         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
825         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
826         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
827         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
828         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
829         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
830         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
831         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
832         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
833         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
834         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
835
836 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
837
838         * manual/pattern.texi: Fix typos & grammar errors.
839
840 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
841
842         * manual/search.texi: Fix typos & grammar errors.
843
844 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
845
846         * manual/message.texi: Fix typos & grammar errors.
847
848 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
849
850         * manual/contrib.texi: Fix spelling typos.
851         * manual/crypt.texi: Likewise.
852         * manual/filesys.texi: Likewise.
853         * manual/locale.texi: Likewise.
854         * manual/message.texi: Likewise.
855         * manual/nss.texi: Likewise.
856         * manual/string.texi: Likewise.
857
858 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
859
860         * manual/locale.texi: Fix typos & grammar errors.
861
862 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
863
864         * manual/charset.texi: Fix typos & grammar errors.
865
866 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
867
868         * manual/string.texi: Fix typos.
869
870 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
871
872         * manual/ctype.texi: Fix typos.
873
874 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
875
876         * manual/memory.texi: Fix various typos & grammar errors.
877
878 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
879
880         [BZ #20255]
881         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
882         * math/libm-test.inc (fdim_test_data): Add another test.
883
884         [BZ #6796]
885         [BZ #20255]
886         [BZ #20256]
887         * math/s_fdim.c: Include <math_private.h>.
888         (__fdim): Use math_narrow_eval on result.
889         * math/s_fdimf.c: Include <math_private.h>.
890         (__fdimf): Use math_narrow_eval on result.
891         * sysdeps/i386/fpu/s_fdim.S: Remove file.
892         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
893         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
894         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
895         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
896         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
897         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
898         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
899         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
900         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
901         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
902         * math/libm-test.inc (fdim_test_data): Expect errno setting on
903         overflow.  Add sNaN tests.
904
905         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
906         fpclassify.
907         * math/s_fdimf.c (__fdimf): Likewise.
908         * math/s_fdiml.c (__fdiml): Likewise.
909
910 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
911
912         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
913         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
914         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
915         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
916         ifunc'ed strcasecmp/strncasecmp.
917         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
918         [EALIGN]: Removed.
919         [END]: Likewise.
920         [__strcasecmp]: Define instead of the above to control symbol name.
921         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
922         for __strcasecmp_power8.
923         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
924         for __strncasecmp_power8.
925         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
926         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
927         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
928         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
929         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
930         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
931
932 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
933
934         [BZ #20252]
935         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
936         arguments when second argument is a NaN.
937         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
938         qNaN tests.
939
940         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
941         (conj_test_data): Likewise.
942         (copysign_test_data): Likewise.
943         (creal_test_data): Likewise.
944         (fma_test_data): Likewise.
945         (fmod_test_data): Likewise.
946
947         [BZ #20250]
948         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
949         itself.
950         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
951         zero input to itself.
952         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
953         Likewise.
954         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
955         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
956         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
957         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
958         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
959
960 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
961
962         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
963         * nptl/tst-cancel4-common.c: New file.
964         * nptl/tst-cancel4-common.h: Likewise.
965         * nptl/tst-cancel4.c: Move common definitions to
966         tst-cancel4-common.{c,h} file.
967         * nptl/tst-cancel4_1.c: New test.
968         * nptl/tst-cancel4_2.c: New test.
969
970 2016-06-13  Florian Weimer  <fweimer@redhat.com>
971
972         [BZ #20248]
973         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
974         (write_message): New function.
975         (stackoverflow_handler): Call it instead of printf, to avoid
976         excessive stack usage by printf.
977         (do_test): Restore SIGSEGV, SIGBUS default handlers.
978
979 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
980
981         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
982         (prio_inherit_missing): Remove define.
983         * sysdeps/unix/sysv/linux/arm/kernel-features.h
984         (__ASSUME_FUTEX_LOCK_PI): Likewise.
985         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
986         Likewise.
987         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
988         (__ASSUME_FUTEX_LOCK_PI): Likewise.
989         * sysdeps/unix/sysv/linux/mips/kernel-features.h
990         (__ASSUME_FUTEX_LOCK_PI): Likewise.
991         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
992         (__ASSUME_FUTEX_LOCK_PI): Likewise.
993
994 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
995
996         [BZ #19670]
997         [BZ #19672]
998
999         * io/test-lfs.c (do_prepare): Use xmalloc.
1000         * io/tst-fcntl.c (do_prepare): Likewise.
1001         * libio/tst-fopenloc.c (do_bz17916): Likewise.
1002         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
1003         * login/tst-utmp.c (do_prepare): Likewise.
1004         * posix/tst-exec.c (do_prepare): Likewise.
1005         * posix/tst-pathconf.c (prepare): Likewise.
1006         * posix/tst-spawn.c (do_prepare): Likewise.
1007         * posix/tst-truncate.c (do_prepare): Likewise.
1008         * rt/tst-aio.c (do_prepare): Likewise.
1009         * rt/tst-aio64.c (do_prepare): Likewise.
1010
1011 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1012
1013         [BZ #20237]
1014         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
1015         (get*ent): Set entidx to NULL during initialization.  If entidx is
1016         NULL, start iteration from the beginning.
1017
1018 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1019
1020         * malloc/malloc.c (musable): Return correct size for dumped fake
1021         mmapped chunk.
1022
1023 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1024
1025         [BZ #20222]
1026         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
1027         (_IO_cookie_write): Likewise.
1028         (_IO_cookie_seek): Likewise.
1029         (_IO_cookie_close): Likewise.
1030         (_IO_old_cookie_seek): Likewise.
1031         (set_callbacks): New function.
1032         (_IO_cookie_init): Call set_callbacks to copy callbacks.
1033
1034 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
1035
1036         * locale/programs/localedef.c (oldstyle_tables): Remove.
1037         * locale/programs/localedef.h (oldstyle_tables): Likewise.
1038
1039 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
1040
1041         [BZ #20240]
1042         * math/Makefile (CFLAGS-s_modf.c): New variable.
1043         (CFLAGS-s_modff.c): Likewise.
1044         (CFLAGS-s_modfl.c): Likewise.
1045         * math/libm-test.inc (modf_test_data): Add sNaN tests.
1046
1047 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
1048
1049         [BZ #20215]
1050         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
1051         [!__GNUC_PREREQ (3,2)]: Likewise.
1052
1053 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
1054
1055         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
1056         (msghdr.msg_controllen): Likewise.
1057         (cmsghdr.cmsg_len): Likewise.
1058         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
1059         ptw-oldsendmsg.
1060         (CFLAGS-oldrecvmsg.c): Remove rule.
1061         (CFLAGS-oldsendmsg.c): Likewise.
1062         (CFLAGS-recvmsg.c): Add rule.
1063         (CFLAGS-sendmsg.c): Likewise.
1064         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1065         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
1066         (CFLAGS-recvmsg.c): Remove rule.
1067         (CFLAGS-sendmsg.c): Likewise.
1068         (CFLAGS-oldrecvmsg.c): Likewise.
1069         (CFLAGS-oldsendmsg.c): Likewise.
1070         (CFLAGS-recvmmsg.c): Likewise.
1071         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
1072         to kernel defined interfaces.
1073         (msghdr.msg_controllen): Likewise.
1074         (cmsghdr.cmsg_len): Likewise.
1075         (msghdr.__glibc_reserved1): Remove member.
1076         (msghdr.__glibc_reserved2): Likewise.
1077         (cmsghdr.__glibc_reserved1): Likewise.
1078         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
1079         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
1080         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1081         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1082         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
1083         version.
1084         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
1085         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
1086         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
1087         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
1088         Remove recvmsg and sendmsg.
1089         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
1090         Likewise.
1091         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1092         Likewise.
1093         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1094         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1095         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1096         Likewise.
1097         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1098         Likewise.
1099         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
1100         [libc] (GLIBC_2.24): Likewise.
1101         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1102         Likewise.
1103         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1104         Likewise.
1105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1106         [libc] (GLIBC_2.24): Likewise.
1107         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1108         Likewise.
1109         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1110         Likewise.
1111         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1112         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1113         Likewise.
1114         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1115         Likewise.
1116         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1117         Likewise.
1118         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
1119         Likewise.
1120         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
1121         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
1122         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
1123         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
1124         version for {recv,send,recm,sendm}msg.
1125         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1126         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1127         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1128         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1129         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1130         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1131         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1132         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1133         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1134         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1135         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1136         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1138         Likewise.
1139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1140         Likewise.
1141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1143         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1144         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1145         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1146         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1147         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1148         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1149         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1150         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1151         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1152         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1153         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1154
1155 2016-06-10  Florian Weimer  <fweimer@redhat.com>
1156
1157         [BZ #19564]
1158         Remove __malloc_initialize_hook from the API.
1159         * malloc/malloc.h (__malloc_initialize_hook): Remove.
1160         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
1161         #pragma GCC poison.
1162         * malloc/malloc-hooks.h: New file.
1163         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
1164         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
1165         (old__malloc_initialize_hook): Rename from
1166         __malloc_initialize_hook to evade poisoning.  Turn into compat
1167         symbol.
1168         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
1169         __malloc_initialize_hook.
1170         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
1171         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
1172         * manual/memory.texi (Hooks for Malloc): Remove
1173         __malloc_initialize_hook.  Adjust hook example.
1174
1175 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
1176
1177         [BZ #20235]
1178         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
1179         itself.
1180         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1181         * math/libm-test.inc (log2_test_data): Add sNaN tests.
1182
1183         [BZ #20234]
1184         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
1185         infinity or NaN input to itself.
1186
1187         [BZ #20233]
1188         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
1189         to itself.
1190
1191         [BZ #20232]
1192         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
1193         itself.
1194
1195 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1196
1197         * sysdeps/x86_64/start.S (_start): Always indirect branch to
1198         __libc_start_main via GOT.
1199
1200 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1201
1202         * sysdeps/x86_64/memcopy.h: New file.
1203         * sysdeps/x86_64/wordcopy.c: Likewise.
1204
1205 2016-06-09  Florian Weimer  <fweimer@redhat.com>
1206
1207         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
1208         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
1209         <cstdlib>.
1210         (optimization_barrier): New.
1211         (do_test): Use it.  Call quick_exit in the global namespace.
1212         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
1213         instead of <cstdlib>, <thread>.
1214         (optimization_barrier): New.
1215         (non_main_thread): Adjust declaration.  Call optimization_barrier.
1216         Call quick_exit in the global namespace.
1217         (do_test): Call optimization_barrier.  Use pthread_create,
1218         pthread_join instead of std::thread.
1219
1220 2016-06-09  Andreas Schwab  <schwab@suse.de>
1221
1222         [BZ #19755]
1223         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
1224         new entries in auto-propagate mode.
1225         * nscd/grpcache.c (cache_addgr): Likewise.
1226
1227 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1228
1229         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
1230         New functions.
1231         (add_temp_file): Use them.
1232
1233 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
1234
1235         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
1236
1237 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
1238
1239         [BZ #20229]
1240         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
1241         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1242         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
1243
1244         [BZ #20228]
1245         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
1246         itself.
1247         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1248         * math/libm-test.inc (log10_test_data): Add sNaN tests.
1249
1250         [BZ #20227]
1251         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
1252         itself.
1253         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1254         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1255         * math/libm-test.inc (log_test_data): Add sNaN tests.
1256
1257         [BZ #20226]
1258         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
1259         itself.
1260         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
1261         * math/libm-test.inc (exp_test_data): Add sNaN tests.
1262         (exp10_test_data): Likewise.
1263         (expm1_test_data): Likewise.
1264
1265         [BZ #20225]
1266         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
1267         itself.
1268         * math/s_ldexpf.c (__ldexpf): Likewise.
1269         * math/s_ldexpl.c (__ldexpl): Likewise.
1270         * math/w_scalbln.c (__w_scalbln): Likewise.
1271         * math/w_scalblnf.c (__w_scalblnf): Likewise.
1272         * math/w_scalblnl.c (__w_scalblnl): Likewise.
1273         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
1274         (scalbln_test_data): Likewise.
1275
1276         [BZ #20224]
1277         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
1278         argument to itself.
1279         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
1280
1281 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1282
1283         [BZ #19776]
1284         * sysdeps/x86_64/memcpy.S: Make it dummy.
1285         * sysdeps/x86_64/mempcpy.S: Likewise.
1286         * sysdeps/x86_64/memmove.S: New file.
1287         * sysdeps/x86_64/memmove_chk.S: Likewise.
1288         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
1289         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
1290         * sysdeps/x86_64/memmove.c: Removed.
1291         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1292         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1293         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
1294         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
1295         Likewise.
1296         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1297         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1298         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1299         memcpy-sse2-unaligned, memmove-avx-unaligned,
1300         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
1301         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1302         (__libc_ifunc_impl_list): Replace
1303         __memmove_chk_avx512_unaligned_2 with
1304         __memmove_chk_avx512_unaligned.  Remove
1305         __memmove_chk_avx_unaligned_2.  Replace
1306         __memmove_chk_sse2_unaligned_2 with
1307         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
1308         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
1309         with __memmove_avx512_unaligned.  Replace
1310         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
1311         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
1312         with __memcpy_chk_avx512_unaligned.  Remove
1313         __memcpy_chk_avx_unaligned_2.  Replace
1314         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
1315         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
1316         Replace __memcpy_avx512_unaligned_2 with
1317         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
1318         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
1319         with __mempcpy_chk_avx512_unaligned.  Remove
1320         __mempcpy_chk_avx_unaligned_2.  Replace
1321         __mempcpy_chk_sse2_unaligned_2 with
1322         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
1323         Replace __mempcpy_avx512_unaligned_2 with
1324         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
1325         Replace __mempcpy_sse2_unaligned_2 with
1326         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
1327         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
1328         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
1329         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
1330         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
1331         (ENTRY): Removed.
1332         (END): Likewise.
1333         (ENTRY_CHK): Likewise.
1334         (libc_hidden_builtin_def): Likewise.
1335         Don't include ../memcpy.S.
1336         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
1337         __memcpy_chk_avx512_unaligned_erms and
1338         __memcpy_chk_avx512_unaligned.  Use
1339         __memcpy_chk_avx_unaligned_erms and
1340         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1341         Default to __memcpy_chk_sse2_unaligned.
1342         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
1343         Change function suffix from unaligned_2 to unaligned.
1344         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
1345         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
1346         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
1347         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
1348         (ENTRY): Removed.
1349         (END): Likewise.
1350         (ENTRY_CHK): Likewise.
1351         (libc_hidden_builtin_def): Likewise.
1352         Don't include ../mempcpy.S.
1353         (mempcpy): New.  Add a weak alias.
1354         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
1355         __mempcpy_chk_avx512_unaligned_erms and
1356         __mempcpy_chk_avx512_unaligned.  Use
1357         __mempcpy_chk_avx_unaligned_erms and
1358         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1359         Default to __mempcpy_chk_sse2_unaligned.
1360
1361 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1362
1363         [BZ #19881]
1364         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1365         into ...
1366         * sysdeps/x86_64/memset.S: This.
1367         (__bzero): Removed.
1368         (__memset_tail): Likewise.
1369         (__memset_chk): Likewise.
1370         (memset): Likewise.
1371         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1372         defined.
1373         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1374         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1375         (__memset_zero_constant_len_parameter): Check SHARED instead of
1376         PIC.
1377         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1378         memset-avx2 and memset-sse2-unaligned-erms.
1379         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1380         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1381         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1382         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1383         (__bzero): Enabled.
1384         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1385         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1386         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1387         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1388         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1389         (memset): Removed.
1390         (__memset_chk): Likewise.
1391         (MEMSET_SYMBOL): New.
1392         (libc_hidden_builtin_def): Replace __memset_sse2 with
1393         __memset_sse2_unaligned.
1394         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1395         __memset_chk_sse2 and __memset_chk_avx2 with
1396         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1397         Use __memset_chk_sse2_unaligned_erms or
1398         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1399         __memset_chk_avx512_unaligned_erms and
1400         __memset_chk_avx512_unaligned.
1401
1402 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1403
1404         * math/gen-auto-libm-test.c (fp_format_desc): remove
1405         suffix member.
1406         (output_generic_value): Remove usage of suffix member,
1407         and the resulting unuse of the fp_format argument.
1408         (output_for_one_input_case): Remove unused fp_format
1409         parameter.
1410
1411         * math/auto-libm-test-out: Regenerate.
1412
1413         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1414         usage with TEST_COND_ibm128.
1415         (TEST_COND_flt_32): Remove.
1416         (TEST_COND_dbl_64): Remove.
1417         (TEST_COND_ldbl_96_intel): Remove.
1418         (TEST_COND_ldbl_96_m68k): Remove.
1419         (TEST_COND_ldbl_128): Remove.
1420
1421 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1422
1423         * auto-libm-test-in:
1424         Replace flt-32 usage with binary32.
1425         Replace dbl-64 usage with binary64.
1426         Replace ldbl-intel-96 usage with intel96.
1427         Replace ldbl-m68k-96 usage with m68k96.
1428         Replace ldbl-128ibm usage with ibm128.
1429         Replace ldbl-128 usage with binary128.
1430
1431         * auto-libm-test-out: Regenerate.
1432
1433 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1434
1435         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1436         (parse_ulps): Dynamically generate type name matching
1437         string from all_floats.
1438         (get_ulps): Generate the ulps as an array instead.
1439         (output_ulps): Dynamically compose the type based
1440         on the number of supported formats, and print
1441         the indices as type specific helper macros.
1442
1443         * math/libm-test.inc: Remove comment about CHOOSE.
1444         (ulp_data): Generate the type in libm-test-ulps.h.
1445         (ULP_IDX): New macro.
1446         (find_ulps): Update usage of max_ulp.
1447
1448         * math/test-double-vlen2.h (CHOOSE): Remove.
1449         * math/test-double-vlen4.h (CHOOSE): Likewise.
1450         * math/test-double-vlen8.h (CHOOSE): Likewise.
1451         * math/test-float.c (CHOOSE): Likewise.
1452         * math/test-float-finite.c (CHOOSE): Likewise.
1453         * math/test-double.c (CHOOSE): Likewise.
1454         * math/test-double-finite.c (CHOOSE): Likewise.
1455         * math/test-idouble.c (CHOOSE): Likewise.
1456         * math/test-ifloat.c (CHOOSE): Likewise.
1457         * math/test-ildoubl.c (CHOOSE): Likewise.
1458         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1459         * math/test-ldouble.c (CHOOSE): Likewise.
1460
1461         * math/test-float.h (TEST_FLOAT): Remove.
1462         * math/test-double.h (TEST_DOUBLE): Likewise.
1463         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1464
1465 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1466
1467         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1468         (parse_args): Strip C suffix from floating point literals
1469         typed with 'f' and wrap them with LIT().
1470
1471         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1472         (test_ff_f_data_nexttoward): Rename to
1473         (test_fj_f_data): New struct.
1474         (nexttoward_test_data): Relabel tests as
1475         TEST_fj_f instead of TEST_ff_f.
1476
1477 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1478
1479         Emacs bug 23726.
1480         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1481         (__libc_realloc): Correct size computation for dumped fake mmapped
1482         chunks.
1483
1484 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1485
1486         [BZ #20219]
1487         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1488         to itself.
1489         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1490
1491         [BZ #20218]
1492         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1493         to itself.
1494         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1495
1496 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1497
1498         [BZ #20195]
1499         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1500         check to ...
1501         (init_cpu_features): Here.
1502
1503 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1504
1505         [BZ #20214]
1506         * sysdeps/unix/sysv/linux/bits/in.h
1507         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1508          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1509         Define to 1.
1510         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1511          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1512         Define to 0.
1513         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1514         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1515
1516 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1517
1518         [BZ #20198]
1519         * stdlib/Makefile (tests): Add tst-quick_exit, and
1520         tst-thread-quick_exit.
1521         [ifeq ($(have-cxx-thread_local),yes)]
1522         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1523         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1524         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1525         (LDLIBS-tst-thread-quick_exit): Likewise.
1526         [ifneq ($(have-cxx-thread_local),yes)]
1527         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1528         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1529         If run_dtors is true call __call_tls_dtors.
1530         (exit): Call __run_exit_handlers with run_dtors set to true.
1531         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1532         definition.
1533         * stdlib/quick_exit.c (quick_exit): Remove function.
1534         (__new_quick_exit): New function.
1535         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1536         function.
1537         * stdlib/tst-quick_exit.cc: New file.
1538         * stdlib/tst-thread-quick_exit.cc: New file.
1539         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1540         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1541         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1542         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1543         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1544         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1545         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1546         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1547         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1548         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1549         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1550         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1551         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1552         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1553         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1554         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1559         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1560         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1561         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1562         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1563         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1564         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1565         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1566         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1567         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1568         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1569
1570 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1571
1572         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1573         a typo in comments.
1574
1575 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1576
1577         [BZ #20213]
1578         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1579         argument to itself.
1580         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1581
1582 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1583
1584         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1585         required flags.
1586         (CFLAGS-pwritev64.c): Likewise.
1587         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1588         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1589         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1590         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1591         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1592         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1593         syscall from auto-generation.
1594         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1595         [WORDSIZE == 64] (pwritev64): Remove macro.
1596         [!PWRITEV] (PWRITEV): Likewise.
1597         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1598         [!PWRITEV] (PWRITE): Likewise.
1599         [!PWRITEV] (OFF_T): Likewise.
1600         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1601         (LO_HI_LONG): Remove macro.
1602         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1603         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1604         (PWRITEV): Remove macro.
1605         (PWRITEV_REPLACEMENTE): Likewise.
1606         (PWRITE): Likewise.
1607         (OFF_T): Likewise.
1608         (pwritev64): New function.
1609         * nptl/tst-cancel4.c (tf_writev): Add test.
1610
1611         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1612         required flags.
1613         (CFLAGS-preadv64.c): Likewise.
1614         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1615         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1616         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1617         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1618         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1619         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1620         syscall from auto-generation.
1621         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1622         [WORDSIZE == 64] (preadv64): Remove macro.
1623         [!PREADV] (PREADV): Likewise.
1624         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1625         [!PREADV] (PREAD): Likewise.
1626         [!PREADV] (OFF_T): Likewise.
1627         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1628         (LO_HI_LONG): Remove macro.
1629         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1630         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1631         (PREADV): Remove macro.
1632         (PREADV_REPLACEMENTE): Likewise.
1633         (PREAD): Likewise.
1634         (OFF_T): Likewise.
1635         (preadv64): New function.
1636         * nptl/tst-cancel4.c (tf_preadv): Add test.
1637
1638 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1639
1640         [BZ #20212]
1641         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1642         argument to itself.
1643         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1644
1645 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1646
1647         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1648         New symbol defined as libc_hidden_def.
1649         (strcasestr): Became a weak alias to __strcasestr.
1650         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1651         according to multi-arch support.  Move __stpncpy hidden
1652         definition from here to...
1653         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1654         symbol stpncpy.
1655         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1656         libc_hidden_builtin_def.
1657         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1658         memset symbol to use when multi-arch support is available.
1659
1660 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1661
1662         * dlfcn/tst-rec-dlopen.c: Include string.h.
1663
1664 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1665
1666         * manual/install.texi: Remove mention of --without-tls
1667         * INSTALL: Regenerate.
1668
1669 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1670
1671         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1672         Remove.
1673         (call_function, interposed_malloc_called): New variables.
1674         (malloc): New function.
1675         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1676         and clear call_function as needed.
1677
1678 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1679
1680         * include/wchar.h (__wmemset): Use __typeof.
1681
1682 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1683
1684         * include/wchar.h (__wmemset): Declare function without typeof.
1685
1686 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1687
1688         [BZ #20205]
1689         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1690         exponent when incrementing negative subnormal with low mantissa
1691         word zero.
1692         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1693         Add another test.
1694
1695 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1696
1697         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1698         __wmemset instead of wmemset.
1699
1700 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1701
1702         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1703         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1704         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1705         __USE_KERNEL_IPV6_DEFS to 0.
1706         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1707         Update comment.
1708
1709 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1710
1711         [BZ #19861]
1712         Do not use IFUNC resolver with potentially unrelocated symbol.
1713         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1714         (DEFINE_FORK): Remove macro and inline definition.
1715         (fork_alias): Renamed from fork_ifunc.
1716         (__fork_alias): Renamed from __fork_ifunc.
1717
1718 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1719
1720         [BZ 19653]
1721         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1722         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1723
1724 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1725
1726         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1727         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1728         i386-linux-gnu).
1729         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1730         Set to no.
1731         * sysdeps/mach/hurd/configure: Refresh.
1732
1733 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1734
1735         [BZ #20178]
1736         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1737         on failure instead of exit.
1738
1739 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1740
1741         [BZ #3629]
1742         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1743         of POSIX.1-2008.
1744
1745 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1746
1747         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1748           Use PLT entry for calling _hurd_self_sigstate.
1749
1750 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1751
1752         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1753         available logical processors with SMT level type sharing L2
1754         cache for Intel processors.
1755
1756 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1757
1758         [BZ #20160]
1759         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1760         argument to itself before returning the result.
1761         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1762         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1763         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1764         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1765         Likewise.
1766         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1767         Likewise.
1768         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1769         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1770         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1771         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1772         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1773         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1774
1775         [BZ #20160]
1776         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1777         argument to itself before returning the result.
1778         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1779         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1780         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1781         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1782         Likewise.
1783         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1784         Likewise.
1785         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1786         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1787         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1788         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1789         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1790         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1791
1792 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1793
1794         * libm-test.inc: Replace usage of M_El with
1795         (lit_e): New macro.
1796
1797 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1798
1799         * libm-test.inc: Replace usage of M_PI_4l with
1800         (lit_pi_4_d): New macro.
1801
1802 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1803
1804         * libm-test.inc: Replace usage of M_PIl with
1805         (lit_pi): New macro.
1806
1807 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1808
1809         * libm-test.inc: Replace usage of M_PI2l with
1810         (lit_pi_2_d): New macro.
1811
1812         * math/test-double.h (LITM): New macro.
1813         * math/test-float.h (LITM): Likewise.
1814         * math/test-ldouble.h (LITM): Likewise.
1815
1816 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1817
1818         * libm-test.inc (M_PI_34l): Rename to
1819         (lit_pi_3_m_4_d): New Macro.
1820         (M_PI_34_LOG10El): Rename to
1821         (lit_pi_3_m_4_ln10_m_d): New Macro.
1822         (M_PI2_LOG10El): Rename to
1823         (lit_pi_2_ln10_m_d):  New Macro.
1824         (M_PI4_LOG10El): Rename to
1825         (lit_pi_4_ln10_m_d):  New Macro.
1826         (M_PI_LOG10El): Rename to
1827         (lit_pi_ln10_d):  New Macro.
1828
1829 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1830
1831         [BZ #20157]
1832         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1833         determine whether to negate low half if [_ARCH_PPCGR], and integer
1834         comparison otherwise.
1835         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1836         determine whether to negate low half.
1837
1838         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1839         (NO_TEST_INLINE_DOUBLE): Likewise.
1840         (TEST_COND_x86_64): Likewise.
1841         (TEST_COND_x86): Likewise.
1842         (M_PI_6l): Likewise.
1843
1844 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1845
1846         * math/libm-test.inc:
1847         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1848         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1849         (TEST_LDOUBLE): Update usage to evaluate as true if
1850         the guarded tests match the property being tested.
1851         (LDBL_MAX_EXP): Change to MAX_EXP.
1852         (LDBL_MIN_EXP): Change to MIN_EXP.
1853         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1854         nexttoward tests.
1855
1856 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1857
1858         * math/libm-test.inc:
1859         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1860         (TYPE_MIN): Likewise.
1861         (TYPE_TRUE_MIN): Likewise.
1862         (TYPE_MAX): Likewise.
1863         (MIN_EXP): Likewise.
1864         (MAX_EXP): Likewise.
1865         (MANT_DIG): Likewise.
1866
1867         (FSTR_MAX): New macro.
1868         (__CONCATX): Likewise.
1869         (QTYPE_STR): Likewise.
1870         (TEST_COND_binary32): Likewise.
1871         (TEST_COND_binary64): Likewise.
1872         (TEST_COND_binary128): Likewise.
1873         (TEST_COND_ibm128): Likewise.
1874         (TEST_COND_intel96): Likewise.
1875         (TEST_COND_m68k96): Likewise.
1876
1877         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1878         (TEST_COND_dbl_64): Likewise.
1879         (TEST_COND_ldbl_96_intel): Likewise.
1880         (TEST_COND_ldbl_96_m68k): Likewise.
1881         (TEST_COND_ldbl_128): Likewise.
1882         (TEST_COND_ldbl_128ibm): Likewise.
1883
1884         (plus_zero): Redefine using LIT macro.
1885         (minus_zero): Likewise.
1886         (plus_infty): Redefine as (INF).
1887         (minux_infty): Redefine as (-INF).
1888         (max_value): Redefine as TYPE_MAX.
1889         (min_value): Redefine as TYPE_MIN.
1890         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1891
1892         (print_float): Refactor to use snprintf to convert FLOAT values
1893         to string. This brings it closer to dropin replacement of strtof
1894         for the TS 18661 defined types.
1895         (update_stats): Likewise.
1896         (print_complex_function_ulps): Likewise.
1897         (print_max_error): Likewise.
1898         (print_complex_max_error): Likewise.
1899         (check_float_internal): Likewise.
1900
1901         * math/test-float.h (PREFIX): New macro.
1902         (LIT): Likewise.
1903         (TYPE_STR): Likewise.
1904         (FTOSTR): Likewise.
1905
1906         * math/test-double.h (PREFIX): New macro.
1907         (LIT): Likewise.
1908         (TYPE_STR): Likewise.
1909         (FTOSTR): Likewise.
1910
1911         * math/test-ldouble.h (PREFIX): New macro.
1912         (LIT): Likewise.
1913         (TYPE_STR): Likewise.
1914         (FTOSTR): Likewise.
1915
1916 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1917
1918         [BZ #20156]
1919         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1920         to itself when zero or not finite.
1921         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1922         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1923         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1924         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1925
1926 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1927
1928         [BZ #20153]
1929         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1930         x * x + x for infinities and NaNs.
1931
1932         [BZ #20151]
1933         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1934         argument to itself before returning result.
1935         (__ieee754_y0l): Likewise.
1936         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1937         (__ieee754_y1l).
1938
1939         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1940         (atan_test_data): Likewise.
1941         (ceil_test_data): Likewise.
1942         (cos_test_data): Likewise.
1943         (cosh_test_data): Likewise.
1944         (erf_test_data): Likewise.
1945         (exp2_test_data): Likewise.
1946         (fabs_test_data): Likewise.
1947         (floor_test_data): Likewise.
1948         (ilogb_test_data): Likewise.
1949         (j0_test_data): Likewise.
1950         (j1_test_data): Likewise.
1951         (jn_test_data): Likewise.
1952         (lgamma_test_data): Likewise.
1953         (lrint_test_data): Likewise.
1954         (llrint_test_data): Likewise.
1955         (logb_test_data): Likewise.
1956         (lround_test_data): Likewise.
1957         (llround_test_data): Likewise.
1958         (nearbyint_test_data): Likewise.
1959         (rint_test_data): Likewise.
1960         (round_test_data): Likewise.
1961         (sin_test_data): Likewise.
1962         (sincos_test_data): Likewise.
1963         (sinh_test_data): Likewise.
1964         (sqrt_test_data): Likewise.
1965         (tan_test_data): Likewise.
1966         (tanh_test_data): Likewise.
1967         (tgamma_test_data): Likewise.
1968         (trunc_test_data): Likewise.
1969         (y0_test_data): Likewise.
1970         (y1_test_data): Likewise.
1971         (yn_test_data): Likewise.
1972
1973         * math/libm-test.inc: Update comment about NaN testing.
1974         (TEST_SNAN): New macro.
1975         (snan_value): Likewise.
1976         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1977         (fpclassify_test_data): Add sNaN tests.
1978         (isfinite_test_data): Likewise.
1979         (isinf_test_data): Likewise.
1980         (isnan_test_data): Likewise.
1981         (isnormal_test_data): Likewise.
1982         (issignaling_test_data): Likewise.
1983         (signbit_test_data): Likewise.
1984         * math/gen-libm-test.pl (%beautify): Add snan_value.
1985         (show_exceptions): Add argument $test_snan.
1986         (parse_args): Handle snan_value as non-finite.  Update call to
1987         show_exceptions.
1988         * math/Makefile (libm-test-no-inline-cflags): Add
1989         -fsignaling-nans.
1990
1991 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1992
1993         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1994         (CFLAGS-oldsendmsg.c): Add rule.
1995         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1996         Correct recvmsg symbol name.
1997         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1998         Likewise.
1999
2000 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2001
2002         * sysdeps/unix/sysv/linux/Makefile
2003         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
2004         oldsendmmsg.
2005         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
2006         sendmmsg.
2007         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2008         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2009         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2010         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2012         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2013         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2014         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
2015         Likewise.
2016         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2017         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
2018         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
2019         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
2020         iovlen and controllen fields to adjust to POSIX specification.
2021         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
2022
2023         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
2024         and change to correct expected type.
2025         (msghdr.msg_controllen): Likewise.
2026         (cmsghdr.cmsg_len): Likewise.
2027         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
2028         expected POSIX assumption about the size.
2029         (msghdr.msg_controllen): Likewise.
2030         (msghdr.__glibc_reserved1): Likewise.
2031         (msghdr.__glibc_reserved2): Likewise.
2032         (cmsghdr.cmsg_len): Likewise.
2033         (cmsghdr.__glibc_reserved1): Likewise.
2034         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
2035         Add ptw-oldrecvmsg and ptw-oldsendmsg.
2036         (CFLAGS-sendmsg.c): Remove rule.
2037         (CFLAGS-recvmsg.c): Likewise.
2038         (CFLAGS-oldsendmsg.c): Add rule.
2039         (CFLAGS-oldrecvmsg.c): Likewise.
2040         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
2041         recvmsg and sendmsg.
2042         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
2043         Likewise.
2044         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
2045         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
2046         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
2047         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
2048         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
2049         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
2050         Likewise.
2051         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
2052         Likewise.
2053         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
2054         Likewise.
2055         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
2056         Likewise.
2057         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
2058         Likewise.
2059         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
2060         Likewise.
2061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
2062         (GLIBC_2.24): Likewise.
2063         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
2064         Likewise.
2065         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
2066         Likewise.
2067         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
2068         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
2069         Likewise.
2070         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
2071         Likewise.
2072         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
2073         Likewise.
2074         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
2075         (GLIBC_2.24): Likewise.
2076         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
2077         Likewise.
2078         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
2079         Likewise.
2080         * sysdeps/unix/sysv/linux/Makefile
2081         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
2082         (CFLAGS-sendmsg.c): Add rule.
2083         (CFLAGS-recvmsg.c): Likewise.
2084         (CFLAGS-oldsendmsg.c): Likewise.
2085         (CFLAGS-oldrecvmsg.c): Likewise.
2086         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
2087         initialization.
2088         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
2089         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
2090         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
2091         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
2092         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
2093         iovlen and controllen fields to adjust to POSIX specification.
2094         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
2095         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
2096         added recvmsg and sendmsg.
2097         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2098         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2099         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2100         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2101         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2102         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2103         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2104         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2105         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2106         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2107         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2108         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
2109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2110         Likewise.
2111         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2113         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2114         Likewise.
2115         Likewise.
2116         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2117         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2118         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2119         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2120         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2121         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2122         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2123         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2124         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2125         Likewise.
2126         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2127         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2128
2129         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
2130         from auto-generation.
2131         (sendmsg): Likewise.
2132         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
2133         (sendmsg): Likewise.
2134         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
2135         (sendmsg): Likewise.
2136         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
2137         (sendmsg): Likewise.
2138         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
2139         (sendmsg): Likewise.
2140         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
2141         (sendmsg): Likewise.
2142         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
2143         Likewise.
2144         (sendmsg): Likewise.
2145         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
2146         (sendmsg): Likewise.
2147         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2148         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2149         Remove.
2150         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2151         Likewise.
2152         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2153         Undefine.
2154         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2155         Likewise.
2156         * sysdeps/unix/sysv/linux/kernel-features.h
2157         (__ASSUME_SENDMSG_SYSCALL): Define.
2158         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2159         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2160         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2161         Remove.
2162         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2163         Likewise.
2164         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2165         Undefine.
2166         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2167         Likewise.
2168         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2169         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2170         Remove.
2171         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2172         Likewise.
2173         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2174         Undefine.
2175         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2176         Likewise.
2177         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2178         (__ASSUME_SENDMSG_SYSCALL): Undefine.
2179         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2180         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2181         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2182         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2183         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2184         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2185         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2186
2187 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2188
2189         * stdlib/gen-tst-strtod-round.c: Add backslash to
2190         compile command in comment.
2191         (printfp): Remove the literal suffix, and define an infinite
2192         value as INF to avoid expansion clash with INFINITY.
2193         (round_str): Remove the literal suffix.
2194         (round_for_all): Likewise, remove the now duplicate ldbl-64
2195         entry, and remove some magic constants.
2196
2197         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
2198         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
2199         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
2200         (_CONCAT): New macro.
2201         (CONCAT): Likewise.
2202         (CHOOSE_ld): Likewise.
2203         (CHOOSE_f): Likewise.
2204         (CHOOSE_d): Likewise.
2205         (FTYPE_MEMBER): Likewise.
2206         (BOOL_MEMBER): Likewise.
2207         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
2208         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
2209         (_XNTRY): Likewise.
2210         (XNTRY): Likewise.
2211         (_ENTRY): Likewise.
2212         (ENTRY): Likewise.
2213         (test_exactness): Generate members via macro.
2214         (test_results): Likewise.
2215         (test): Update members.
2216         (TEST): Redefine using new macros.
2217         (INF): New macro.
2218         (fetestmodes): New structure.
2219         (do_test): Refactor to be type generic.
2220         (test_in_one_mode): Refactor duplicate code into
2221         (GEN_ONE_TEST): New macro.
2222
2223         * stdlib/tst-strtod-round-data.h: Regenerate.
2224
2225         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
2226         Extend to pass additional arbitrary parameters to
2227         generators.
2228
2229 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
2230
2231         [BZ #15479]
2232         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
2233         floating-point state after first floating-point operation on
2234         input.  Restore full floating-point state instead of just rounding
2235         mode.
2236         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
2237         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
2238         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
2239         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
2240         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2241
2242         [BZ #15479]
2243         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
2244         floating-point state after first floating-point operation on
2245         input.  Restore full floating-point state instead of just rounding
2246         mode.
2247         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2248         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2249         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2250         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2251         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2252
2253 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2254
2255         [BZ #19727]
2256         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
2257         valid high surrogate.
2258         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
2259         of an utf16 surrogate.
2260         * iconv/gconv_simple.c (BODY): Likewise.
2261         * iconvdata/bug-iconv12.c: New file.
2262         * iconvdata/Makefile (tests): Add bug-iconv12.
2263
2264 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2265
2266         [BZ #19726]
2267         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
2268         outptrp in case of an illegal input.
2269         * iconv/tst-iconv6.c: New file.
2270         * iconv/Makefile (tests): Add tst-iconv6.
2271
2272 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2273
2274         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
2275         an error in case of a value in range of an utf16 low surrogate.
2276
2277 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2278
2279         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
2280         an error in case of a value in range of an utf16 low surrogate.
2281
2282 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2283
2284         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
2285         Move to ...
2286         * sysdeps/s390/Makefile: ... here.
2287         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
2288         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
2289         (BRANCH_ON_COUNT): New define.
2290         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
2291         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
2292         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
2293         run on s390-32, too.
2294         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
2295         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
2296         run on s390-32, too.
2297         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
2298         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
2299         run on s390-32, too.
2300
2301 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2302
2303         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
2304         etf3eh or new vector loop-variant.
2305
2306 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2307
2308         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
2309         etf3eh or new vector loop-variant.
2310
2311 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2312
2313         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
2314         or new vector loop-variant.
2315
2316 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2317
2318         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
2319         Rename to TR_LOOP and usage of tr instead of troo instruction.
2320
2321 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2322
2323         * sysdeps/s390/multiarch/gconv_simple.c: New File.
2324         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
2325
2326 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2327
2328         * sysdeps/s390/multiarch/8bit-generic.c: New File.
2329         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
2330         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
2331         New override define.
2332         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
2333
2334 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2335
2336         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
2337         * sysdeps/s390/configure.ac: Add test for S390 vector register
2338         support in gcc.
2339         * sysdeps/s390/configure: Regenerated.
2340
2341 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2342
2343         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
2344         Install file from $(objpfx)gconv-modules.
2345         ($(objpfx)gconv-modules): Concatenate architecture specific file
2346         in variable sysdeps-gconv-modules and gconv-modules in src dir.
2347         * sysdeps/s390/gconv-modules: New file.
2348         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
2349         Deleted.
2350         ($(objpfx)gconv-modules-s390): Deleted.
2351         (sysdeps-gconv-modules): New variable.
2352
2353 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2354
2355         [BZ #15479]
2356         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
2357         of immediate operand to rounding instruction.
2358         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
2359         Likewise.
2360         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
2361         Likewise.
2362         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
2363         Likewise.
2364
2365 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2366
2367         * math/libm-test.inc (MIN_EXP): Directly define as
2368         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2369
2370 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2371
2372         * math/libm-test.inc (MANT_DIG): Directly define as
2373         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2374
2375 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2376
2377         * stdlib/gen-tst-strtod-round.c (main):
2378           Change usage to more closely match the generated
2379           output.  Add usage and compilation instructions.
2380           (string_to_fp): Add and use FILE* parameter as
2381           output target.
2382           (print_fp): Likewise.
2383           (round_str): Likewise.
2384           (round_for_all): Likewise.
2385         * stdlib/tst-strtod-round.c (tests): Move into
2386         * stdlib/tst-strtod-round-data.h: New file.
2387
2388 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2389
2390         [BZ #15479]
2391         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2392         (__round): Do not force "inexact" exception.
2393         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2394         variable.
2395         (__round): Do not force "inexact" exception.
2396         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2397         (__roundf): Do not force "inexact" exception.
2398         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2399         (__roundl): Do not force "inexact" exception.
2400         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2401         (__roundl): Do not force "inexact" exception.
2402         * math/libm-test.inc (round_test_data): Do not allow spurious
2403         "inexact" exceptions.
2404
2405         [BZ #15479]
2406         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2407         exception in comment.
2408         (huge): Remove variable.
2409         (__floor): Do not force "inexact" exception.
2410         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2411         "inexact" exception in comment.
2412         (huge): Remove variable.
2413         (__floor): Do not force "inexact" exception.
2414         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2415         exception in comment.
2416         (huge): Remove variable.
2417         (__floorf): Do not force "inexact" exception.
2418         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2419         exception in comment.
2420         (huge): Remove variable.
2421         (__floorl): Do not force "inexact" exception.
2422
2423         [BZ #15479]
2424         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2425         exception in comment.
2426         (huge): Remove variable.
2427         (__ceil): Do not force "inexact" exception.
2428         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2429         "inexact" exception in comment.
2430         (huge): Remove variable.
2431         (__ceil): Do not force "inexact" exception.
2432         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2433         (__ceilf): Do not force "inexact" exception.
2434         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2435         exception in comment.
2436         (huge): Remove variable.
2437         (__ceill): Do not force "inexact" exception.
2438
2439 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2440
2441         * config.h.in (BIND_NOW): New.
2442         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2443         * configure: Regenerated.
2444         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2445         indirect branch via the GOT slot.
2446
2447 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2448
2449         [BZ #19765]
2450         * sysdeps/s390/mempcpy.S: New File.
2451         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2452         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2453         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2454         Add mempcpy variants.
2455         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2456         (memcpy): Adjust to be usable from mempcpy entry point.
2457         (__memcpy_mvcle): Likewise.
2458         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2459         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2460         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2461         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2462         (__memcpy_z10): Likewise.
2463         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2464
2465 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2466
2467         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2468         Remove __GI_ symbol.
2469         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2470         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2471         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2472         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2473         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2474         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2475
2476 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2477
2478         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2479         Use cghi instead of chi to compare 64bit value.
2480
2481 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2482
2483         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2484         Jump to 1MB check before executing mvc-loop.
2485
2486 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2487
2488         [BZ #6527]
2489         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2490         unconditionally.
2491         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2492
2493 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2494
2495         * stdlib/tst-strtod6.c (do_test): Use new type generic
2496         invocation of the test function.
2497         (test): Refactor into ...
2498         (TEST_STRTOD): New macro base function.
2499
2500 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2501
2502         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2503         (TEST_STRTOD): New macro.
2504         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2505
2506 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2507
2508         * stdlib/tst-strtod6.c (do_test): Use new type generic
2509         invocation of the test function.
2510         (test): Refactor into ...
2511         (TEST_STRTOD): New macro base function.
2512
2513 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2514
2515         CVE-2016-4429
2516         [BZ #20112]
2517         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2518         payload.
2519
2520 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2521
2522         [BZ #20111]
2523         * bits/sockaddr.h (_SS_SIZE): Define.
2524         * bits/socket.h (_SS_SIZE): Remove.
2525         (_SS_PADSIZE): Adjust to account for all padding.
2526         (struct sockaddr_storage): Update comment.  Avoid implicit
2527         padding.
2528         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2529         (_SS_PADSIZE): Adjust to account for all padding.
2530         (struct sockaddr_storage): Update comment.  Avoid implicit
2531         padding.
2532         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2533         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2534         (_SS_PADSIZE): Adjust to account for all padding.
2535         (struct sockaddr_storage): Update comment.  Avoid implicit
2536         padding.
2537         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2538         __SS_SIZE is 126 in this version.
2539         * inet/tst-sockaddr.c: New file.
2540         * inet/Makefile (tests): Add tst-sockaddr.c
2541         (tst-sockaddr.c): Compile with non-strict aliasing.
2542
2543 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2544
2545         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2546         [XPG3 || XPG4].
2547         (NL_ARGMAX): Also expect for [XPG3].
2548         (NL_LANGMAX): Likewise.
2549         (NL_MSGMAX): Likewise.
2550         (NL_NMAX): Likewise.
2551         (NL_SETMAX): Likewise.
2552         (NL_TEXTMAX): Likewise.
2553         (NZERO): Likewise.
2554         (TMP_MAX): Likewise.
2555         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2556         variable.
2557
2558         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2559         (PF_MAX): Update value.
2560         (AF_KCM): New macro.
2561         (SOL_NETBEUI): Likewise.
2562         (SOL_LLC): Likewise.
2563         (SOL_DCCP): Likewise.
2564         (SOL_NETLINK): Likewise.
2565         (SOL_TIPC): Likewise.
2566         (SOL_RXRPC): Likewise.
2567         (SOL_PPPOL2TP): Likewise.
2568         (SOL_BLUETOOTH): Likewise.
2569         (SOL_PNPIPE): Likewise.
2570         (SOL_RDS): Likewise.
2571         (SOL_IUCV): Likewise.
2572         (SOL_CAIF): Likewise.
2573         (SOL_ALG): Likewise.
2574         (SOL_NFC): Likewise.
2575         (SOL_KCM): Likewise.
2576         (MSG_BATCH): New enum value and macro.
2577
2578 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2579
2580         [BZ #18185]
2581         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2582         sharing L2 cache to 2 for Knights Landing.
2583
2584 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2585
2586         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2587         (FTW_DP): Do not expect for [XPG3 || XPG4].
2588         (FTW_SL): Do not expect for [XPG3].
2589         (FTW_SLN): Likewise.
2590         (FTW_PHYS): Likewise.
2591         (FTW_MOUNT): Likewise.
2592         (FTW_DEPTH): Likewise.
2593         (FTW_CHDIR): Likewise.
2594         (nftw): Likewise.
2595         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2596         variable.
2597
2598 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2599
2600         * manual/errno.texi: Fix various typos & grammar errors.
2601
2602 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2603
2604         * manual/intro.texi: Fix duplicated typo.
2605
2606 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2607
2608         [BZ #13304]
2609         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2610         <float.h>, <math_private.h> and <stdlib.h>.
2611         (add_split): New function.
2612         (mul_split): Likewise.
2613         (ext_val): New typedef.
2614         (store_ext_val): New function.
2615         (mul_ext_val): New function.
2616         (compare): New function.
2617         (add_split_ext): New function.
2618         (__fmal): After checking for Inf, NaN and zero, compute result as
2619         an exact sum of scaled double values in round-to-nearest before
2620         adding those up and adjusting for other rounding modes.
2621         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2622         tests of fma.
2623         * math/auto-libm-test-out: Regenerated.
2624
2625 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2626
2627         [BZ #20119]
2628         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2629         processor level type mask for CPUID with EAX == 11.
2630
2631 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2632
2633         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2634         logical threads if the HTT bit is 0.
2635         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2636         (index_cpu_HTT): Likewise.
2637         (reg_HTT): Likewise.
2638
2639 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2640
2641         [BZ #20115]
2642         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2643         Remove alignments on jump targets.
2644
2645 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2646
2647         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2648         (getpwent): Likewise.
2649         (setpwent): Likewise.
2650         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2651         variable.
2652
2653         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2654         (remque): Likewise.
2655         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2656         variable.
2657
2658 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2659
2660         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2661         not being tested.
2662
2663 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2664
2665         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2666         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2667         call.
2668         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2669         (__condvar_cleanup1): Likewise.
2670
2671 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2672
2673         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2674         New
2675         (__pthread_unwind): Renamed to ...
2676         (PTHREAD_UNWIND): This.
2677         (__pthread_enable_asynccancel): Replace
2678         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2679
2680 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2681
2682         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2683         (CLONE_NEWCGROUP): New macro.
2684
2685         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2686         (Q_GETNEXTQUOTA): New macro.
2687
2688 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2689
2690         [BZ #19907]
2691         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2692         buffer updated by the previous run.
2693         * string/test-memcpy.c (do_one_test): Likewise.
2694         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2695         * string/test-memmove.c (do_one_test): Likewise.
2696
2697 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2698
2699         [BZ #20094]
2700         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2701         not [__USE_XOPEN].
2702         (unlockpt): Likewise.
2703         (ptsname): Likewise.
2704         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2705         variable.
2706
2707         [BZ #20076]
2708         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2709         instead of [__USE_UNIX98].
2710         (S_ISSOCK): Likewise.
2711         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2712         variable.
2713
2714         [BZ #20074]
2715         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2716         [__USE_POSIX].
2717         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2718         variable.
2719
2720         [BZ #20051]
2721         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2722         (ttyslot): Do not declare.
2723         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2724         (ttyslot): New prototype.
2725         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2726         variable.
2727         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2728
2729 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2730
2731         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2732
2733 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2734
2735         Fix race condition in tst-mallocfork2, use fewer resources.
2736         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2737         to current process group.
2738         (signal_sender): Yield in the non-sleeping case.
2739
2740 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2741
2742         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2743         (ecvt): Likewise.
2744         (fcvt): Likewise.
2745         (gcvt): Likewise.
2746         (getsubopt): Likewise.
2747         (grantpt): Likewise.
2748         (initstate): Likewise.
2749         (l64a): Likewise.
2750         (mktemp): Likewise.
2751         (mkstemp): Likewise.
2752         (ptsname): Likewise.
2753         (random): Likewise.
2754         (realpath): Likewise.
2755         (setstate): Likewise.
2756         (srandom): Likewise.
2757         (ttyslot): Likewise.
2758         (unlockpt): Likewise.
2759         (valloc): Likewise.
2760
2761         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2762         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2763         variable.
2764
2765 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2766
2767         [BZ #20072]
2768         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2769         init_cpu_features only if SHARED is defined.
2770         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2771
2772 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2773
2774         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2775         non-inclusive caches on Intel processors.
2776
2777 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2778
2779         * malloc/malloc.c (dumped_main_arena_start)
2780         (dumped_main_arena_end): New variables.
2781         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2782         (do_check_chunk): Skip dumped fake mmapped chunks.
2783         (munmap_chunk): Likewise.
2784         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2785         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2786         mmapped chunks.
2787         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2788         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2789         and dumped_main_arena_end to cover the dumped heap.
2790
2791 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2792
2793         * conform/data/time.h-data (getdate_err): Do not expect for
2794         [XPG3].
2795         (getdate): Likewise.
2796         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2797         variable.
2798
2799         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2800         (F_ULOCK): Likewise.
2801         (F_TEST): Likewise.
2802         (F_TLOCK): Likewise.
2803         (useconds_t): Likewise.
2804         (intptr_t): Do not expect for [XPG3] or [XPG4].
2805         (brk): Do not expect for [XPG3]
2806         (fchown): Likewise.
2807         (fchdir): Likewise.
2808         (ftruncate): Likewise.
2809         (getdtablesize): Likewise.
2810         (gethostid): Likewise.
2811         (getpagesize): Likewise.
2812         (getpgid): Likewise.
2813         (getsid): Likewise.
2814         (getwd): Likewise.
2815         (lchown): Likewise.
2816         (lockf): Likewise.
2817         (readlink): Likewise.
2818         (sbrk): Likewise.
2819         (setpgrp): Likewise.
2820         (setregid): Likewise.
2821         (setreuid): Likewise.
2822         (symlink): Likewise.
2823         (sync): Likewise.
2824         (truncate): Likewise.
2825         (ualarm): Likewise.
2826         (usleep): Likewise.
2827         (vfork): Likewise.
2828         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2829         variable.
2830
2831         [BZ #20054]
2832         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2833         not [__USE_UNIX98].
2834         * conform/data/unistd.h-data (gethostname): Do not expect for
2835         [XPG3].
2836
2837         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2838         [!POSIX] (S_IFBLK): Likewise.
2839         [!POSIX] (S_IFCHR): Likewise.
2840         [!POSIX] (S_IFIFO): Likewise.
2841         [!POSIX] (S_IFREG): Likewise.
2842         [!POSIX] (S_IFDIR): Likewise.
2843         [!POSIX] (S_IFLNK): Likewise.
2844         [!POSIX] (S_IFSOCK): Likewise.
2845         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2846         variable.
2847         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2848
2849 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2850
2851         * sysdeps/aarch64/memset.S (__memset):
2852         Rewrite of optimized memset.
2853
2854 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2855
2856         [BZ #19703]
2857         Partially async-signal-safe fork for single-threaded processes.
2858         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2859         variable.  Do not acquire and reset/release malloc and libio locks
2860         in single-threaded processes.
2861         * malloc/tst-mallocfork2.c: New file.
2862         * malloc/Makefile (tests): Add it.
2863
2864 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2865
2866         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2867         argument.  Use scratch buffer instead of extend_alloca.
2868         (gethosts): Use scratch buffer instead of extend_alloca.
2869         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2870         extend_alloca.
2871         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2872
2873 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2874
2875         [BZ #20055]
2876         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2877         instead of [__USE_UNIX98].
2878         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2879         [__USE_UNIX98].
2880         * conform/data/termios.h-data (tcgetsid): Do not expect for
2881         [XPG3].
2882         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2883         variable.
2884         (test-xfail-XPG4/termios.h/conform): Likewise.
2885
2886 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2887
2888         Do not use mcheck in localedef.
2889         * locale/programs/localedef.c (turn_on_mcheck)
2890         (__malloc_initialize_hook): Remove.
2891
2892 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2893
2894         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2895         * sysdeps/s390/s390-64/Makefile: Likewise.
2896
2897 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2898
2899         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2900         Remove ifunc-defines.sym.
2901         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2902         Likewise.
2903         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2904         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2905         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2906         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2907         rtld-global-offsets.sym.
2908         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2909         * sysdeps/x86/cpu-features-offsets.sym: This.
2910         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2911         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2912
2913 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2914
2915         [BZ #20073]
2916         * io/sys/stat.h (fchmod): Declare for
2917         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2918         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2919         variable.
2920
2921         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2922         [XPG3] (S_IFSOCK): Likewise.
2923         [XPG3] (S_ISVTX): Likewise.
2924         [XPG3] (S_ISLNK): Likewise.
2925         [XPG3] (S_ISSOCK): Likewise.
2926         [XPG3] (fchmod): Likewise.
2927         [XPG3] (lstat): Likewise.
2928         [XPG3] (mknod): Likewise.
2929
2930         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2931         [XPG3].  Expect type long and XFAIL for [XPG4].
2932         (st_blocks): Likewise.
2933
2934         [BZ #20044]
2935         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2936         (pthread_atfork): New prototype.
2937         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2938         variable.
2939
2940         [BZ #20043]
2941         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2942         prototype.
2943
2944 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2945
2946         [BZ #20017]
2947         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2948         gmtime.
2949
2950 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2951
2952         [BZ #19994]
2953         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2954         flag in _res.options.
2955
2956 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2957
2958         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2959         [XPG3 || XPG4].
2960         (blksize_t): Likewise.
2961         (clockid_t): Likewise.
2962         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2963         variable.
2964         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2965
2966 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2967
2968         * sysdeps/unix/sysv/linux/s390/init-first.c:
2969         Add VDSO_SYMBOL(getcpu).
2970         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2971         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2972         Add VDSO_SYMBOL(getcpu).
2973         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2974         New define HAVE_GETCPU_VSYSCALL.
2975         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2976
2977 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2978
2979         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2980         instead of <sysdeps/x86_64/cacheinfo.c>.
2981         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2982         * sysdeps/x86/cacheinfo.c: Here.
2983
2984 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2985
2986         * malloc/malloc-internal.h: Adjust header file guard.
2987
2988 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2989
2990         [BZ #19787]
2991         * inet/getnameinfo.c (check_sprintf_result): New function.
2992         (CHECKED_SNPRINTF): New macro.
2993         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2994         to the host buffer.
2995         (gni_host_local): Use checked_copy to copy the host name.
2996         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2997         (gni_serv_local): Use checked_copy to copy the service name.
2998         (getnameinfo): Remove unnecessary truncation of result buffers.
2999
3000 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3001
3002         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
3003         in case of inet_ntop failure.
3004
3005 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3006
3007         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
3008         avoid long lines.
3009         (gni_host_inet_numeric): Likewise.  Reduce scope of local
3010         variables.
3011         (gni_host_inet, gni_host_local): Add comment.
3012         (gni_host): Add comment.  Use temporary to avoid long lines.
3013
3014 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3015
3016         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
3017         registers specifiers where general purpose registers specifiers should
3018         have been used.
3019
3020 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3021
3022         [BZ #19779]
3023         CVE-2016-1234
3024         Avoid copying names of directory entries.
3025         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
3026         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
3027         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
3028         (struct readdir_result): New type.
3029         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
3030         (GL_READDIR): New macros.
3031         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
3032         (convert_dirent, convert_dirent64): New functions.
3033         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
3034         convert_dirent64.  Adjust references to the readdir result.
3035         * sysdeps/unix/sysv/linux/i386/glob64.c:
3036         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
3037         * posix/bug-glob2.c (LONG_NAME): Define.
3038         (filesystem): Add LONG_NAME.
3039         (my_DIR): Increase the size of room_for_dirent.
3040
3041 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
3042
3043         [BZ #20041]
3044         * misc/sys/select.h (__need_timespec): Only define if
3045         [__USE_XOPEN2K].
3046         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
3047         variable.
3048         (test-xfail-XPG4/utmpx.h/conform): Likewise.
3049         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
3050         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
3051
3052 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3053             Segher Boessenkool  <segher@gcc.gnu.org>
3054
3055         [BZ #20004]
3056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
3057         (__novec_swapcontext): Add missing load.
3058
3059 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
3060
3061         [BZ #20023]
3062         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
3063         <time.h>.
3064         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
3065         variable.
3066         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
3067
3068 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3069
3070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
3071         flags CLONE_VM compare.
3072
3073 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3074
3075         [BZ #20031]
3076         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
3077         completely empty.
3078
3079 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3080
3081         [BZ #19573]
3082         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
3083         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
3084         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
3085         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
3086         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
3087         (hesiod_free_list): Mark as hidden.
3088         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
3089         res_set, res_get.
3090         * hesiod/hesiod.c: Remove unnecessary forward declarations.
3091         (init, __hesiod_res_get, __hesiod_res_set): Remove.
3092         (hesiod_init): Remove obsolete res_ninit call.
3093         (hesiod_end): Do not free resolver state.  Do not invoke callback.
3094         (hesiod_bind): Do not call init.
3095         (get_txt_records): Use res_mkquery, res_send instead of
3096         res_nmkquery, res_nsend.
3097         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
3098         instead of _nss_hesiod_init.
3099         (_nss_hesiod_initgroups_dyn): Likewise.
3100         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
3101         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
3102         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
3103
3104 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3105
3106         * hesiod/hesiod_p.h (DEF_RHS): Remove.
3107         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
3108
3109 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3110
3111         * hesiod/hesiod.h: Remove RCS keyword.
3112         * hesiod/hesiod_p.h: Likewise.
3113
3114         * hesiod/hesiod.c: Likewise.
3115
3116 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
3117
3118         [BZ #12450]
3119         * locale/iso-639.def: Add Samogitian/sgs.
3120
3121 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
3122
3123         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
3124
3125         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
3126
3127 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
3128             Carlos O'Donell  <carlos@redhat.com>
3129
3130         [BZ #19072]
3131         * grp/Makefile (headers): Add grp-merge.h
3132         (routines): Add grp-merge.
3133         * grp/getgrgid_r.c: Include grp-merge.h.
3134         (DEEPCOPY_FN): Define.
3135         (MERGE_FN): Define.
3136         * grp/getgrname_r.c: Include grp-merge.h.
3137         (DEEPCOPY_FN): Define.
3138         (MERGE_FN): Define.
3139         * grp/grp-merge.c: New file.
3140         * grp/grp-merge.h: New file.
3141         * include/grp-merge.h: New file.
3142         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
3143         __copy_grp@GLIBC_PRIVATE.
3144         * manual/nss.texi (Actions in the NSS configuration): Describe
3145         return, continue, and merge.
3146         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
3147         (DEEPCOPY_FN): Define.
3148         (MERGE_FN): Define.
3149         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
3150         (DEEPCOPY_FN): Define.
3151         (MERGE_FN): Define.
3152         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
3153         [!MERGE_FN]: Define __merge_einval.
3154         (CHECK_MERGE): Define.
3155         (REENTRANT_NAME): Process merge if do_merge is true.
3156         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
3157         (__nss_getent_r): Likewise.
3158         * nss/nsswitch.c (nss_parse_service_list): Likewise.
3159         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
3160
3161 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3162
3163         [BZ #20012]
3164         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
3165         length to calculate the buffer to read.
3166         (fmemopen_write): Set the buffer position based on bytes written.
3167         (fmemopen_seek): Return EINVAL for invalid whence modes.
3168
3169         [BZ #19957]
3170         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
3171         tst-getpid2.
3172         (test): Add tst-clone2.
3173         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
3174         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
3175         pid/tid fields for CLONE_VM.
3176         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
3177         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
3178         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
3179         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
3180         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
3181         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
3182         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
3183         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
3184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
3185         Likewise.
3186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3187         Likewise.
3188         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
3189         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3190         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
3191         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3192         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
3193         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
3194         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
3195         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
3196
3197 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3198
3199         [BZ #19642]
3200         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
3201         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
3202         (gni_serv_local, gni_serv): New functions extracted from
3203         getnameinfo.
3204         (getnameinfo): Call gni_host and gni_serv to perform the
3205         processing.  Always free scratch buffer.
3206
3207 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3208
3209         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
3210         remaining bytes in the dest string, with zeros.
3211
3212 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3213
3214         [BZ #20010]
3215         CVE-2016-3706
3216         * sysdeps/posix/getaddrinfo.c
3217         (convert_hostent_to_gaih_addrtuple): New function.
3218         (gethosts): Call convert_hostent_to_gaih_addrtuple.
3219         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
3220         AF_INET data.
3221
3222 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3223
3224         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
3225         callback function gl_readdir.
3226         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
3227         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
3228         (glob_in_dir): Remove len.  Use strdup instead of malloc and
3229         memcpy to copy the name.
3230         * manual/pattern.texi (Calling Glob): Document requirements for
3231         implementations of the gl_readdir callback function.
3232         * manual/examples/mkdirent.c: New example.
3233         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
3234         per the manual guidance.
3235         * posix/tst-gnuglob.c (my_readdir): Likewise.
3236
3237 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
3238
3239         [BZ #20014]
3240         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
3241         not [__USE_POSIX].
3242         (getchar_unlocked): Likewise.
3243         (putc_unlocked): Likewise.
3244         (putchar_unlocked): Likewise.
3245         (flockfile): Likewise.
3246         (ftrylockfile): Likewise.
3247         (funlockfile): Likewise.
3248         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
3249         variable.
3250         (test-xfail-XPG4/stdio.h/conform): Likewise.
3251
3252         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
3253         Expect constant.
3254         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
3255         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
3256         variable.
3257         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3258         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3259
3260         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
3261         [__USE_LARGEFILE64] (off64_t): Likewise.
3262         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
3263         variable.
3264
3265 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3266
3267         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
3268
3269 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3270
3271         * resolv/inet_addr.c: Reindent preprocessor conditionals.
3272         * resolv/res_init.c: Likewise.
3273         * resolv/res_mkquery.c: Likewise.
3274
3275 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3276
3277         * resolv/res_init.c (isascii): Do not define.  Use definition in
3278         <ctype.h>.
3279         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
3280         (LOG_AUTH): Remove.
3281         (SPRINTF): Remove, adjust caller.
3282         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
3283
3284 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3285
3286         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
3287         SUNSECURITY conditional.
3288         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
3289
3290 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3291
3292         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
3293         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
3294         Remove BSD-related preprocessor conditionals.
3295         * conf/portability.h: Remove.
3296
3297 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3298
3299         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
3300         * resolv/res_data.c: Likewise.
3301
3302 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3303
3304         * resolv/res_comp.c: Remove code conditional on __ultrix__.
3305         * resolv/res_data.c: Remove code conditional on ultrix.
3306
3307 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3308
3309         * resolv/res_init.c (RFC1535): Do not define.  Remove
3310         RFC1535 preprocessor conditionals.
3311         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
3312         because there configuration options which make the resolver
3313         behavior different.
3314
3315 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3316
3317         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
3318         RESOLVSORT preprocessor conditionals.
3319         * resolv/nss_dns/dns-host.c: Likewise.
3320         * resolv/res_init.c: Likewise.
3321
3322 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3323
3324         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
3325         is never defined.
3326
3327 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3328
3329         * inet/inet_lnaof.c: Remove SCSS keyword.
3330         * inet/inet_mkadr.c: Likewise.
3331         * inet/inet_net.c: Likewise.
3332         * inet/inet_netof.c: Likewise.
3333         * inet/rcmd.c: Likewise.
3334         * inet/rexec.c: Likewise.
3335         * inet/ruserpass.c: Likewise.
3336
3337 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3338
3339         * resolv/inet_addr.c: Remove _LIBC conditionals.
3340         * resolv/res_data.c: Likewise.
3341         * resolv/res_init.c: Likewise.
3342         * resolv/res_mkquery.c: Likewise.
3343         * resolv/res_libc.c: Update comment.
3344         * resolv/README: Update.
3345
3346 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3347
3348         * resolv/gethnamaddr.c: Remove SCSS keyword.
3349         * resolv/herror.c: Likewise.
3350         * resolv/inet_addr.c: Likewise.
3351         * resolv/inet_net_ntop.c: Likewise.
3352         * resolv/inet_net_pton.c: Likewise.
3353         * resolv/inet_neta.c: Likewise.
3354         * resolv/inet_ntop.c: Likewise.
3355         * resolv/inet_pton.c: Likewise.
3356         * resolv/ns_date.c: Remove RCS keyword.
3357         * resolv/ns_name.c: Likewise.
3358         * resolv/ns_netint.c: Likewise.
3359         * resolv/ns_parse.c: Likewise.
3360         * resolv/ns_print.c: Likewise.
3361         * resolv/ns_samedomain.c: Likewise.
3362         * resolv/ns_ttl.c: Likewise.
3363         * resolv/nsap_addr.c: Likewise.
3364         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3365         * resolv/res_data.c: Remove RCS keyword.
3366         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3367         * resolv/res_init.c: Likewise.
3368         * resolv/res_mkquery.c: Likewise.
3369         * resolv/res_query.c: Likewise.
3370         * resolv/res_send.c: Likewise.
3371
3372 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3373
3374         * conform/data/stdio.h-data (fdopen): Expect also for
3375         [XPG3 || XPG4].
3376
3377         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3378         (fseeko): Likewise.
3379         (ftello): Likewise.
3380         (ftrylockfile): Likewise.
3381         (funlockfile): Likewise.
3382         (getc_unlocked): Likewise.
3383         (getchar_unlocked): Likewise.
3384         (putc_unlocked): Likewise.
3385         (putchar_unlocked): Likewise.
3386
3387 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3388
3389         [BZ #19868]
3390         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3391         DNS packet syntax checks (which were not needed before).  Skip
3392         over non-PTR records.
3393
3394 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3395
3396         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3397         definition.  Include <stddef.h> instead.
3398
3399 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3400
3401         [BZ #19831]
3402         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3403         function.
3404         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3405         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3406
3407 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3408
3409         [BZ #19862]
3410         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3411         (getanswer_r): Do not call syslog.
3412         (gaih_getanswer_slice): Likewise.
3413         * resolv/gethnamaddr.c (AskedForGot): Remove.
3414         (getanswer): Do not call syslog.
3415         (gethostbyaddr): Likewise.
3416
3417 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3418
3419         * conform/data/signal.h-data (union sigval): Expect also if
3420         [XOPEN2K].
3421         (struct sigevent): Likewise.
3422         (SIGEV_NONE): Likewise.
3423         (SIGEV_SIGNAL): Likewise.
3424         (SIGEV_THREAD): Likewise.
3425         (SIGRTMIN): Likewise.
3426         (SIGRTMAX): Likewise.
3427         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3428         variable.
3429         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3430
3431 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3432
3433         [BZ #19830]
3434         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3435         (gaih_getanswer_slice): Likewise.
3436         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3437         Also check for availability of RR metadata.
3438
3439 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3440
3441         [BZ #19825]
3442         * resolv/res_send.c (send_vc): Remove early *resplen2
3443         initialization.  Set *resplen2 on socket error.  Call
3444         close_and_return_error for other errors.
3445
3446 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3447
3448         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3449         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3450         (SCM_IUCV_TRGCLS): New define.
3451
3452 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3453
3454         [BZ #20005]
3455         * libio/fmemopen.c (fmemopen_write): Update internal position after
3456         write.
3457         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3458         * stdio-common/tst-fmemopen4.c: New file..
3459
3460 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3461
3462         [BZ #19996]
3463         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3464         not [__USE_XOPEN2K].
3465         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3466         variable.
3467
3468         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3469         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3470         variable.
3471
3472         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3473         [__USE_XOPEN2K8].
3474         [__USE_LARGEFILE64] (off64_t): Likewise.
3475         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3476         variable.
3477
3478 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3479
3480         [BZ #19989]
3481         * libio/stdio.h (cuserid): Do not declare if
3482         [__USE_XOPEN2K && !__USE_GNU].
3483         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3484         variable.
3485
3486 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3487
3488         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3489         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3490         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3491         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3492         ifunc'ed strcspn.
3493         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3494         [EALIGN]: Removed.
3495         [END]: Likewise
3496         [STRSPN]: Define instead of the above to control symbol name.
3497         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3498         New file.
3499         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3500         Likewise.
3501         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3502         Likewise.
3503         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3504         Likewise.
3505         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3506         [INITIAL_MASK]: New macro.
3507         [STRCSPN]: Likewise.
3508         [UPDATE_MASK]: Likewise.
3509         [USE_AS_STRCSPN]: Lisewise.
3510
3511 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3512
3513         [BZ #19931]
3514         * stdio-common/tst-vfprintf-width-prec.c: New file.
3515         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3516         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3517         (generated): Add mtrace-related files.
3518         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3519         (tst-%-mem.out): New pattern rule, replaces
3520         tst-printf-bz18872-mem.out.
3521         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3522         specifier, deallocate any previously allocated work buffer.
3523
3524 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3525
3526         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3527         Add nop before __startcontext, add explaining comments.
3528
3529 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3530
3531         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3532         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3533         completely different API.
3534
3535         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3536         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3537         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3538         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3539         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3540         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3541         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3542         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3543         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3544         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3545
3546 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3547
3548         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3549
3550 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3551
3552         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3553         when it is the default of 0.
3554
3555 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3556
3557         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3558         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3559         (sysdep_routines): Add new strcasestr targets.
3560         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3561         (__libc_ifunc_impl_list): Likewise.
3562         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3563         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3564         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3565         * sysdeps/powerpc/powerpc64/power8/Makefile:
3566         New file to add strcasestr-ppc64 to sysdep_routines.
3567         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3568         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3569
3570 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3571
3572         * benchtests/Makefile (wcsmbs-benchset): Include only for
3573         native builds and runs.
3574         (LOCALES): Likewise.
3575         (bench-build): Build timing-type here instead of the bench
3576         target.  Generate locale only for native builds.
3577         * benchtests/README: Add note for cross-building.
3578
3579         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3580
3581         * benchtests/README: Update README to include instructions on
3582         using bench-build.
3583
3584         * Makefile.in (bench-build): New target.
3585         * Rules (PHONY): Add bench-build target.
3586         * benchtests/Makefile (bench): Depend on bench-build.
3587         (bench-build): New target.
3588
3589 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3590
3591         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3592         profil_reply_port.
3593         (profile_waiter): Do not initialize profil_reply_port.
3594         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3595         frequency instead of tick length in us.
3596
3597 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3598
3599         [BZ #18712]
3600         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3601         (__old_mempcpy_small): Likewise.
3602         (__old_strcpy_small): Likewise.
3603         (__old_stpcpy_small): Likewise.
3604         (__old_strpbrk_c2): Fix compat symbol name.
3605         (__old_strpbrk_c3): Likewise.
3606         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3607         (__mempcpy_small): Remove.
3608         (__strcpy_small): Remove.
3609         (__stpcpy_small): Remove.
3610
3611 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3612
3613         [BZ #19400]
3614         * locale/iso-639.def: Add the Talossan/tzl language.
3615
3616 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3617
3618         [BZ #16983]
3619         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3620         comment.  Add "ln" to strchr check on postal_fmt.
3621
3622 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3623
3624         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3625         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3626         tel_dom_fmt.
3627
3628 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3629
3630         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3631         (sysdep_routines): Added __strlen_power8.
3632         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3633         __strlen_power8 entry.
3634         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3635         Implementation for POWER8.
3636         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3637         for __strlen_power8.
3638         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3639         Implementation for POWER8.
3640
3641 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3642
3643         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3644
3645 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3646
3647         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3648         Goldmont and Airmont processors.
3649
3650 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3651
3652         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3653         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3654         (__STRING2_SMALL_GET32): Remove.
3655         (memset): Remove.
3656         (__memset_1): Remove.
3657         (__memset_gc): Remove.
3658         (__mempcpy): Remove.
3659         (mempcpy): Remove.
3660         (__mempcpy_args): Remove.
3661         (strchr): Remove.
3662         (strcpy): Remove.
3663         (strcpy_args): Remove.
3664         (__stpcpy_args): Remove.
3665         (__strcmp_cc): Remove.
3666         (__strcmp_gc): Remove.
3667         (strstr): Remove.
3668
3669 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3670
3671         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3672         * nis/nis_call.c (nis_server_cache_add): Likewise.
3673
3674 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3675
3676         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3677
3678 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3679
3680         * malloc/arena.c (__malloc_fork_lock_parent)
3681         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3682         internal_function attribute.
3683
3684 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3685
3686         * stdio-common/printf_fp.c (__printf_fp_l):
3687         Rename ___printf_fp_l to __printf_fp_l and
3688         remove strong alias. Use libc_hidden_def instead
3689         of ldbl_hidden_def macro.
3690
3691 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3692
3693         Remove malloc hooks from fork handler.  They are no longer needed
3694         because malloc runs right before fork, and no malloc calls from
3695         other fork handlers are not possible anymore.
3696         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3697         declarations.
3698         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3699         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3700         (atfork_recursive_cntr): Remove.
3701         (__malloc_fork_lock_parent): Do not override malloc hooks and
3702         thread_arena.
3703         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3704         thread_arena.
3705         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3706         thread_arena instead of save_arena.
3707
3708 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3709
3710         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3711         (thread_atfork, thread_atfork_static): Remove.
3712         * sysdeps/mach/hurd/malloc-machine.h:
3713         (thread_atfork, thread_atfork_static): Remove.
3714
3715 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3716
3717         [BZ #19431]
3718         Run the malloc fork handler as late as possible to avoid deadlocks.
3719         * malloc/malloc-internal.h: New file.
3720         * malloc/malloc.c: Include it.
3721         * malloc/arena.c (ATFORK_MEM): Remove.
3722         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3723         Update comment.
3724         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3725         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3726         Remove outdated comment.
3727         (ptmalloc_init): Do not call thread_atfork.  Remove
3728         thread_atfork_static.
3729         * malloc/tst-malloc-fork-deadlock.c: New file.
3730         * Makefile (tests): Add tst-malloc-fork-deadlock.
3731         (tst-malloc-fork-deadlock): Link against libpthread.
3732         * manual/memory.texi (Aligned Memory Blocks): Update safety
3733         annotation comments.
3734         * sysdeps/nptl/fork.c (__libc_fork): Call
3735         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3736         __malloc_fork_unlock_child.
3737         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3738
3739 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3740
3741         [BZ #19613]
3742         Remove union wait.
3743         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3744         (w_stopsig, w_stopval): Remove.
3745         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3746         stat_loc argument.
3747         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3748         (__WAIT_STATUS_DEFN): Remove.
3749         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3750         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3751         (wait, wait3, wait4): Use int * for the stat_loc argument.
3752         * posix/wait.c (__wait): Likewise.
3753         * posix/wait3.c (__wait3): Likewise.
3754         * posix/wait4.c (__wait4): Likewise.
3755         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3756         (__WAIT_STATUS_DEFN): Remove.
3757         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3758         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3759         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3760         argument.
3761         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3762         * sysdeps/posix/wait3.c (__wait3): Likewise.
3763         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3764         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3765         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3766         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3767         stat_loc argument.
3768         * manual/process.texi (BSD Wait Functions): Remove union wait.
3769
3770 2016-04-13  Andreas Schwab  <schwab@suse.de>
3771
3772         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3773         (test-extras): Add tst-tlsalign-vars.
3774         * math/Makefile: Wrap long lines.
3775         (libm-vec-test-wrappers): Define.
3776         (test-extras): Add $(libm-vec-test-wrappers).
3777         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3778         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3779         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3780         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3781         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3782         (extra-test-objs): Add corresponding objects.
3783
3784 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3785
3786         [BZ #19928]
3787         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3788         New.
3789         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3790         times of shared cache size.
3791         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3792         (VMOVNT): New.
3793         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3794         (VMOVNT): Likewise.
3795         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3796         (VMOVNT): Likewise.
3797         (VMOVU): Changed to movups for smaller code sizes.
3798         (VMOVA): Changed to movaps for smaller code sizes.
3799         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3800         comments.
3801         (PREFETCH): New.
3802         (PREFETCH_SIZE): Likewise.
3803         (PREFETCHED_LOAD_SIZE): Likewise.
3804         (PREFETCH_ONE_SET): Likewise.
3805         Rewrite to use forward and backward loops, which move 4 vector
3806         registers at a time, to support overlapping addresses and use
3807         non temporal store if size is above the threshold and there is
3808         no overlap between destination and source.
3809
3810 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3811
3812         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3813         Include dl-vdso.
3814         * sysdeps/unix/sysv/linux/mips/Versions: Add
3815         __vdso_clock_gettime.
3816         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3817         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3818         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3819         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3820         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3821         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3822         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3823         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3824         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3825
3826 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3827
3828         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3829         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3830         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3831         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3832         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3833         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3836         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3837         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3838         syscalls generation.
3839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3840         [__NR_pwrite64] (__NR_write): Remove define.
3841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3842         [__NR_pwrite64] (__NR_write): Remove define.
3843         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3844         Remove define.
3845         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3846         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3847         Remove define.
3848         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3849         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3850         Linux implementation as base.
3851         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3852
3853         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3854         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3855         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3856         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3859         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3860         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3861         syscall generation.
3862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3863         [__NR_pread64] (__NR_pread): Remove define.
3864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3865         [__NR_pread64] (__NR_pread): Likewise.
3866         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3867         define.
3868         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3869         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3870         Remove define.
3871         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3872         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3873         Linux implementation as base.
3874         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3875         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3876         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3877
3878         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3879         definition.
3880         (__ALIGNMENT_COUNT): Likewise.
3881         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3882         (__ALIGNMENT_COUNT): Likewise.
3883         (SYSCALL_LL): New define.
3884         (SYSCALL_LL64): Likewise.
3885         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3886         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3887         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3888         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3889
3890         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3891         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3892         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3893         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3894         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3895         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3896
3897 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3898
3899         [BZ #19865]
3900         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3901         original buffer before retry.
3902
3903 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3904
3905         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3906         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3907         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3908         GLRO(dl_auxv) list.
3909         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3910         including <ldsodefs.h>.
3911         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3912
3913 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3914
3915         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3916         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3917         $(CPPFLAGS).
3918
3919 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3920
3921         [BZ #17950]
3922         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3923         Add -mfpmath=387.
3924
3925 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3926
3927         * sysdeps/i386/configure.ac: Change == to = when calling test.
3928         * sysdeps/x86_64/configure.ac: Likewise.
3929         * sysdeps/i386/configure: Regenerated.
3930         * sysdeps/x86_64/configure: Likewise.
3931
3932 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3933
3934         [BZ #16137]
3935         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3936         * benchtests/bench-strcoll.c (input_files): Likewise.
3937         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3938         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3939         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3940
3941 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3942
3943         [BZ #19929]
3944         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3945         [__USE_XOPEN2K8 && !__USE_GNU].
3946         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3947         variable.
3948
3949         [BZ #19925]
3950         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3951         define if [!__USE_MISC && __USE_XOPEN2K].
3952         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3953         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3954         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3955         Likewise.
3956         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3957         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3958         variable.
3959         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3960
3961 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3962
3963         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3964         (sysdep_routines): Add new strspn targets.
3965         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3966         (__libc_ifunc_impl_list): Add strspn.
3967         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3968         New file.
3969         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3970         Likewise.
3971         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3972         Likewise.
3973         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3974         Likewise.
3975
3976 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3977
3978         * misc/hsearch_r.c: Include <limits.h>.
3979
3980 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3981
3982         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3983
3984 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3985
3986         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3987         (MEMCPY_SYMBOL): New.
3988         (MEMPCPY_SYMBOL): Likewise.
3989         (MEMMOVE_CHK_SYMBOL): Likewise.
3990         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3991         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3992         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3993         Provide alias for memcpy in libc.a and ld.so.
3994
3995 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3996
3997         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3998         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3999         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
4000         Disabled fro now.
4001         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
4002         symbols.  Properly check USE_MULTIARCH on __memset symbols.
4003
4004 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4005
4006         * benchtests/Makefile (string-benchset): Add memcpy-large,
4007         memmove-large and memset-large.
4008         * benchtests/bench-memcpy-large.c: New file.
4009         * benchtests/bench-memmove-large.c: Likewise.
4010         * benchtests/bench-memmove-large.c: Likewise.
4011         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
4012
4013 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4014
4015         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
4016         32-bit displacement to avoid long nop between instructions.
4017
4018 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4019
4020         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
4021         a comment on VMOVU and VMOVA.
4022
4023 2016-04-04  Florian Weimer  <fweimer@redhat.com>
4024
4025         [BZ #19633]
4026         Use specified locale for number formatting in strfmon_l.
4027         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
4028         (__nl_lookup_word): New inline functions.
4029         * include/printf.h (__print_fp_l): Declare.
4030         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
4031         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
4032         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
4033         (___printf_fp): New function.
4034         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
4035         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
4036         * stdlib/tst-strfmon_l.c (do_test): New test.
4037         * stdlib/Makefile (tests): Add kt.
4038         (LOCALES): Build additional locales.
4039         (tst-strfmon_l.out): Require locales.
4040
4041 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4042
4043         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
4044         if not in libc.
4045         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4046         Likewise.
4047         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
4048         Likewise.
4049         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4050         Likewise.
4051
4052 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4053
4054         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4055         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
4056         with unaligned_erms.
4057         (__memmove_erms): Skip if source == destination.
4058         (__memmove_unaligned_erms): Don't check source == destination
4059         first.
4060
4061 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4062
4063         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
4064         bit_arch_Fast_Copy_Backward for Intel Core proessors.
4065
4066 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4067
4068         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
4069         * string/strspn.c (strspn): Likewise.
4070
4071 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4072
4073         * benchtests/bench-memset.c (do_test): Support 64-byte
4074         alignment.
4075         (test_main): Test 64-byte alignment.
4076
4077 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4078
4079         * benchtests/bench-memmove.c (test_main): Test 64-byte
4080         alignment.
4081
4082 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4083
4084         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
4085
4086 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4087
4088         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
4089         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
4090         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
4091
4092         * string/strpbrk.c (strpbrk): Rewrite function.
4093         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
4094         (__strpbrk_c2): Likewise.
4095         (__strpbrk_c3): Likewise.
4096         * string/string-inlines.c
4097         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
4098         Likewise.
4099         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
4100         Likewise.
4101
4102         * string/strspn.c (strcspn): Rewrite function.
4103         * string/bits/string2.h (strspn): Use __builtin_strcspn.
4104         (__strspn_c1): Remove inline function.
4105         (__strspn_c2): Likewise.
4106         (__strspn_c3): Likewise.
4107         * string/string-inlines.c
4108         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
4109         compatibility symbol.
4110         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
4111         Likewise.
4112         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
4113         Likewise.
4114         * string/string-inlines.c: Include generic version.
4115
4116 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
4117             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4118
4119         * string/Version (libc): Add GLIBC_2.24.
4120         * string/strcspn.c (strcspn): Rewrite function.
4121         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
4122         (__strcspn_c1): Remove inline function.
4123         (__strcspn_c2): Likewise.
4124         (__strcspn_c3): Likewise.
4125         * string/string-inline.c
4126         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
4127         compatibility symbol.
4128         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
4129         Likewise.
4130         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
4131         Likewise.
4132         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
4133
4134 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
4135
4136         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4137         Use ahi instead of aghi to adjust stack pointer.
4138
4139 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4140
4141         [BZ #19853]
4142         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
4143         TEST to take significant digits as second parameter.
4144         [TEST]: Redefine in terms of TEST_N taking 30
4145         significant digits.
4146         (do_test): Add test case to demonstrate precision
4147         failure in the ldbl-128ibm printf.
4148         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
4149         (__mpn_extract_long_double): Carry 7 extra intermediate
4150         bits of precision to aide computing difference when
4151         signs differ.
4152
4153 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4154
4155         [BZ #19881]
4156         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4157         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
4158         memset-avx512-unaligned-erms.
4159         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4160         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
4161         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
4162         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
4163         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
4164         __memset_sse2_unaligned_erms, __memset_erms,
4165         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
4166         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4167         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
4168         file.
4169         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4170         Likewise.
4171         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
4172         Likewise.
4173         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
4174         Likewise.
4175
4176 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4177
4178         [BZ #19776]
4179         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4180         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
4181         memmove-avx512-unaligned-erms.
4182         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4183         (__libc_ifunc_impl_list): Test
4184         __memmove_chk_avx512_unaligned_2,
4185         __memmove_chk_avx512_unaligned_erms,
4186         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
4187         __memmove_chk_sse2_unaligned_2,
4188         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
4189         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
4190         __memmove_avx512_unaligned_erms, __memmove_erms,
4191         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
4192         __memcpy_chk_avx512_unaligned_2,
4193         __memcpy_chk_avx512_unaligned_erms,
4194         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
4195         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
4196         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
4197         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
4198         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
4199         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
4200         __mempcpy_chk_avx512_unaligned_erms,
4201         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
4202         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
4203         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
4204         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
4205         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
4206         __mempcpy_erms.
4207         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
4208         file.
4209         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4210         Likwise.
4211         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4212         Likwise.
4213         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4214         Likwise.
4215
4216 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4217
4218         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
4219         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
4220         (La_s390_64_regs): Likewise.
4221         (La_s390_32_retval): Append vector register lrv_v24.
4222         (La_s390_64_retval): Likeweise.
4223         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4224         Handle extended structs La_s390_32_regs and La_s390_32_retval.
4225         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4226         Handle extended structs La_s390_64_regs and La_s390_64_retval.
4227
4228 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4229
4230         [BZ #19916]
4231         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
4232         to create a non-vector/vector version for _dl_runtime_resolve and
4233         _dl_runtime_profile. Move implementation to ...
4234         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
4235         (_dl_runtime_resolve) Save and restore fpr/vrs.
4236         (_dl_runtime_profile) Save and restore vrs and fix some issues
4237         if _dl_call_pltexit is called.
4238         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4239         Choose the correct resolver function if running on a machine with vx.
4240         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
4241         to create a non-vector/vector version for _dl_runtime_resolve and
4242         _dl_runtime_profile. Move implementation to ...
4243         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
4244         (_dl_runtime_resolve) Save and restore fpr/vrs.
4245         (_dl_runtime_profile) Save and restore vrs and fix some issues
4246         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
4247         Choose the correct resolver function if running on a machine with vx.
4248
4249 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4250
4251         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
4252
4253 2016-03-31  Florian Weimer  <fweimer@redhat.com>
4254
4255         [BZ #19509]
4256         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
4257         skip_map != NULL.
4258         * elf/tst-dlsym-error.c: New file.
4259         * elf/Makefile (tests): Add tst-dlsym-error.
4260         (tst-dlsym-error): Link against libdl.
4261
4262 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
4263
4264         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4265         (__ASSUME_FUTIMESAT): Remove macro.
4266         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
4267
4268 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4269
4270         [BZ #19879]
4271         CVE-2016-3075
4272         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
4273         copy name.
4274
4275 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4276
4277         [BZ #19837]
4278         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
4279         error if parse_line fails.
4280
4281 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4282
4283         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
4284         (index_cpu_ERMS): Likewise.
4285         (reg_ERMS): Likewise.
4286
4287 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
4288
4289         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
4290         PER_LINUX_FDPIC): Add.
4291
4292 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4293
4294         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4295         memcpy-avx512-no-vzeroupper.
4296         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
4297         to ...
4298         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
4299         (MEMCPY): Don't define.
4300         (MEMCPY_CHK): Likewise.
4301         (MEMPCPY): Likewise.
4302         (MEMPCPY_CHK): Likewise.
4303         (MEMPCPY_CHK): Renamed to ...
4304         (__mempcpy_chk_avx512_no_vzeroupper): This.
4305         (MEMPCPY_CHK): Renamed to ...
4306         (__mempcpy_chk_avx512_no_vzeroupper): This.
4307         (MEMCPY_CHK): Renamed to ...
4308         (__memmove_chk_avx512_no_vzeroupper): This.
4309         (MEMCPY): Renamed to ...
4310         (__memmove_avx512_no_vzeroupper): This.
4311         (__memcpy_avx512_no_vzeroupper): New alias.
4312         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
4313
4314 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4315
4316         [BZ #18858]
4317         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4318         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
4319         and mempcpy-avx512-no-vzeroupper.
4320         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
4321         New.
4322         (MEMPCPY): Likewise.
4323         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
4324         (MEMPCPY_CHK): New.
4325         (MEMPCPY): Likewise.
4326         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
4327         (MEMPCPY): Likewise.
4328         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
4329         (MEMPCPY): Likewise.
4330         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
4331         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
4332         Likewise.
4333         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
4334         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
4335
4336 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4337              Amit Pawar  <Amit.Pawar@amd.com>
4338
4339         [BZ #19583]
4340         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4341         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
4342         processors.  Set Fast_Copy_Backward for AMD Excavator
4343         processors.
4344         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
4345         New.
4346         (index_arch_Fast_Unaligned_Copy): Likewise.
4347         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
4348         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
4349
4350 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4351
4352         [BZ #19791]
4353         * resolv/res_send.c (close_and_return_error): New function.
4354         (send_dg): Initialize *resplen2 after reopen failure.  Call
4355         close_and_return_error for error returns.  On error paths without
4356         __res_iclose, initialze *resplen2 explicitly.  Update comment for
4357         successful return.
4358
4359 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4360
4361         [BZ# 19860]
4362         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
4363         zero if the compiler does not provide the AVX512F bit.
4364
4365 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4366
4367         [BZ #19848]
4368         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4369         from 8 to 4.
4370         (__ieee754_powl): Compare integer exponent against 4 not 8.
4371         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4372         from 8 to 4.
4373         (__ieee754_powl): Compare integer exponent against 4 not 8.
4374         * math/auto-libm-test-in: Add more tests of pow.
4375         * math/auto-libm-test-out: Regenerated.
4376         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4378
4379 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4380
4381         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4382         Make code unconditional.
4383         [!__NR_utimensat]: Remove conditional code.
4384         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4385         Make code unconditional.
4386         [!__NR_utimensat]: Remove conditional code.
4387         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4388         Make code unconditional.
4389         [!__NR_utimensat]: Remove conditional code.
4390
4391 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4392
4393         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4394         Make code unconditional.
4395
4396 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4397
4398         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4399         call-clobbered %eax on retry path.
4400         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4401
4402 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4403
4404         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4405         Don't set %rcx twice before "rep movsb".
4406
4407 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4408
4409         [BZ #19583]
4410         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4411         inline.  Check family before setting family, model and
4412         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4413         bits here.
4414         (init_cpu_features): Replace HAS_CPU_FEATURE and
4415         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4416         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4417         for Intel processors with usable AVX2.  Call get_common_indeces
4418         for other processors with family == NULL.
4419         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4420         (CPU_FEATURES_ARCH_P): Likewise.
4421         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4422         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4423
4424 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4425
4426         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4427         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4428         $(shared-thread-library) instead of hardcoding the path to libpthread.
4429
4430 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4431
4432         * sysdeps/unix/sysv/linux/kernel-features.h
4433         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4434         * sysdeps/unix/sysv/linux/getdents.c
4435         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4436         [!have_no_getdents64_defined]: Likewise.
4437         (__GETDENTS): Remove __have_no_getdents64 conditional.
4438
4439 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4440
4441         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4442         Remove macro.
4443         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4444         <kernel-features.h>.
4445         (signalfd) [__NR_signalfd4]: Make code unconditional.
4446         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4447
4448 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4449
4450         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4451         style.
4452
4453 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4454
4455         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4456         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4457         __pthread_unwind.
4458         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4459         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4460         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4461         (__condvar_cleanup1): Likewise.
4462
4463 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4464
4465         [BZ #19822]
4466         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4467         move it to the final $@ location.
4468
4469 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4470
4471         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4472         access where posix_spawn success and pid argument is null.
4473         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4474         success case.
4475
4476 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4477
4478         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4479
4480         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4481
4482         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4483         and __fcntl.
4484         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4485         __fcntl only.
4486         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4487         adding attribute_hidden to __open and __fcntl.
4488
4489         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4490         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4491         depend on libc-modules.h,
4492         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4493
4494 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4495
4496         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4497         Remove macro.
4498         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4499         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4500         entry.
4501
4502         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4503         Remove macro.
4504         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4505         include <kernel-features.h>.
4506         [!__ASSUME_FALLOCATE]: Remove conditional code.
4507         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4508
4509 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4510
4511         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4512         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4513         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4514         (_ZGVdN4v_cos_avx2): Likewise.
4515         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4516         (_ZGVdN4v_cos): Likewise.
4517         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4518         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4519         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4520         (_ZGVdN4v_exp_avx2): Likewise.
4521         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4522         (_ZGVdN4v_exp): Likewise.
4523         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4524         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4525         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4526         (_ZGVdN4v_log_avx2): Likewise.
4527         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4528         (_ZGVdN4v_log): Likewise.
4529         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4530         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4531         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4532         (_ZGVdN4vv_pow_avx2): Likewise.
4533         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4534         (_ZGVdN4vv_pow): Likewise.
4535         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4536         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4537         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4538         (_ZGVdN4v_sin_avx2): Likewise.
4539         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4540         (_ZGVdN4v_sin): Likewise.
4541         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4542         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4543         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4544         (_ZGVdN4vvv_sincos_avx2): Likewise.
4545         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4546         (_ZGVdN4vvv_sincos): Likewise.
4547         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4548         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4549         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4550         (_ZGVbN4v_cosf_sse4): Likewise.
4551         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4552         (_ZGVdN8v_cosf_avx2): Likewise.
4553         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4554         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4555         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4556         (_ZGVbN4v_expf_sse4): Likewise.
4557         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4558         (_ZGVdN8v_expf_avx2): Likewise.
4559         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4560         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4561         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4562         (_ZGVbN4v_logf_sse4): Likewise.
4563         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4564         (_ZGVdN8v_logf_avx2): Likewise.
4565         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4566         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4567         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4568         (_ZGVbN4vv_powf_sse4): Likewise.
4569         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4570         (_ZGVdN8vv_powf_avx2): Likewise.
4571         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4572         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4573         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4574         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4575         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4576         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4577         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4578         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4579         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4580         (_ZGVbN4v_sinf_sse4): Likewise.
4581         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4582         (_ZGVdN8v_sinf_avx2): Likewise.
4583         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4584         Use JUMPTARGET to call callee.
4585         (WRAPPER_IMPL_SSE2_ff): Likewise.
4586         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4587         (WRAPPER_IMPL_AVX): Likewise.
4588         (WRAPPER_IMPL_AVX_ff): Likewise.
4589         (WRAPPER_IMPL_AVX_fFF): Likewise.
4590         (WRAPPER_IMPL_AVX512): Likewise.
4591         (WRAPPER_IMPL_AVX512_ff): Likewise.
4592         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4593         Likewise.
4594         (WRAPPER_IMPL_SSE2_ff): Likewise.
4595         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4596         (WRAPPER_IMPL_AVX): Likewise.
4597         (WRAPPER_IMPL_AVX_ff): Likewise.
4598         (WRAPPER_IMPL_AVX_fFF): Likewise.
4599         (WRAPPER_IMPL_AVX512): Likewise.
4600         (WRAPPER_IMPL_AVX512_ff): Likewise.
4601         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4602
4603 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4604
4605         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4606         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4607         qualifier.
4608         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4609         internal_function qualifiers.
4610
4611 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4612
4613         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4614         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4615         * math/atest-exp.c (exp_mpn): Mark chk unused.
4616         * math/atest-exp2.c (exp_mpn): Likwise.
4617         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4618         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4619
4620 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4621
4622         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4623         Remove macro.
4624         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4625         <kernel-features.h>.
4626         [__NR_ppoll]: Make code unconditional.
4627         [!__ASSUME_PPOLL]: Remove conditional code.
4628
4629         * sysdeps/unix/sysv/linux/kernel-features.h
4630         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4631         (__ASSUME_ACCEPT4): Likewise.
4632         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4633         Define.
4634         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4635         Likewise.
4636         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4637         Likewise.
4638         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4639         Likewise.
4640         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4641         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4642         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4643         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4644         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4645         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4646         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4647         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4648         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4649         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4650         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4651         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4652         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4653         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4654         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4655         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4656         Likewise.
4657         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4658         Likewise.
4659         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4660         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4661         0x040300].
4662         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4663         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4664         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4665         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4666         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4667         0x030300].
4668         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4669         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4670         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4671         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4672         0x040300].
4673         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4674         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4675         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4676         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4677         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4678         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4679         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4680         0x030300].
4681         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4682         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4683         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4684         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4685         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4686         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4687         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4688         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4689         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4690         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4691         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4692         0x040300].
4693         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4694         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4695         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4696         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4697         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4698         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4699         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4700         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4701         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4702         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4703         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4704         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4705         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4706         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4707         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4708         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4709         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4710         Likewise.
4711         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4712         Likewise.
4713
4714 2016-03-15  Andreas Schwab  <schwab@suse.de>
4715
4716         [BZ #19257]
4717         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4718         statp->_u._ext.nscount as loop count.
4719
4720 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4721
4722         * math/test-signgam-finite-c99.c: Also #undef
4723         __LIBC_INTERNAL_MATH_INLINES.
4724         * math/test-signgam-main.c: Likewise.
4725
4726 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4727
4728         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4729         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4730         (MADV_FREE): Likewise.
4731         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4732         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4733         EPOLLEXCLUSIVE.
4734
4735 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4736
4737         * timezone/README: Remove mention of checktab.awk. Mention wiki
4738         SharedSourceFiles.
4739
4740 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4741
4742         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4743         WUNTRACED.
4744
4745 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4746
4747         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4748         order to match the type of p when calling atomic_exchange_acq().
4749
4750 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4751
4752         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4753         cfi_offset calls.
4754         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4755         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4756         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4757         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4758         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4759
4760 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4761
4762         * timezone/checktab.awk: Removed.
4763
4764 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4765
4766         * manual/math.texi (Errors in Math Functions): Document relaxed
4767         accuracy goals for IBM long double.
4768         * math/libm-test.inc (test_exceptions): Always allow spurious
4769         "underflow" and "inexact" exceptions for IBM long double.
4770
4771 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4772
4773         [BZ #19762]
4774         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4775         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4776         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4777         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4778         (bit_arch_*): This for feature array.
4779         (bit_*): Renamed to ...
4780         (bit_cpu_*): This for cpu array.
4781         (index_*): Renamed to ...
4782         (index_arch_*): This for feature array.
4783         (index_*): Renamed to ...
4784         (index_cpu_*): This for cpu array.
4785         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4786         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4787         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4788         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4789         bit_##name with index_cpu_##name and bit_cpu_##name.
4790         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4791         bit_##name with index_arch_##name and bit_arch_##name.
4792
4793 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4794
4795         [BZ #19792]
4796         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4797         Terminate FDE before return label.
4798
4799 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4800
4801         [BZ #19790]
4802         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4803         (rintl): Define as macro.
4804         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4805         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4806         of fesetround.  Ensure results are evaluated before end of scope.
4807         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4808         USE_AS_NEARBYINTL and include s_rintl.c.
4809         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4810         Disable exception traps in new environment.
4811         (libc_feholdsetround_ppc_ctx): Likewise.
4812
4813 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4814
4815         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4816         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4817         (tst_audit10_aux) [__AVX512F__]: ... here.
4818
4819 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4820
4821         * include/sys/auxv.h: New file.
4822
4823 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4824
4825         [BZ #19759]
4826         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4827
4828 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4829
4830         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4831         operand modifier.
4832         (feclearexcept): Likewise.
4833
4834 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4835
4836         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4837         to reflect the entire 32-bit HWCAP.
4838         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4839         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4840
4841 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4842
4843         [BZ #19783]
4844         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4845         $(test-via-rtld-prefix).
4846         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4847
4848 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4849
4850         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4851         union wait.  Report any non-zero exit status as error.
4852
4853 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4854
4855         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4856         configured with --enable-hardcoded-path-in-tests.
4857
4858 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4859
4860         [BZ #19677]
4861         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4862         (__ieee754_remainderl): Put zero low parts in canonical form.
4863         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4864         file.  Based on
4865         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4866         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4867         with wrapper round test-fmodrem-ldbl-128ibm.c.
4868         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4869         file.
4870         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4871         Likewise.
4872         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4873         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4874
4875 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4876
4877         [BZ #19610]
4878         * elf/ldconfig.c (opt_link): Update comment.
4879         (options): Update help string for option -X.
4880         (search_dir): Unlink stale symbolic link only if updating symbolic
4881         links.
4882         * elf/tst-ldconfig-X.sh: New file.
4883         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4884         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4885
4886 2016-03-07  Andreas Schwab  <schwab@suse.de>
4887
4888         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4889         needed arguments.
4890
4891 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4892
4893         [BZ #15333]
4894         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4895         to lstat64.
4896
4897 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4898
4899         * libio/filedoalloc.c (isatty): Remove.
4900         (local_isatty): Add comment.  Call __isatty directly.
4901         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4902         * libio/wfiledoalloc.c (isatty): Remove.
4903         (_IO_wfile_doallocate): Update comment.
4904
4905 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4906
4907         [BZ #19269]
4908         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4909         tst-audit4-aux.o.
4910         (tst-audit10): Depend on tst-audit10-aux.o.
4911         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4912         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4913         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4914         instead of inline AVX code.
4915         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4916         instead of inline AVX512 code.
4917         * sysdeps/x86_64/tst-audit4-aux.c: New file
4918         * sysdeps/x86_64/tst-audit10-aux.c: New file
4919
4920         [BZ #19648]
4921         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4922
4923 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4924
4925         [BZ #14750]
4926         [BZ #10354]
4927         [BZ #18433]
4928         * include/sched.h (__clone): Add hidden prototype.
4929         (__clone2): Likewise.
4930         * include/unistd.h (__dup): Likewise.
4931         * posix/Makefile (tests): Add tst-spawn2.
4932         * posix/tst-spawn2.c: New file.
4933         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4934         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4935         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4936         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4937         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4938         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4939         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4940         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4941         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4942         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4943         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4945         Likewise.
4946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4947         Likewise.
4948         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4949         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4950         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4951         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4952         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4953         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4954         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4955         * sysdeps/unix/sysv/linux/nptl-signals.h
4956         (____nptl_is_internal_signal): New function.
4957         * sysdeps/unix/sysv/linux/spawni.c: New file.
4958
4959         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4960         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4961         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4962         * posix/tst-execvp2.c (do_test): Likewise.
4963         * posix/tst-execvp3.c (do_test): Likewise.
4964         * posix/tst-execvp4.c (do_test): Likewise.
4965         * posix/tst-execvpe1.c: New file.
4966         * posix/tst-execvpe2.c: Likewise.
4967         * posix/tst-execvpe3.c: Likewise.
4968         * posix/tst-execvpe4.c: Likewise.
4969         * posix/tst-execvpe5.c: Likewise.
4970         * posix/tst-execvpe6.c: Likewise.
4971
4972         [BZ #19534]
4973         * posix/execl.c (execl): Remove dynamic memory allocation.
4974         * posix/execle.c (execle): Likewise.
4975         * posix/execlp.c (execlp): Likewise.
4976
4977 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4978
4979         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4980         Replace .text with .text.avx512.
4981         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4982         Likewise.
4983
4984 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4985
4986         * sysdeps/generic/libnsl.abilist: New file.
4987         * sysdeps/generic/libutil.abilist: New file.
4988
4989 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4990
4991         [BZ #19762]
4992         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4993         HAS_ARCH_FEATURE with Fast_Rep_String.
4994         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4995         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4996         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4997         Likewise.
4998         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4999         Likewise.
5000         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
5001         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
5002         Likewise.
5003         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
5004         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
5005         Likewise.
5006
5007 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5008
5009         [BZ #19745]
5010         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
5011         with *%rax in call.
5012
5013 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5014
5015         [BZ #19745]
5016         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
5017         with *__libc_start_main@GOTPCREL(%rip) in call.
5018
5019 2016-03-04  Roland McGrath  <roland@hack.frob.com>
5020
5021         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
5022         inside conditional for nonempty $(CXX).
5023
5024         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
5025         nonempty.
5026
5027         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
5028         to test for empty $(CXX) rather than $(CXX) of "no".
5029
5030 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5031
5032         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
5033
5034 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
5035             H.J. Lu  <hongjiu.lu@intel.com>
5036
5037         [BZ #18880]
5038         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
5039         instead of Slow_BSF, and also check for Fast_Copy_Backward to
5040         enable __memcpy_ssse3_back.
5041
5042 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5043
5044         [BZ #19758]
5045         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
5046         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
5047
5048 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
5049
5050         [BZ #19490]
5051         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
5052         (__fentry__): Likewise.
5053
5054 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5055
5056         * gmon/Makefile (noprof): Add $(sysdep_noprof).
5057         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
5058
5059 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5060
5061         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
5062         __mcount_internal directly.
5063         (C_LABEL(__fentry__)): Likewise.
5064         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
5065         directly.
5066
5067 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5068
5069         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5070         (__start_context): Call __setcontext directly.
5071
5072 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
5073
5074         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5075         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5076         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
5077         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5078         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5079         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5080         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
5081         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5082         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5083         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
5084         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5085         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5086         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5087         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5088         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5089         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5090         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
5091         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5092         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5093         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5094         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
5095         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5096         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5097         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5098         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
5099         Remove conditional code.
5100         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5101         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
5102         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5103         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5104         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
5105         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5106         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5107         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5108         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5109         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5110         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5111         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5112
5113 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
5114
5115         * NEWS (2.23): Fix typo in bug 19048 text.
5116
5117 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
5118
5119         [BZ #14259]
5120         * Makeconfig: Rename msgcatdir to localedir.
5121         Rename inst_msgcatdir to inst_localedir.
5122         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
5123         * config.make.in: Add localedir.
5124         * elf/Makefile ($(objpfx)sotruss): Use localedir.
5125         (ldd-rewrite): Likewise.
5126         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
5127         (install-others): Use inst_localedir.
5128         (CPPFLAGS): Use localedir.
5129         * locale/Makefile (locale-CPPFLAGS): Likewise.
5130         * po/Makefile (mo-installed): Use inst_localedir.
5131
5132         [BZ #19575]
5133         * localedata/charmaps/GB18030: Update comments regarding PAU to
5134         non-PUA mappings.
5135
5136 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
5137
5138         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
5139         test for header.
5140         * sysdeps/unix/sysv/linux/configure: Regenerated.
5141         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
5142         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
5143         Remove conditional code.
5144         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
5145
5146         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
5147         Define to 3.2.0.
5148         (arch_minimum_kernel): Likewise.
5149         * sysdeps/unix/sysv/linux/configure: Regenerated.
5150         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
5151         Define to 2.6.32.
5152         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
5153         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
5154         (arch_minimum_kernel): Define to 2.6.32.
5155         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
5156         * README: Document Linux 3.2 requirement.
5157         * manual/install.texi (Linux): Document Linux 3.2 headers
5158         requirement.
5159         * INSTALL: Regenerated.
5160
5161 2016-02-24  Andreas Schwab  <schwab@suse.de>
5162
5163         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
5164         if !NO_LONG_DOUBLE.
5165
5166 2016-02-22  Roland McGrath  <roland@hack.frob.com>
5167
5168         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
5169         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
5170
5171 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
5172
5173         [BZ #19512]
5174         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
5175
5176 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5177
5178         * posix/tst-dir.c: Include libc-internal.h.
5179
5180 2016-02-20  Florian Weimer  <fweimer@redhat.com>
5181
5182         [BZ #19056]
5183         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
5184         * manual/filesys.texi (Reading/Closing Directory): Mention
5185         deprecaion.
5186         * posix/tst-dir.c (main): Disable deprecation warning in test.
5187
5188 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5189
5190         [BZ #19679]
5191         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
5192         Renamed to ...
5193         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
5194         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5195         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
5196         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5197         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5198         * sysdeps/x86_64/dl-trampoline.h
5199         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5200         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5201
5202 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5203
5204         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
5205
5206 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5207
5208         * elf/elf.h (R_386_GOT32X): New.
5209         (R_386_NUM): Update.
5210         (R_X86_64_GOTPCRELX: New.
5211         (R_X86_64_REX_GOTPCRELX): New.
5212         (R_X86_64_NUM): Update.
5213
5214 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
5215
5216         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
5217
5218 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
5219
5220         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
5221         assign attr->stackaddr to it, and adjust it down when
5222         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
5223         [_STACK_GROWS_UP]: Delete assert.
5224         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
5225         Implement stack grows up logic.
5226         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
5227         stack grows up logic.
5228
5229 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5230
5231         * NEWS: Update with 2.24 template.
5232
5233 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5234
5235         [BZ #19678]
5236         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5237         Ensure +0.0 is returned when taking the next value below the least
5238         positive value.
5239
5240 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5241
5242         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
5243         available.  Do not define NO_THREADS.
5244         * malloc/malloc.c: Do not check NO_THREADS.
5245         * malloc/arena.c: Likewise.
5246
5247 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5248
5249         * malloc/malloc.c (__libc_mallinfo): Update comment.
5250         (struct malloc_par): Remove max_total_mem member, it was always 0.
5251         (int_mallinfo): Store 0 into usmblks (no functional change).
5252         * malloc/hooks.c (struct malloc_state): Document that
5253         max_total_mem is always 0.
5254         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
5255         always 0.
5256         * manual/memory.texi (Statistics of Malloc): Likewise.
5257
5258 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5259
5260         * malloc/malloc.c (sysmalloc): Do not update arena_max.
5261         * malloc/arena.c (arena_max): Remove.
5262         (heap_trim, _int_new_arena): Do not update arena_max.
5263
5264 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5265
5266         * resolv/res_init.c (res_ninit): Update comment.
5267
5268 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5269
5270         [BZ #19505]
5271         * posix/spawn_int.h: Add headers and include guard.
5272         (__spawn_valid_fd): New function.
5273         * posix/spawn_faction_addopen.c
5274         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
5275         * posix/spawn_faction_addclose.c
5276         (posix_spawn_file_actions_addclose): Likewise.
5277         * posix/spawn_faction_adddup2.c
5278         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
5279         second file descriptor.
5280         * posix/spawn_valid_fd.c: New file.
5281         * posix/tst-posix_spawn-fd.c: New file.
5282         * posix/Makefile (routines): Add spawn_valid_fd.
5283         (tests): Add tst-posix_spawn-fd.
5284
5285 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5286
5287         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
5288         (do_test): Limit the number of arenas, so that we can use fewer
5289         outer threads.  Limit timeout to 3 seconds, in preparation for a
5290         larger TIMEOUT value.
5291
5292 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5293
5294         [BZ #19674]
5295         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
5296         sign in overflowing and underflowing results when overflow or
5297         underflow is detected early.  Include sign in result before rather
5298         than after scaling.
5299
5300         [BZ #19603]
5301         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5302         (__ieee754_remainderl): Adjust sign of integer version of low part
5303         when taking absolute value of high part.
5304         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5305         * math/libm-test.inc (remainder_test_data): Add another test.
5306         (remquo_test_data): Likewise.
5307
5308 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
5309
5310         [BZ #19602]
5311         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
5312         equal high parts and both low parts zero specially.
5313         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
5314         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
5315         Add test-fmodl-ldbl-128ibm.
5316
5317         [BZ #19595]
5318         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
5319         common logic for all cases of shifting subnormal results.  Do not
5320         insert sign bit in shifted mantissa.  Always pass -1023 as biased
5321         exponent to ldbl_insert_mantissa in subnormal case.
5322
5323         [BZ #19594]
5324         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
5325         on high and low parts then adjust result and use
5326         ldbl_canonicalize_int if needed.
5327
5328         [BZ #19593]
5329         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
5330         on high part and __floor or __ceil on low part then use
5331         ldbl_canonicalize_int if needed.
5332
5333         [BZ #19592]
5334         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
5335         high and low parts then use ldbl_canonicalize_int if needed.
5336
5337         [BZ #17899]
5338         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5339         New function.
5340         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
5341         on high and low parts then use ldbl_canonicalize_int if needed.
5342
5343 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5344
5345         * configure: Regenerated.
5346
5347         * po/libc.pot: Regenerated.
5348
5349         * po/be.po: Updated translation.
5350         * po/bg.po: Likewise.
5351         * po/ca.po: Likewise.
5352         * po/cs.po: Likewise.
5353         * po/da.po: Likewise.
5354         * po/el.po: Likewise.
5355         * po/eo.po: Likewise.
5356         * po/es.po: Likewise.
5357         * po/fi.po: Likewise.
5358         * po/fr.po: Likewise.
5359         * po/gl.po: Likewise.
5360         * po/hr.po: Likewise.
5361         * po/hu.po: Likewise.
5362         * po/ia.po: Likewise.
5363         * po/id.po: Likewise.
5364         * po/it.po: Likewise.
5365         * po/ja.po: Likewise.
5366         * po/lt.po: Likewise.
5367         * po/nb.po: Likewise.
5368         * po/nl.po: Likewise.
5369         * po/pt_BR.po: Likewise.
5370         * po/rw.po: Likewise.
5371         * po/sk.po: Likewise.
5372         * po/sl.po: Likewise.
5373         * po/sv.po: Likewise.
5374         * po/tr.po: Likewise.
5375         * po/zh_CN.po: Likewise.
5376         * po/zh_TW.po: Likewise.
5377
5378         * version.h (RELEAES): Set to "development".
5379         (VERSION): Set to 2.23.90.
5380
5381         * version.h (RELEASE): Set to "stable".
5382         (VERSION): Set to 2.23.
5383         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5384
5385         * NEWS: Updated fixed bugs.
5386
5387 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5388             Wilco Dijkstra  <wdijkstr@arm.com>
5389
5390         [BZ #19462]
5391         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5392         (_STRING_INLINE_unaligned): This.
5393         * include/string.h: Include <string_private.h>.
5394         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5395         _STRING_INLINE_unaligned.
5396         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5397         (_STRING_INLINE_unaligned): New.
5398         * sysdeps/aarch64/string_private.h: New file.
5399         * sysdeps/generic/string_private.h: Likewise.
5400         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5401         * sysdeps/s390/string_private.h: Likewise.
5402         * sysdeps/x86/string_private.h: Likewise.
5403         * sysdeps/m68k/m680x0/m68020/bits/string.h
5404         (_STRING_ARCH_unaligned): Renamed to ...
5405         (_STRING_INLINE_unaligned): This.
5406         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5407         to ...
5408         (_STRING_INLINE_unaligned): This.
5409         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5410         to ...
5411         (_STRING_INLINE_unaligned): This.
5412         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5413         to ...
5414         (_STRING_INLINE_unaligned): This.
5415
5416 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5417             H.J. Lu  <hongjiu.lu@intel.com>
5418
5419         [BZ #19590]
5420         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5421         relocation.
5422
5423 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5424
5425         [BZ #18665]
5426         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5427         *herrno_p.
5428         (gaih_getanswer): Document functional behviour. Return tryagain
5429         if any result is tryagain.
5430         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5431         when freed.
5432         * resolv/res_send.c: Add copyright text.
5433         (__libc_res_nsend): Document that MAXPACKET is expected.
5434         (send_vc): Document. Remove buffer reuse.
5435         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5436         size of the buffer. Add Dprint for truncated UDP buffer.
5437
5438 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5439
5440         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5441         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5442         * INSTALL: Regenerate.
5443
5444 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5445             Jonathan Wakely  <jwakely@redhat.com>
5446             Carlos O'Donell  <carlos@redhat.com>
5447
5448         [BZ 19439]
5449         * math/Makefile (tests): Add test-math-isinff.
5450         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5451         * math/bits/mathcalls.h [__USE_MISC]: Use
5452         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5453         functions not in C++11 and which don't conflict e.g. isinff,
5454         isinfl etc.
5455         * math/test-math-isinff.cc: New file.
5456
5457 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5458
5459         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5460
5461 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5462
5463         [BZ #19529]
5464         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5465
5466 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5467
5468         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5469
5470 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5471
5472         [BZ #19550]
5473         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5474         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5475         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5476         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5477         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5478         New syscall entry.
5479         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5480         New syscall entry.
5481         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5482         syscall entry.
5483
5484 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5485
5486         [BZ #18240]
5487         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5488         unsigned int wraparound.
5489
5490 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5491
5492         [BZ #18240]
5493         * misc/bug18240.c: New test.
5494         * misc/Makefile (tests): Add it.
5495
5496 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5497             Joseph Myers  <joseph@codesourcery.com>
5498
5499         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5500         load in branch delay slot when less than a word of input left.
5501
5502 2016-01-27  Andreas Schwab  <schwab@suse.de>
5503
5504         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5505         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5506         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5507         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5508
5509 2016-01-26  David S. Miller  <davem@davemloft.net>
5510
5511         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5512
5513 2016-01-25  David S. Miller  <davem@davemloft.net>
5514
5515         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5516         __sqrtl_finite.
5517         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5518         instead using versioned_symbol.
5519         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5520         of entries.
5521
5522         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5523         __sqrtl_finite to GLIBC_2.23
5524
5525 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5526
5527         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5528
5529 2016-01-25  Andreas Schwab  <schwab@suse.de>
5530
5531         [BZ #17514]
5532         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5533         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5534         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5535         * nptl/tst-mutex-errorcheck.c: New file.
5536
5537 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5538
5539         [BZ #18560]
5540         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5541         (IPCOP_semop): Likewise.
5542         (IPCOP_semget): Likewise.
5543         (IPCOP_semctl): Likewise.
5544         (IPCOP_msgsnd): Likewise.
5545         (IPCOP_msgrcv): Likewise.
5546         (IPCOP_msgget): Likewise.
5547         (IPCOP_msgctl): Likewise.
5548         (IPCOP_shmat): Likewise.
5549         (IPCOP_shmdt): Likewise.
5550         (IPCOP_shmget): Likewise.
5551         (IPCOP_shmctl): Likewise.
5552
5553 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5554
5555         * string/tst-endian.c: Include <libc-internal.h>.
5556         (do_test): Ignore tautological-compare warnings around
5557         "htobeXX (beXXtoh (i)) != i" and
5558         "htoleXX (leXXtoh (i)) != i" if-statements.
5559
5560 2016-01-24  David S. Miller  <davem@davemloft.net>
5561
5562         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5563         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5564         alias.
5565         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5566         __sqrtl_finite.
5567
5568         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5569
5570 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5571
5572         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5573         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5574         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5575
5576 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5577
5578         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5579         (thread_func): Use new function to simplify barrier check.
5580         (do_test): Use new function to simplify checking barrier exit
5581         code, and actually join the child thread.
5582
5583 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5584
5585         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5586         semicolon.
5587         (__libc_tend): Likewise.
5588         (__libc_tabort): Likewise.
5589
5590 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5591
5592         * sysdeps/nios2/libm-test-ulps: Update.
5593         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5594         (__gtsf2): Likewise.
5595         (__unorddf2): Likewise.
5596         (__unordsf2): Likewise.
5597         (__ledf2): Likewise.
5598
5599 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5600
5601         * nis/nis_table.c (__follow_path): Disable diagnostic for
5602         uninitialized variable that is a false positive for gcc 4.7.
5603         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5604
5605 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5606
5607         * sysdeps/nacl/lowlevellock-futex.h
5608         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5609         Always evaluate PRIVATE argument.
5610
5611 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5612
5613         [BZ #19490]
5614         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5615         (pthread_cond_broadcast): Use ENTRY/END
5616         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5617         (pthread_cond_signal): Likewise.
5618         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5619         Likewise.
5620         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5621         Likewise.
5622         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5623         Likewise.
5624
5625 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5626
5627         * sysdeps/ieee754/dbl-64/s_finite.c
5628         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5629         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5630         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5631         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5632         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5633
5634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5635         (__gtsf2): Add as optional for libc.so.
5636         (__unordsf2): Likewise.
5637         (__signbit): Remove for libc.so.
5638         (__signbitl): Likewise.
5639
5640 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5641
5642         * iconvdata/bug-iconv11.c (test_ibm93x):
5643         Use %zu printf format specifier for size_t argument.
5644
5645 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5646
5647         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5648         already-recorded ulps.
5649         * sysdeps/arm/libm-test-ulps: Regenerated.
5650         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5651         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5652         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5653
5654 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5655             Paul Pluzhnikov  <ppluzhnikov@google.com>
5656
5657         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5658         assembler not supporting AVX-512.
5659
5660 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5661
5662         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5663
5664 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5665
5666         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5667         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5668
5669         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5670
5671         * sysdeps/arm/libm-test-ulps: Regenerated.
5672
5673 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5674
5675         [BZ #19451]
5676         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5677
5678 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5679
5680         [BZ #19486]
5681         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5682         * sysdeps/generic/fix-fp-int-convert-overflow.h
5683         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5684         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5685         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5686         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5687         Likewise.
5688         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5689         Avoid conversions to long int where inexact exceptions
5690         could be raised.
5691         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5692         Likewise.
5693         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5694         Avoid conversions to long long int where inexact exceptions
5695         could be raised.
5696         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5697         Likewise.
5698
5699 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5700
5701         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5702         * configure: Regenerated.
5703
5704 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5705
5706         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5707
5708 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5709
5710         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5711         outside of comment.
5712
5713 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5714
5715         * nptl/tst-barrier1.c: Add description on first line.
5716         * nptl/tst-barrier2.c: Likewise.
5717         * nptl/tst-barrier3.c: Likewise.
5718         * nptl/tst-barrier4.c: Likewise.
5719         * nptl/tst-barrier5.c: Likewise.
5720
5721 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5722
5723         [BZ #18868]
5724         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5725
5726 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5727
5728         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5729         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5730         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5731         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5732         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5733         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5734         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5735         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5736         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5737         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5738         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5739
5740 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5741
5742         [BZ #13065]
5743         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5744         new implementation.
5745         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5746         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5747         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5748         (BARRIER_IN_THRESHOLD): New macro.
5749         * nptl/pthread_barrierattr_setpshared.c
5750         (pthread_barrierattr_setpshared): Clean up.
5751         * nptl/tst-barrier4.c: Correct comment.
5752         * nptl/tst-barrier5.c: New file.
5753         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5754         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5755         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5756         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5757         * nptl/lowlevelbarrier.sym: Remove.
5758         * nptl/DESIGN-barrier.txt: Remove.
5759         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5760         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5761         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5762         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5763         error.
5764         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5765         implementation.
5766
5767 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5768
5769         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5770         (do_child): Mask SIGRTMIN while thr is running.
5771
5772 2016-01-15  Martin Sebor  <msebor@redhat.com>
5773
5774         [BZ #19432]
5775         * iconvdata/Makefile: Add bug-iconv11.
5776         * iconvdata/bug-iconv11.c: New test.
5777         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5778         * iconvdata/ibm933.c: Same.
5779         * iconvdata/ibm935.c: Same.
5780         * iconvdata/ibm937.c: Same.
5781         * iconvdata/ibm939.c: Same.
5782
5783 2016-01-15  Martin Sebor  <msebor@redhat.com>
5784
5785         [BZ #19443]
5786         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5787         [DEBUG] (_ufc_set_bits): Declare used.
5788         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5789         [DEBUG] (print_all): Declare used.
5790         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5791         operands of the ternary ?: expression to target type.
5792         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5793         calling the undeclared abort.
5794         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5795
5796 2016-01-15  Martin Sebor  <msebor@redhat.com>
5797
5798         [BZ #18755]
5799         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5800         warnings.
5801         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5802         (__gai_create_helper_thread): Same.
5803         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5804         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5805         to suppress -Wmaybe-uninitialized warnings.
5806
5807 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5808
5809         [BZ #19465]
5810         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5811         inside if.
5812         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5813         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5814         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5815
5816 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5817
5818         [BZ #19466]
5819         * time/tst-mktime2.c (time_t_max): Removed.
5820         (time_t_min): Likewise.
5821         (TYPE_SIGNED): New.
5822         (TYPE_MINIMUM): Likewise.
5823         (TYPE_MAXIMUM): Likewise.
5824         (TIME_T_MIN): Likewise.
5825         (TIME_T_MAX): Likewise.
5826         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5827         and TIME_T_MIN.
5828         (do_test): Likewise.
5829
5830 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5831
5832         [BZ #19467]
5833         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5834         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5835
5836 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5837
5838         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5839
5840 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5841
5842         * benchtests/Makefile (PYTHON): Define.
5843         (bench-func): Use $(PYTHON) to run python scripts.
5844         ($(objpfx)bench-%.c): Likewise.
5845
5846 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5847
5848         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5849         leading slash when `file_name' is "/".
5850
5851 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5852
5853         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5854         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5855         Likewise.
5856         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5857         Likewise.
5858         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5859         Likewise.
5860         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5861         enum constant and macro.
5862         (PTRACE_SETSIGMASK): Likewise.
5863         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5864         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5865         (PTRACE_GETSIGMASK): Likewise.
5866         (PTRACE_SETSIGMASK): Likewise.
5867         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5868         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5869         Likewise.
5870         (PTRACE_SETSIGMASK): Likewise.
5871         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5872         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5873         (PTRACE_GETSIGMASK): Likewise.
5874         (PTRACE_SETSIGMASK): Likewise.
5875         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5876         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5877         Likewise.
5878         (PTRACE_SETSIGMASK): Likewise.
5879         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5880         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5881         Likewise.
5882         (PTRACE_SETSIGMASK): Likewise.
5883         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5884         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5885         Likewise.
5886         (PTRACE_SETSIGMASK): Likewise.
5887         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5888
5889 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5890             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5891
5892         [BZ #19439]
5893         * math/bits/mathcalls.h
5894         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5895         prototype.
5896         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5897
5898 2016-01-11  Andreas Schwab  <schwab@suse.de>
5899
5900         [BZ #19253]
5901         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5902         cache when TZDEFRULES was used.
5903         * time/tst-tzname.c: New file.
5904         * time/Makefile (test): Add tst-tzname.
5905         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5906         * timezone/Makefile (test-zones): Add $(posixrules-file).
5907         ($(testdata)/$(posixrules-file)): New rule.
5908
5909 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5910
5911         Fix doc quoting problems with Texinfo 5
5912         Without this change, in the info file output, Texinfo 5 quotes code
5913         in text with undirected single quotes 'like this' and generates
5914         code examples that with many PDF readers cannot be cut out of PDFs
5915         and pasted into code.
5916         * manual/libc.texinfo: Configure the libc manual like the GNU
5917         Emacs manual, by using @documentencoding and setting
5918         txicodequoteundirected and txicodequotebacktick.  This way,
5919         Texinfo 5 quotes code in text with directed single quotes ‘like
5920         this’ and produces examples that can be cut out of PDFs.  This
5921         change causes Texinfo 5 to generate info files that contain UTF-8
5922         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5923         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5924
5925 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5926
5927         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5928         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5929         barriers to their respective compiler built-ins.
5930         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5931         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5932         * sysdeps/powerpc/sysdep.h: Likewise.
5933         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5934         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5935         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5936
5937 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5938
5939         * scripts/config.guess: Revert previous shebang change.
5940         * scripts/config.sub: Likewise.
5941         * scripts/mkinstalldirs: Likewise.
5942
5943 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5944
5945         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5946         PPC_FEATURE2_HAS_IEEE128.
5947         * sysdeps/powerpc/dl-procinfo.c:
5948         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5949
5950 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5951
5952         [BZ #19415]
5953         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5954         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5955         (_dl_lookup_address): Rewrite using function resolver trampoline.
5956         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5957         two bits in address.
5958
5959 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5960
5961         * longlong.h: Change !__SHMEDIA__ to
5962         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5963         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5964
5965 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5966             Joseph Myers  <joseph@codesourcery.com>
5967             Mark Shinwell  <shinwell@codesourcery.com>
5968             Andrew Stubbs  <ams@codesourcery.com>
5969             Rich Felker <dalias@libc.org>
5970
5971         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5972
5973 2016-01-07  Richard Henderson  <rth@redhat.com>
5974
5975         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5976
5977 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5978
5979         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5980         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5981         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5982         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5983         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5984
5985 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5986             Joseph Myers  <joseph@codesourcery.com>
5987
5988         * timezone/private.h: Update from tzcode 2015g.
5989         * timezone/tzfile.h: Likewise.
5990         * timezone/tzselect.ksh: Likewise.
5991         * timezone/zdump.c: Likewise.
5992         * timezone/zic.c: Likewise.
5993         * timezone/ialloc.c: Remove file.
5994         * timezone/scheck.c: Likewise.
5995         * timezone/Makefile (extra-objs): Remove variable.
5996         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5997         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5998         -Wno-maybe-uninitialized.
5999         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
6000         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
6001         (CFLAGS-ialloc.c): Remove variable.
6002         (CFLAGS-scheck.c): Likewise.
6003         * timezone/README: Update list of files from tzcode.
6004
6005 2016-01-07  Khem Raj  <raj.khem@gmail.com>
6006
6007         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
6008         instead of __fxprintf when _LIBC is undefined.
6009
6010 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
6011
6012         * catgets/test-gencat.sh: Remove space after shebang.
6013         * conform/GlibcConform.pm: Likewise.
6014         * conform/check-header-lists.sh: Likewise.
6015         * conform/conformtest.pl: Likewise.
6016         * conform/linknamespace.pl: Likewise.
6017         * conform/list-header-symbols.pl: Likewise.
6018         * debug/catchsegv.sh: Likewise.
6019         * elf/genrtldtbl.awk: Likewise.
6020         * elf/tst-pathopt.sh: Likewise.
6021         * elf/tst-rtld-load-self.sh: Likewise.
6022         * grp/tst_fgetgrent.sh: Likewise.
6023         * iconvdata/gen-8bit-gap-1.sh: Likewise.
6024         * iconvdata/gen-8bit-gap.sh: Likewise.
6025         * iconvdata/gen-8bit.sh: Likewise.
6026         * iconvdata/run-iconv-test.sh: Likewise.
6027         * intl/tst-gettext.sh: Likewise.
6028         * intl/tst-gettext2.sh: Likewise.
6029         * intl/tst-gettext4.sh: Likewise.
6030         * intl/tst-gettext6.sh: Likewise.
6031         * intl/tst-translit.sh: Likewise.
6032         * io/ftwtest-sh: Likewise.
6033         * libio/test-freopen.sh: Likewise.
6034         * locale/gen-translit.pl: Likewise.
6035         * malloc/tst-mtrace.sh: Likewise.
6036         * manual/check-safety.sh: Likewise.
6037         * manual/libc-texinfo.sh: Likewise.
6038         * manual/tsort.awk: Likewise.
6039         * manual/xtract-typefun.awk: Likewise.
6040         * nptl/tst-cancel-wrappers.sh: Likewise.
6041         * nptl/tst-tls6.sh: Likewise.
6042         * posix/globtest.sh: Likewise.
6043         * posix/tst-getconf.sh: Likewise.
6044         * posix/wordexp-tst.sh: Likewise.
6045         * scripts/check-c++-types.sh: Likewise.
6046         * scripts/check-local-headers.sh: Likewise.
6047         * scripts/config.guess: Likewise.
6048         * scripts/config.sub: Likewise.
6049         * scripts/cpp: Likewise.
6050         * scripts/cross-test-ssh.sh: Likewise.
6051         * scripts/documented.sh: Likewise.
6052         * scripts/evaluate-test.sh: Likewise.
6053         * scripts/gen-libc-abis: Likewise.
6054         * scripts/gen-sorted.awk: Likewise.
6055         * scripts/list-fixed-bugs.py: Likewise.
6056         * scripts/merge-test-results.sh: Likewise.
6057         * scripts/mkinstalldirs: Likewise.
6058         * scripts/rellns-sh: Likewise.
6059         * scripts/test-installation.pl: Likewise.
6060         * scripts/update-copyrights: Likewise.
6061         * stdio-common/tst-printf.sh: Likewise.
6062         * stdio-common/tst-unbputc.sh: Likewise.
6063         * stdlib/tst-fmtmsg.sh: Likewise.
6064         * stdlib/tst-setcontext3.sh: Likewise.
6065         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
6066         * sysdeps/unix/make-syscalls.sh: Likewise.
6067
6068 2016-01-06  John David Anglin  <dave.anglin@bell.net>
6069
6070         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
6071         asm stw with atomic_exchange_rel.  Add explanatory comment.
6072         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
6073         Likewise.
6074
6075 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6076
6077         [BZ #19122]
6078         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
6079         * sysdeps/generic/dl-unistd.h: New file.
6080         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
6081
6082 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6083
6084          [BZ #19122]
6085          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
6086          * sysdeps/generic/dl-mman.h: New file.
6087          * sysdeps/mach/hurd/dl-mman.h: Likewise.
6088
6089 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
6090
6091         * manual/texinfo.tex: Update to version 2016-01-04.21 with
6092         trailing whitespace removed.
6093         * scripts/config.guess: Update to version 2016-01-01.
6094         * scripts/config.sub: Update to version 2016-01-01.
6095         * scripts/move-if-change: Update from gnulib.
6096
6097 2016-01-04  Anton Blanchard  <anton@samba.org>
6098
6099         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
6100         for array indices.
6101         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
6102
6103 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
6104
6105         * NEWS: Update copyright dates.
6106         * catgets/gencat.c (print_version): Likewise.
6107         * csu/version.c (banner): Likewise.
6108         * debug/catchsegv.sh: Likewise.
6109         * debug/pcprofiledump.c (print_version): Likewise.
6110         * debug/xtrace.sh (do_version): Likewise.
6111         * elf/ldconfig.c (print_version): Likewise.
6112         * elf/ldd.bash.in: Likewise.
6113         * elf/pldd.c (print_version): Likewise.
6114         * elf/sotruss.sh: Likewise.
6115         * elf/sprof.c (print_version): Likewise.
6116         * iconv/iconv_prog.c (print_version): Likewise.
6117         * iconv/iconvconfig.c (print_version): Likewise.
6118         * locale/programs/locale.c (print_version): Likewise.
6119         * locale/programs/localedef.c (print_version): Likewise.
6120         * login/programs/pt_chown.c (print_version): Likewise.
6121         * malloc/memusage.sh (do_version): Likewise.
6122         * malloc/memusagestat.c (print_version): Likewise.
6123         * malloc/mtrace.pl: Likewise.
6124         * manual/libc.texinfo: Likewise.
6125         * nptl/version.c (banner): Likewise.
6126         * nscd/nscd.c (print_version): Likewise.
6127         * nss/getent.c (print_version): Likewise.
6128         * nss/makedb.c (print_version): Likewise.
6129         * posix/getconf.c (main): Likewise.
6130         * scripts/test-installation.pl: Likewise.
6131         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6132
6133         * All files with FSF copyright notices: Update copyright dates
6134         using scripts/update-copyrights.
6135         * intl/plural.c: Regenerated.
6136         * locale/programs/charmap-kw.h: Likewise.
6137         * locale/programs/locfile-kw.h: Likewise.
6138
6139 2016-01-02  Helge Deller  <deller@gmx.de>
6140
6141         [BZ #19285]
6142         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
6143         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
6144         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
6145         (MADV_xxK_PAGES): Remove.
6146
6147 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
6148
6149         [BZ #15421]
6150         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
6151         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
6152         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
6153         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
6154
6155 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
6156
6157         [BZ #19408]
6158         * sysdeps/unix/sysv/linux/personality.c: New file.
6159         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
6160         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
6161         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
6162         (sysdep_routines): Add personality.
6163         (tests): Add tst-personality.
6164         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
6165         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
6166         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
6167         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
6168         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
6169         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
6170         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
6171         Likewise.
6172         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
6173         Likewise.
6174         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
6175         Likewise.
6176         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
6177         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
6178         Likewise.
6179
6180 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
6181
6182         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
6183         (PATH_ARM_SYSTYPE): Remove.
6184         (PATH_CPUINFO): Likewise.
6185         (IO_BASE_FOOTBRIDGE): Likewise.
6186         (IO_SHIFT_FOOTBRIDGE): Likewise.
6187         (struct platform): Likewise.
6188         (init_iosys): Remove compatibility code for 2.4 kernels.
6189         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
6190
6191 2015-12-29  Florian Weimer  <fweimer@redhat.com>
6192
6193         * malloc/tst-malloc-thread-fail.c: New file.
6194         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
6195         (tst-malloc-thread-fail): Link against libpthread.
6196
6197 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
6198
6199         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
6200         (get_parser): New function.
6201         (main): New function.
6202
6203 2015-12-29  Rob Wu  <rob@robwu.nl>
6204
6205         [BZ #19369]
6206         * resolv/res_init.c (__res_vinit): Reset defdname before use.
6207
6208 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
6209
6210         [BZ #19270]
6211         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6212
6213 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
6214
6215         [BZ #15421]
6216         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
6217
6218 2015-12-23  Torvald Riegel  <triegel@redhat.com>
6219
6220         [BZ #13690]
6221         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
6222         after releasing it.
6223         (__lll_robust_unlock): Likewise.
6224         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6225         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
6226         (lll_robust_unlock): Likewise.
6227         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
6228         Prevent warnings in callers.
6229
6230 2015-12-23  Florian Weimer  <fweimer@redhat.com>
6231
6232         * malloc/arena.c (list_lock): Update comment.
6233
6234 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6235
6236         * sysdeps/powerpc/hwcapinfo.c: Export symbol
6237         __parse_hwcap_and_convert_at_platform to libc.a.
6238
6239 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6240
6241         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
6242         platform and feature support for POWER9.
6243         * sysdeps/powerpc/dl-procinfo.h: Likewise.
6244         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
6245         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
6246         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
6247         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
6248         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
6249         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
6250         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
6251
6252 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6253
6254         Harmonize generic stdio-lock support with nptl
6255
6256         This fixes build when _IO_funlockfile is a macro, fixes build where
6257         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
6258         stack unwind.
6259
6260         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
6261         _IO_release_lock ): Use cleanup attribute on new
6262         _IO_acquire_lock_file variable instead of assuming that
6263         _IO_release_lock will be called.
6264         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
6265         _IO_acquire_lock_needs_exceptions_enabled.
6266         (_IO_acquire_lock_clear_flags2): New macro.
6267
6268 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6269
6270         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
6271
6272 2015-12-21  Florian Weimer  <fweimer@redhat.com>
6273
6274         [BZ #19182]
6275         * malloc/arena.c (list_lock): Document lock ordering requirements.
6276         (free_list_lock): New lock.
6277         (ptmalloc_lock_all): Comment on free_list_lock.
6278         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
6279         (detach_arena): Update comment.  free_list_lock is now needed.
6280         (_int_new_arena): Use free_list_lock around detach_arena call.
6281         Acquire arena lock after list_lock.  Add comment, including FIXME
6282         about incorrect synchronization.
6283         (get_free_list): Switch to free_list_lock.
6284         (reused_arena): Acquire free_list_lock around detach_arena call
6285         and attached threads counter update.  Add two FIXMEs about
6286         incorrect synchronization.
6287         (arena_thread_freeres): Switch to free_list_lock.
6288         * malloc/malloc.c (struct malloc_state): Update comments to
6289         mention free_list_lock.
6290
6291 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6292
6293         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
6294         Remove functions.
6295         (sloww, sloww1): Accept argument to offset quadrant.
6296         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
6297         quadrant.
6298         (__sin, __cos): Consolidate common code into new functions.
6299         (reduce_sincos_1, do_sincos_1): New functions.
6300         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6301
6302         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
6303         code to new functions.
6304         (reduce_sincos_2, do_sincos_2): New functions.
6305         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6306
6307         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
6308         common code for sincos.
6309         (__cos) [!IN_SINCOS]: Likewise.
6310         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
6311         New function.
6312         (__sincos): Use it.
6313
6314 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
6315
6316         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
6317         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
6318         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6319
6320 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6321
6322         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
6323         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
6324         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
6325         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
6326         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6327         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
6328         index_Prefer_No_VZEROUPPER): New feature.
6329         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
6330         Prefer_No_VZEROUPPER for Knights Landing.
6331
6332 015-12-18  Torvald Riegel  <triegel@redhat.com>
6333
6334         * math/atest-exp2.c (mp_exp_m1): Remove.
6335
6336 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6337
6338         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
6339         syscalls.
6340         (__SYSCALL0): New macro.
6341         (__SYSCALL1): Likewise.
6342         (__SYSCALL2): Likewise.
6343         (__SYSCALL3): Likewise.
6344         (__SYSCALL4): Likewise.
6345         (__SYSCALL5): Likewise.
6346         (__SYSCALL6): Likewise.
6347         (__SYSCALL_CONCAT_X): Likewise.
6348         (__SYSCALL_CONCAT): Likewise.
6349         (__SYSCALL_DIST): Likewise.
6350         (__SYSCALL_CALL): Likewise.
6351
6352 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
6353
6354         [BZ #19363]
6355         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
6356
6357 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6358
6359         [BZ #19375]
6360         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
6361         negative subnormals.
6362
6363 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6364
6365         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6366         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6367         (INTERNAL_SYSCALL_NCS): Use it.
6368         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6369
6370 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6371
6372         [BZ #19243]
6373         * malloc/arena.c (get_free_list): Remove assert and adjust
6374         reference count handling.  Add comment about reused_arena
6375         interaction.
6376         (reused_arena): Add comments abount get_free_list interaction.
6377         * malloc/tst-malloc-thread-exit.c: New file.
6378         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6379         (tst-malloc-thread-exit): Link against libpthread.
6380
6381 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6382
6383         [BZ #19367]
6384         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6385         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6386         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6387         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6388         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6389
6390 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6391
6392         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6393         Silvermont optimizations for Knights Landing.
6394
6395 2015-12-15  Andreas Schwab  <schwab@suse.de>
6396
6397         [BZ #17197]
6398         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6399         immediately after emitting SI.
6400         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6401         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6402         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6403         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6404         * iconvdata/bug-iconv10.c: New file.
6405         * iconvdata/Makefile (tests): Add bug-iconv10.
6406         ($(objpfx)bug-iconv10.out): New rule.
6407
6408 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6409
6410         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6411         aliasing violation.
6412
6413 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6414
6415         [BZ #18472]
6416         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6417         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6418         conditionals for them.
6419         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6420         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6421         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6422         sys/kdaemon.h.
6423         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6424         compat-only syscall, obsoleted in glibc 2.23.
6425         (create_module): Likewise.
6426         (get_kernel_syms): Likewise.
6427         (query_module): Likewise.
6428         (uselib): Likewise.
6429         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6430
6431 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6432
6433         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6434         <linux/version.h>.
6435         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6436         conditional code.
6437         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6438         and ioshift_name initialization.
6439
6440 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6441
6442         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6443         Fix indentation.
6444
6445 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6446
6447         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6448
6449 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6450
6451         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6452
6453 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6454             Jakub Wilk  <jwilk@debian.org>
6455
6456         [BZ #19347]
6457         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6458         to change the group of the device to the tty group.
6459
6460 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6461
6462         Split large string section; add truncation advice
6463         * manual/examples/strncat.c: Remove.
6464         This example was misleading, as the code would have undefined
6465         behavior if "hello" was longer than SIZE.  Anyway, the manual
6466         shouldn't encourage strncpy+strncat for this sort of thing.
6467         * manual/string.texi (Copying Strings and Arrays): Split into
6468         three sections Copying Strings and Arrays, Concatenating Strings,
6469         and Truncating Strings, as this section was way too long.  All
6470         cross-referenced changed.  Add advice about string-truncation
6471         functions.  Remove misleading strncat example.
6472
6473 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6474
6475         * manual/nss.texi (NSS Modules Interface): Document
6476         NSS_STATUS_NOTFOUND and SUCCESS.
6477
6478 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6479
6480         [BZ 18568]
6481         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6482         201505L, for Unicode 8.
6483
6484 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6485
6486         * locale/C-translit.h: Regenerate.
6487
6488 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6489
6490         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6491         and U+0153.
6492
6493 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6494
6495         [BZ #19351]
6496         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6497         expanding log(1+z), compare z rather than its square with epsilon
6498         to determine when to avoid evaluating the expansion.
6499
6500         [BZ #19350]
6501         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6502         Increase overflow threshold.
6503
6504         [BZ #19349]
6505         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6506         when small.
6507
6508         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6509         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6510         New macro.
6511         [__LINUX_KERNEL_VERSION >= 0x040300]
6512         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6513         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6514         Likewise.
6515         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6516         Likewise.
6517         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6518         Likewise.
6519         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6520         Likewise.
6521         [__LINUX_KERNEL_VERSION >= 0x040300]
6522         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6523         [__LINUX_KERNEL_VERSION >= 0x040300]
6524         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6525         [__LINUX_KERNEL_VERSION >= 0x040300]
6526         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6527         [__LINUX_KERNEL_VERSION >= 0x040300]
6528         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6529         [__LINUX_KERNEL_VERSION >= 0x040300]
6530         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6531         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6532         Likewise.
6533         [__LINUX_KERNEL_VERSION >= 0x040300]
6534         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6535         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6536         Likewise.
6537         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6538         Likewise.
6539         [__LINUX_KERNEL_VERSION >= 0x040300]
6540         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6541         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6542         Likewise.
6543         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6544         Likewise.
6545         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6546         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6547         Likewise.
6548         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6549         Likewise.
6550         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6551         Likewise.
6552         [__LINUX_KERNEL_VERSION >= 0x040300]
6553         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6554         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6555         Likewise.
6556         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6557         Likewise.
6558         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6559         Likewise.
6560         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6561         Likewise.
6562         [__LINUX_KERNEL_VERSION >= 0x040300]
6563         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6564         [__LINUX_KERNEL_VERSION >= 0x040300]
6565         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6566         [__LINUX_KERNEL_VERSION >= 0x040300]
6567         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6568         [__LINUX_KERNEL_VERSION >= 0x040300]
6569         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6570         [__LINUX_KERNEL_VERSION >= 0x040300]
6571         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6572         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6573         Likewise.
6574         [__LINUX_KERNEL_VERSION >= 0x040300]
6575         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6576         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6577         Likewise.
6578         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6579         Likewise.
6580         [__LINUX_KERNEL_VERSION >= 0x040300]
6581         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6582         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6583         Likewise.
6584         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6585         Likewise.
6586         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6587         (__ASSUME_SOCKET_SYSCALL): Likewise.
6588         (__ASSUME_BIND_SYSCALL): Likewise.
6589         (__ASSUME_CONNECT_SYSCALL): Likewise.
6590         (__ASSUME_LISTEN_SYSCALL): Likewise.
6591         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6592         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6593         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6594         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6595         (__ASSUME_SEND_SYSCALL): Likewise.
6596         (__ASSUME_SENDTO_SYSCALL): Likewise.
6597         (__ASSUME_RECV_SYSCALL): Likewise.
6598         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6599         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6600         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6601         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6602         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6603         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6604         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6605         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6606         Likewise.
6607         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6608         Likewise.
6609         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6610         Likewise.
6611         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6612         Likewise.
6613         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6614         Likewise.
6615         [__LINUX_KERNEL_VERSION >= 0x020625]
6616         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6617         [__LINUX_KERNEL_VERSION >= 0x020625]
6618         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6619         [__LINUX_KERNEL_VERSION >= 0x020625]
6620         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6621         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6622         Likewise.
6623         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6624         Likewise.
6625         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6626         Likewise.
6627         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6628         Likewise.
6629         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6630         Likewise.
6631         [__LINUX_KERNEL_VERSION >= 0x020625]
6632         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6633         [__LINUX_KERNEL_VERSION >= 0x020625]
6634         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6635         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6636         Likewise.
6637         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6638         Likewise.
6639
6640 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6641
6642         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6643         record the current if the current ABI and CPU support the FP64
6644         extension.
6645         (has-modd-spreg): Define to record the current if the current ABI and
6646         CPU support 32-bit floating point values in odd FPU registers.
6647         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6648         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6649         $(has-modd-spreg) equals yes.
6650         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6651         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6652         $(has-modd-spreg) equal yes.
6653
6654 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6655
6656         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6657         basename.
6658
6659 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6660
6661         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6662         (bench-string): ... here.
6663         (bench): Add bench-string.
6664         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6665         to *-benchset to reflect what they are.
6666         (benchset): Adjust.
6667
6668         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6669         cos-inputs.
6670
6671 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6672
6673         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6674         __attribute__ ((__simd__)) for vector math function declarations.
6675
6676 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6677
6678         Fix typo in strncat, wcsncat manual entries
6679         * manual/string.texi (Copying and Concatenation): Fix typos in
6680         sample implementations of strncat and wcsncat, by having them use
6681         the old value of the destination length, not the new one.
6682
6683 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6684
6685         [BZ #16961]
6686         [BZ #16962]
6687         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6688         string on the stack for strtod.
6689         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6690         a string on the stack for strtof.
6691         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6692         constructing a string on the stack for strtold.
6693         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6694         __strtold_nan to GLIBC_PRIVATE.
6695         * math/test-nan-overflow.c: New file.
6696         * math/test-nan-payload.c: Likewise.
6697         * math/Makefile (tests): Add test-nan-overflow and
6698         test-nan-payload.
6699
6700 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6701
6702         Consistency about byte vs character in string.texi
6703         * manual/string.texi (String and Array Utilities):
6704         Distinguish more carefully among bytes, multibyte characters,
6705         and wide characters.  Use "byte" when talking about C 'char',
6706         to distinguish it more clearly from multibyte characters.
6707         Say "wide character" or "multibyte character" instead of
6708         "character", when a wide or multibyte character is intended.
6709         Similarly for "multibyte string" versus "string".
6710         Define these terms more carefully.
6711
6712 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6713
6714         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6715         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6716         Likewise.
6717         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6718         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6719         * sysdeps/sh/math_private.h: New file.
6720         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6721         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6722         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6723         long double function name.
6724         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6725         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6726         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6727         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6728         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6729         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6730         Remove __finitel, __isinfl, and __isnanl.
6731         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6732         Likewise.
6733         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6734         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6735         Remove __finitel.
6736         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6737         Likewise.
6738         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6739
6740 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6741
6742         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6743         installed libmvec_nonshared.a.
6744
6745 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6746
6747         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6748         (sysdep_routines): Likewise.
6749         (sysdep-rtld-routines): Likewise.
6750         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6751         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6752         * sysdeps/powerpc/Versions: Added new
6753         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6754         * sysdeps/powerpc/hwcapinfo.c: New file.
6755         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6756         and parse hwcap, hwcap2 and platform number information.
6757         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6758         to store HWCAP+HWCAP2 and platform number.
6759         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6760         for HWCAP+HWCAP2 and platform number in the TCB.
6761         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6762         the HWCAP, HWCAP2 and platform number in the TCB.
6763         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6764         (TLS_INIT_TP): Included calls to add the hwcap and
6765         at_platform values in the TCB in TP initialization.
6766         (TLS_DEFINE_INIT_TP): Likewise.
6767         (THREAD_GET_HWCAP): New macro.
6768         (THREAD_SET_HWCAP): Likewise.
6769         (THREAD_GET_AT_PLATFORM): Likewise.
6770         (THREAD_SET_AT_PLATFORM): Likewise.
6771         * sysdeps/powerpc/powerpc32/dl-machine.h:
6772         (dl_platform_init): New function that calls
6773         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6774         powerpc32.
6775         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6776         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6777         this functionality, static linking case.
6778         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6779         linking case.
6780         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6781         __parse_hwcap_and_convert_at_platform for the static linking case.
6782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6783         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6784         ABI list for GLIBC 2.23.
6785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6786         Likewise.
6787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6788         Likewise.
6789
6790 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6791
6792         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6793         * configure: Regenerate.
6794         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6795         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6796
6797 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6798
6799         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6800         * iconvdata/ibm933.c: Likewise.
6801         * iconvdata/ibm935.c: Likewise.
6802         * iconvdata/ibm937.c: Likewise.
6803         * iconvdata/ibm939.c: Likewise.
6804
6805 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6806
6807         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6808         pthread_join.
6809         * nptl/tst-cancel21.c (tf): Likewise.
6810
6811 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6812
6813         [BZ #19313]
6814         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6815         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6816         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6817         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6818         Likewise.
6819         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6820         Likewise.
6821         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6822         Likewise.
6823         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6824         Likewise.
6825         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6826         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6827         unsigned long int with __CPU_MASK_TYPE.
6828
6829 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6830
6831         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6832
6833 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6834
6835         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6836         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6837         t512.x.
6838         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6839
6840 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6841
6842         [BZ #19214]
6843         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6844         argument to return extended model.  Update family and model
6845         with extended family and model when family == 0x0f.
6846         (init_cpu_features): Updated.
6847
6848 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6849
6850         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6851         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6852
6853         * sysdeps/mach/hurd/mmap64.c: New file.
6854
6855 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6856
6857         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6858         rights for its main user thread in NEWTASK.
6859
6860 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6861
6862         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6863         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6864
6865 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6866
6867         [BZ #14259]
6868         * Makeconfig: Rename localedir to complocaledir.
6869         Rename inst_localedir to inst_complocaledir.
6870         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6871         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6872         * configure.ac: Use libc_cv_complocaledir.
6873         * configure: Regenerate.
6874         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6875         -DCOMPLOCALEDIR.
6876         * locale/findlocale.c: Use COMPLOCALEDIR.
6877         * locale/loadarchive.c: Likewise.
6878         * locale/programs/locale.c: Likewise.
6879         * locale/programs/localedef.c: Likewise.
6880         * locale/programs/locarchive.c: Likewise.
6881         * localedata/Makefile: Use inst_complocaledir.
6882         * sysdeps/gnu/configure: Regenerate.
6883         * sysdeps/hppa/configure: Regenerate.
6884         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6885         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6887         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6888         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6889         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6890         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6891
6892 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6893
6894         [BZ #19058]
6895         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6896         AS_NEEDED.
6897         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6898         workaround.
6899         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6900         libmvec-static-only-routines): Added new file.
6901         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6902
6903 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6904
6905         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6906         of interrupted RPC instead of restoring it.
6907
6908         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6909         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6910         libc_hidden_def.
6911         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6912         into initialized data instead of common. Define rtld_hidden_data_def.
6913         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6914         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6915         libc_hidden_def.
6916         (if_freenameindex): Add libc_hidden_weak.
6917         (if_nameindex): Add libc_hidden_weak.
6918         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6919         __open64.
6920         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6921         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6922         * sysdeps/mach/nanosleep.c: Include <time.h>
6923         (__nanosleep): Rename to __libc_nanosleep.
6924         (__nanosleep): Add weak_alias.
6925         (nanosleep): Update alias.
6926
6927 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6928
6929         * stdlib/strtod_nan.c: New file.
6930         * stdlib/strtod_nan_double.h: Likewise.
6931         * stdlib/strtod_nan_float.h: Likewise.
6932         * stdlib/strtod_nan_main.c: Likewise.
6933         * stdlib/strtod_nan_narrow.h: Likewise.
6934         * stdlib/strtod_nan_wide.h: Likewise.
6935         * stdlib/strtof_nan.c: Likewise.
6936         * stdlib/strtold_nan.c: Likewise.
6937         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6938         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6939         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6940         * wcsmbs/wcstod_nan.c: Likewise.
6941         * wcsmbs/wcstof_nan.c: Likewise.
6942         * wcsmbs/wcstold_nan.c: Likewise.
6943         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6944         strtold_nan.
6945         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6946         wcstof_nan.
6947         * include/stdlib.h (__strtof_nan): Declare and use
6948         libc_hidden_proto.
6949         (__strtod_nan): Likewise.
6950         (__strtold_nan): Likewise.
6951         (__wcstof_nan): Likewise.
6952         (__wcstod_nan): Likewise.
6953         (__wcstold_nan): Likewise.
6954         * include/wchar.h (____wcstoull_l_internal): Declare.
6955         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6956         (____strtoull_l_internal): Remove declaration.
6957         (STRTOF_NAN): Define macro.
6958         (SET_MANTISSA): Remove macro.
6959         (STRTOULL): Likewise.
6960         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6961         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6962         (STRTOF_NAN): Define macro.
6963         (SET_MANTISSA): Remove macro.
6964         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6965         (SET_MANTISSA): Remove macro.
6966         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6967         macro.
6968         (SET_MANTISSA): Remove macro.
6969         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6970         macro.
6971         (SET_MANTISSA): Remove macro.
6972         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6973         (SET_MANTISSA): Remove macro.
6974         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6975         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6976         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6977
6978         [BZ #19266]
6979         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6980         upper case and lower case letters inside NAN(), not using TOLOWER.
6981         * stdlib/tst-strtod-nan-locale-main.c: New file.
6982         * stdlib/tst-strtod-nan-locale.c: Likewise.
6983         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6984         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6985         Depend on $(gen-locales).
6986         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6987         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6988         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6989         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6990         Depend on $(gen-locales).
6991         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6992
6993 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6994
6995         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6996
6997         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6998         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6999         __finitel, __isinfl, and __isnanl.
7000         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7001         Likewise.
7002         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7003         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
7004         __finitel.
7005         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7006         Likewise.
7007         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7008
7009 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
7010
7011         * malloc/memusage.c (me): Remove redundant getenv call.
7012
7013 2015-10-24  Florian Weimer  <fweimer@redhat.com>
7014
7015         [BZ #19143]
7016         [BZ #19164]
7017         * nptl/check-cpuset.h: Remove.
7018         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
7019         Remove CPU set size check.
7020         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
7021         Likewise.
7022         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
7023         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7024         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
7025         (__pthread_setaffinity_new): Remove CPU set size check.
7026         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7027         (__kernel_cpumask_size): Remove.
7028         (__sched_setaffinity_new): Remove CPU set size check.
7029         * manual/threads.texi (Default Thread Attributes): Remove stale
7030         reference to check_cpuset_attr, determine_cpumask_size in comment.
7031         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
7032         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
7033         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
7034         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
7035         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
7036         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
7037         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
7038         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
7039         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
7040         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
7041         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
7042         skeleton test file.
7043         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
7044         tst-affinity-pid.
7045
7046 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7047
7048         * scripts/update-abilist.sh: New file.
7049         * Makefile (+subdir_targets): Add subdir_update-all-abi.
7050         * Makerules (update-all-abi-%, update-all-abi)
7051         (subdir_update-all-abi): New targets.
7052         * elf/Makefile (update-all-abi): New target.
7053
7054 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7055
7056         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
7057         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
7058         (__libc_lock_define_initialized): Use it.
7059         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
7060         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
7061         * malloc/malloc.c (main_arena): Likewise.
7062         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7063         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7064
7065 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
7066
7067         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
7068         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
7069         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7070         (PTRACE_O_MASK): Update value.
7071         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
7072         New value in enum __ptrace_setoptions.
7073         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7074         (PTRACE_O_MASK): Update value.
7075         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
7076         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7077         (PTRACE_O_MASK): Update value.
7078         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
7079         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7080         (PTRACE_O_MASK): Update value.
7081         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
7082         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7083         (PTRACE_O_MASK): Update value.
7084         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
7085         New value in enum __ptrace_setoptions.
7086         (PTRACE_O_MASK): Update value.
7087         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
7088         New value in enum __ptrace_setoptions.
7089         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7090         (PTRACE_O_MASK): Update value.
7091
7092         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
7093         New macro.
7094         (PACKET_AUXDATA): Likewise.
7095         (PACKET_ORIGDEV): Likewise.
7096         (PACKET_VERSION): Likewise.
7097         (PACKET_HDRLEN): Likewise.
7098         (PACKET_RESERVE): Likewise.
7099         (PACKET_TX_RING): Likewise.
7100         (PACKET_LOSS): Likewise.
7101         (PACKET_VNET_HDR): Likewise.
7102         (PACKET_TX_TIMESTAMP): Likewise.
7103         (PACKET_TIMESTAMP): Likewise.
7104         (PACKET_FANOUT): Likewise.
7105         (PACKET_TX_HAS_OFF): Likewise.
7106         (PACKET_QDISC_BYPASS): Likewise.
7107         (PACKET_ROLLOVER_STATS): Likewise.
7108         (PACKET_FANOUT_DATA): Likewise.
7109         (PACKET_MR_UNICAST): Likewise.
7110
7111         [BZ #19242]
7112         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
7113         (TOUPPER): Likewise.
7114         * stdlib/tst-strtol-locale-main.c: New file.
7115         * stdlib/tst-strtol-locale.c: Likewise.
7116         * stdlib/Makefile (tests): Add tst-strtol-locale.
7117         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
7118         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
7119         Depend on $(gen-locales).
7120         * wcsmbs/tst-wcstol-locale.c: New file.
7121         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
7122         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
7123         tr_TR.ISO-8859-9.
7124         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
7125         Depend on $(gen-locales).
7126
7127 2015-11-20  Roland McGrath  <roland@hack.frob.com>
7128
7129         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
7130         __glibc_likely instead of __builtin_expect.  After falling back to
7131         dyncode_create in a non-ET_DYN case, use the allocate_code_data
7132         system interface to register the code pages as occupied.
7133
7134 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
7135
7136         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7137         [!ARM_MATH_PRIVATE_H].
7138         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
7139         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7140         [!HPPA_MATH_PRIVATE_H].
7141         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
7142         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
7143         to [!I386_MATH_PRIVATE_H].
7144         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
7145         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
7146         Change guard to [!M68K_MATH_PRIVATE_H].
7147         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
7148         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
7149         guard to [!MICROBLAZE_MATH_PRIVATE_H].
7150         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
7151         macro.
7152         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7153         [!MIPS_MATH_PRIVATE_H].
7154         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
7155         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7156         [!NIO2_MATH_PRIVATE_H].
7157         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
7158         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7159         [!TILE_MATH_PRIVATE_H].
7160         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
7161
7162         [BZ #15421]
7163         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
7164         initialize with 0 and define as weak alias of __signgam.
7165         * include/math.h [!_ISOMAC] (__signgam): Declare.
7166         * math/Makefile (libm-calls): Add w_lgamma_compat.
7167         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
7168         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
7169         test-signgam-ullong-init.
7170         (tests-static): Add test-signgam-uchar-static,
7171         test-signgam-uchar-init-static, test-signgam-uint-static,
7172         test-signgam-uint-init-static, test-signgam-ullong-static and
7173         test-signgam-ullong-init-static.
7174         (CFLAGS-test-signgam-uchar.c): New variable.
7175         (CFLAGS-test-signgam-uchar-init.c): Likewise.
7176         (CFLAGS-test-signgam-uchar-static.c): Likewise.
7177         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
7178         (CFLAGS-test-signgam-uint.c): Likewise.
7179         (CFLAGS-test-signgam-uint-init.c): Likewise.
7180         (CFLAGS-test-signgam-uint-static.c): Likewise.
7181         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
7182         (CFLAGS-test-signgam-ullong.c): Likewise.
7183         (CFLAGS-test-signgam-ullong-init.c): Likewise.
7184         (CFLAGS-test-signgam-ullong-static.c): Likewise.
7185         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
7186         * math/Versions (libm): Add GLIBC_2.23.
7187         * math/lgamma-compat.h: New file.
7188         * math/test-signgam-main.c: Likewise.
7189         * math/test-signgam-uchar-init-static.c: Likewise.
7190         * math/test-signgam-uchar-init.c: Likewise.
7191         * math/test-signgam-uchar-static.c: Likewise.
7192         * math/test-signgam-uchar.c: Likewise.
7193         * math/test-signgam-uint-init-static.c: Likewise.
7194         * math/test-signgam-uint-init.c: Likewise.
7195         * math/test-signgam-uint-static.c: Likewise.
7196         * math/test-signgam-uint.c: Likewise.
7197         * math/test-signgam-ullong-init-static.c: Likewise.
7198         * math/test-signgam-ullong-init.c: Likewise.
7199         * math/test-signgam-ullong-static.c: Likewise.
7200         * math/test-signgam-ullong.c: Likewise.
7201         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
7202         wrapper of w_lgamma_main.c.
7203         * math/w_lgamma_compat.c: New file.
7204         * math/w_lgamma_compatf.c: Likewise.
7205         * math/w_lgamma_compatl.c: Likewise.
7206         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
7207         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7208         defining compatibility symbols.
7209         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
7210         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
7211         wrapper of w_lgammaf_main.c.
7212         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
7213         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7214         defining compatibility symbols.
7215         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
7216         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
7217         wrapper of w_lgammal_main.c.
7218         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
7219         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7220         defining compatibility symbols.
7221         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
7222         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
7223         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
7224         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
7225         <lgamma-compat.h>.
7226         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
7227         (__ieee754_gamma): Define as alias.
7228         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
7229         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
7230         <lgamma-compat.h>.
7231         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
7232         (__ieee754_gammaf): Define as alias.
7233         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
7234         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
7235         <lgamma-compat.h>.
7236         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
7237         (__ieee754_gammal): Define as alias.
7238         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
7239         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
7240         <math/w_lgamma_compat.c>.
7241         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
7242         Define as alias of __lgamma_compat and use in defining lgammal.
7243         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
7244         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
7245         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
7246         (USE_AS_COMPAT): New macro.
7247         (LGAMMA_OLD_VER): Undefine and redefine.
7248         (lgammal): Do not define here.
7249         (gammal): Only define here if [GAMMA_ALIAS].
7250         * conform/linknamespace.pl (@whitelist): Remove signgam.
7251         * sysdeps/nacl/libm.abilist: Update.
7252         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7253         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7254         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7255         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7256         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7257         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7258         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7259         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7260         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7261         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7262         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7263         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7265         Likewise.
7266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7267         Likewise.
7268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7269         Likewise.
7270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7271         Likewise.
7272         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7273         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7274         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7275         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7276         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7277         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7278         Likewise.
7279         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7280         Likewise.
7281         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7282         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7283         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7284
7285 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7286
7287         [BZ #16364]
7288         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
7289         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
7290
7291 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7292
7293         * sysdeps/s390/fpu/bits/mathinline.h:
7294         Use __asm__ [__volatile__] instead of asm [volatile].
7295         * sysdeps/s390/abort-instr.h: Likewise.
7296         * sysdeps/s390/atomic-machine.h: Likewise.
7297         * sysdeps/s390/bits/string.h: Likewise.
7298         * sysdeps/s390/dl-tls.h: Likewise.
7299         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7300         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7301         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7302         * sysdeps/s390/fpu/fesetround.c: Likewise.
7303         * sysdeps/s390/fpu/fpu_control.h: Likewise.
7304         * sysdeps/s390/fpu/s_fma.c: Likewise.
7305         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
7306         * sysdeps/s390/memusage.h: Likewise.
7307         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
7308         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
7309         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
7310         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
7311         * sysdeps/s390/nptl/tls.h: Likewise.
7312         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
7313         * sysdeps/s390/s390-32/backtrace.c: Likewise.
7314         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7315         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
7316         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7317         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7318         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
7319         * sysdeps/s390/s390-64/backtrace.c: Likewise.
7320         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7321         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
7322         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
7323         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7324         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7325         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
7326         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
7327         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
7328         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
7329         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7330         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
7331         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7332         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
7333         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7334         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
7335
7336 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7337             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7338
7339         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
7340         Add lwarx hint, and use macro for acquire instruction.
7341         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
7342         Likewise.
7343         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
7344         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
7345         update to use new atomic macros.
7346
7347 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7348
7349         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7350         (__lll_trylock_elision): Fix setting of adapt_count.
7351         * sysdeps/unix/sysv/linux/powerpc/htm.h
7352         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
7353         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
7354         (_ABORT_SYSCALL): Renumber, and clarify definition.
7355         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
7356
7357 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7358
7359         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
7360         after system headers to prevent MIN/MAX redefinition.  Define
7361         HAVE_ALLOCA to preserve builtin alloca usage.
7362
7363 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7364
7365         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7366         static and don't set or restore rounding.
7367         (__cos)[IN_SINCOS]: Likewise.
7368         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7369         (__sincos): Set and restore rounding mode.  Remove check for infinite
7370         or NaN input.
7371
7372         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7373
7374         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7375         as used.
7376
7377 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7378
7379         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7380
7381 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7382
7383         * config.make.in (have-glob-dat-reloc): New.
7384         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7385         target supports GLOB_DAT relocaton. AC_SUBST.
7386         * configure: Regenerated.
7387         * elf/Makefile (tests): Add tst-prelink.
7388         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7389         (tst-prelink-ENV): New.
7390         ($(objpfx)tst-prelink-conflict.out): Likewise.
7391         ($(objpfx)tst-prelink-cmp.out): Likewise.
7392         * sysdeps/x86/tst-prelink.c: Moved to ...
7393         * elf/tst-prelink.c: Here.
7394         * sysdeps/x86/tst-prelink.exp: Moved to ...
7395         * elf/tst-prelink.exp: Here.
7396         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7397         (tst-prelink-ENV): Removed.
7398         ($(objpfx)tst-prelink-conflict.out): Likewise.
7399         ($(objpfx)tst-prelink-cmp.out): Likewise.
7400         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7401
7402 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7403
7404         [BZ #14551]
7405         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7406         (__mpn_construct_long_double): If high part overflows to infinity,
7407         set errno and recompute overflowed result of the correct sign.
7408         * sysdeps/ieee754/ldbl-128ibm/Makefile
7409         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7410         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7411         $(libm).
7412         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7413
7414 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7415
7416         [BZ #15479]
7417         [BZ #19238]
7418         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7419         floating-point state after first operation on input.  Restore full
7420         state rather than just rounding mode.
7421         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7422         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7423         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7424
7425         [BZ #19235]
7426         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7427         add 0.5 to integer arguments.
7428         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7429         Likewise.
7430         (.LC2): New object.
7431
7432 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7433
7434         * scripts/pylintrc (reports): Set to no.
7435
7436 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7437
7438         * elf/dl-load.c (open_verify): Take new argument FD.
7439         Skip __open call if passed FD is not -1.
7440         (_dl_map_object, open_path): Update callers.
7441         * elf/dl-sysdep-open.h: New file.
7442         * elf/dl-load.c: Include it.
7443         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7444         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7445         * sysdeps/nacl/dl-sysdep-open.h: New file.
7446         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7447         from libc to rtld.
7448
7449 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7450
7451         [BZ #19228]
7452         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7453         and restore full floating-point state.
7454         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7455         Likewise.
7456         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7457         Likewise.
7458         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7459         Likewise.
7460         * math/test-nearbyint-except-2.c: New file.
7461         * math/Makefile (tests): Add test-nearbyint-except-2.
7462
7463 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7464
7465         [BZ #19178]
7466         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7467         (tst-prelink-ENV): New.
7468         ($(objpfx)tst-prelink-conflict.out): Likewise.
7469         ($(objpfx)tst-prelink-cmp.out): Likewise.
7470         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7471         * sysdeps/x86/tst-prelink.c: New file.
7472         * sysdeps/x86/tst-prelink.exp: Likewise.
7473
7474 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7475
7476         * math/auto-libm-test-in: Add another test of pow.
7477         * math/auto-libm-test-out: Regenerated.
7478         * math/libm-test.inc (pow_test_data): Add another test.
7479
7480 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7481
7482         [BZ #19219]
7483         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7484         weak_alias to nearbyintl.
7485
7486 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7487
7488         * sysdeps/aarch64/bits/string.h: New file.
7489         (_STRING_ARCH_unaligned): Define.
7490
7491 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7492
7493         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7494         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7495         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7496         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7498
7499 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7500
7501         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7502         for original name of the DSO.  Add it to the name list of the DSO
7503         if it is actually given.
7504         (_dl_map_object): Keep track of whether an audit module rewrote
7505         the file name.  If yes, pass the original name to
7506         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7507         debugging is enabled, log the change of the file name.
7508         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7509         _dl_map_object_from_fd.
7510         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7511         * elf/tst-audit11.c: New file
7512         * elf/tst-auditmod11.c: New file.
7513         * elf/tst-audit11mod1.c: New file.
7514         * elf/tst-audit11mod2.c: New file.
7515         * elf/tst-audit11mod2.map: New file.
7516         * elf/tst-audit12.c: New file
7517         * elf/tst-auditmod12.c: New file.
7518         * elf/tst-audit12mod1.c: New file.
7519         * elf/tst-audit12mod2.c: New file.
7520         * elf/tst-audit12mod2.map: New file.
7521         * elf/tst-audit12mod3.c: New file.
7522
7523 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7524
7525         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7526         Don't create weak aliases,
7527         because versioned symbols are created later.
7528         * sysdeps/s390/s390-32/setjmp.S
7529         (setjmp, _setjmp): Remove weak and rename to an unique name
7530         in SHARED case due to existing versioned symbols.
7531         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7532         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7533         (getcontext): Create weak alias only in non SHARED case.
7534         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7535
7536 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7537
7538         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7539         (__ASSUME_*_SYSCALL) Define new macros.
7540         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7541         Remove socketcall syscalls.
7542         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7543         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7544         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7545         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7546         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7547         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7548
7549 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7550
7551         [BZ #12926]
7552         Terminate process on invalid netlink response.
7553         * sysdeps/unix/sysv/linux/netlinkaccess.h
7554         (__netlink_assert_response): Declare.
7555         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7556         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7557         (sysdep_routines): Add netlink_assert_response.
7558         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7559         __netlink_assert_response.
7560         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7561         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7562         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7563         __netlink_assert_response.
7564
7565 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7566
7567         [BZ #19178]
7568         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7569         (RTYPE_CLASS_PLT): Likewise.
7570         (RTYPE_CLASS_COPY): Likewise.
7571         (RTYPE_CLASS_TLS): Likewise.
7572         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7573         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7574         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7575         DL_DEBUG_PRELINK.
7576
7577 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7578
7579         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7580         calls with argument -0.5.
7581         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7582
7583         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7584         (libc_cv_z_nodlopen): Likewise.
7585         (libc_cv_z_initfirst): Likewise.
7586         * configure: Regenerated.
7587
7588 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7589
7590         Simplify abilist format to be line-based.
7591         * scripts/abilist.awk: Collect descriptors in the descs variable.
7592         (emit): Write descs variable and sort it
7593         externally, with sort.
7594         * sysdeps/**/*.abilist: Convert to new format.
7595
7596 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7597
7598         [BZ #11460]
7599         * io/Makefile (routines): Add fts64.
7600         (tests): Add tst-fts and tst-fts-lfs.
7601         (CFLAGS-fts64.c): New.
7602         * io/Versions (GLIBC_2.23): New.
7603         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7604         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7605         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7606         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7607         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7608         (FTSENT64): Likewise.
7609         (fts64_children): Likewise.
7610         (fts64_close): Likewise.
7611         (fts64_open): Likewise.
7612         (fts64_read): Likewise.
7613         (fts64_set): Likewise.
7614         * io/fts64.c: New file.
7615         * io/tst-fts.c: New test.
7616         * io/tst-fts-lfs.c: Likewise.
7617         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7618         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7619         fts64_set.
7620         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7621         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7622         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7623         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7624         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7625         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7626         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7627         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7628         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7629         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7630         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7631         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7632         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7634         Likewise.
7635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7636         Likewise.
7637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7639         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7640         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7641         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7642         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7643         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7644         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7645         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7646         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7647         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7648         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7649         * sysdeps/wordsize-64/fts.c: New file.
7650         * sysdeps/wordsize-64/fts64.c: Likewise.
7651         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7652         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7653         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7654         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7655
7656 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7657
7658         * math/libm-test.inc (NON_FINITE): New macro.
7659         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7660         * math/gen-libm-test.pl (show_exceptions): Add argument
7661         $non_finite.
7662         (parse_args): Update call to show_exceptions.
7663         * math/test-math-finite.h: New file.
7664         * math/test-math-no-finite.h: Likewise.
7665         * math/test-double-finite.c: Likewise.
7666         * math/test-float-finite.c: Likewise.
7667         * math/test-ldouble-finite.c: Likewise.
7668         * math/test-double.c: Include "test-math-no-finite.h".
7669         * math/test-float.c: Include "test-math-no-finite.h".
7670         * math/test-ldouble.c: Include "test-math-no-finite.h".
7671         * math/test-math-inline.h (TEST_FINITE): New macro.
7672         * math/test-math-vector.h (TEST_FINITE): Likewise.
7673         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7674         (libm-tests): Add test-float-finite and test-double-finite.
7675         ($(objpfx)test-float-finite.o): New dependency on
7676         $(objpfx)libm-test.stmp.
7677         ($(objpfx)test-double-finite.o): Likewise.
7678         ($(objpfx)test-ldouble-finite.o): Likewise.
7679         (libm-test-no-inline-cflags): New variable.
7680         (libm-test-finite-cflags): Likewise.
7681         (CFLAGS-test-float-finite.c): Likewise.
7682         (CFLAGS-test-double-finite.c): Likewise.
7683         (CFLAGS-test-ldouble-finite.c): Likewise.
7684         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7685         (CFLAGS-test-double.c): Likewise.
7686         (CFLAGS-test-ldouble.c): Likewise.
7687
7688 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7689
7690         * io/fcntl.c (__fcntl): Add ... to prototype.
7691         * misc/ioctl.c (__ioctl): Likewise.
7692         * misc/syscall.c (syscall): Likewise.
7693
7694 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7695
7696         * scripts/list-fixed-bugs.py: New file.
7697
7698         [BZ #19213]
7699         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7700         returned for argument 1.
7701         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7702         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7703         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7704         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7705         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7706         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7707
7708         [BZ #19211]
7709         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7710         __USE_XOPEN], not if [!__USE_ISOC99].
7711         (lgammaf): Likewise.
7712         (lgammal): Likewise.
7713         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7714         (gammaf): Likewise.
7715         (gammal): Likewise.
7716         * math/test-signgam-finite-c11.c: New file.
7717         * math/test-signgam-finite-c99.c: Likewise.
7718         * math/test-signgam-finite.c: Likewise.
7719         * math/Makefile (tests): Add test-signgam-finite,
7720         test-signgam-finite-c99 and test-signgam-finite-c11.
7721         (CFLAGS-test-signgam-finite.c): New variable.
7722         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7723         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7724
7725         [BZ #19212]
7726         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7727         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7728         500].
7729         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7730         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7731         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7732         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7733         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7734         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7735         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7736         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7737         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7738         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7739
7740         [BZ #19209]
7741         * math/bits/math-finite.h (ldexp): Remove declaration.
7742         (ldexpf): Likewise.
7743         (ldexpl): Likewise.
7744
7745         [BZ #19205]
7746         * math/bits/math-finite.h (acosf): Condition declaration on
7747         [__USE_ISOC99].
7748         (acosl): Likewise.
7749         (acoshf): Likewise.
7750         (acoshl): Likewise.
7751         (asinf): Likewise.
7752         (asinl): Likewise.
7753         (atan2f): Likewise.
7754         (atan2l): Likewise.
7755         (atanhf): Likewise.
7756         (atanhl): Likewise.
7757         (coshf): Likewise.
7758         (coshl): Likewise.
7759         (expf): Likewise.
7760         (expl): Likewise.
7761         (fmodf): Likewise.
7762         (fmodl): Likewise.
7763         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7764         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7765         (j0l): Likewise.
7766         (y0f): Likewise.
7767         (y0l): Likewise.
7768         (j1f): Likewise.
7769         (j1l): Likewise.
7770         (y1f): Likewise.
7771         (y1l): Likewise.
7772         (jnf): Likewise.
7773         (jnl): Likewise.
7774         (ynf): Likewise.
7775         (ynl): Likewise.
7776         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7777         (lgammal_r): Likewise.
7778         (__lgamma_r_finite): New declaration.
7779         (__lgammaf_r_finite): Likewise.
7780         (__lgammal_r_finite): Likewise.
7781         (lgamma): Use __lgamma_r_finite.
7782         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7783         __lgammaf_r_finite.
7784         (lgammal): Condition definition on [__USE_ISOC99].  Use
7785         __lgammal_r_finite.
7786         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7787         __lgamma_r_finite.
7788         (gammaf): Condition definition on [__USE_ISOC99].  Use
7789         __lgammaf_r_finite.
7790         (gammal): Condition definition on [__USE_ISOC99].  Use
7791         __lgammal_r_finite.
7792         (logf): Condition declaration on [__USE_ISOC99].
7793         (logl): Likewise.
7794         (log10f): Likewise.
7795         (log10l): Likewise.
7796         (ldexpf): Likewise.
7797         (ldexpl): Likewise.
7798         (powf): Likewise.
7799         (powl): Likewise.
7800         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7801         __USE_ISOC99].
7802         (remainderf): Condition declaration on [__USE_ISOC99].
7803         (remainderl): Likewise.
7804         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7805         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7806         (scalbl): Likewise.
7807         (sinhf): Condition declaration on [__USE_ISOC99].
7808         (sinhl): Likewise.
7809         (sqrtf): Likewise.
7810         (sqrtl): Likewise.
7811
7812 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7813
7814         * sysdeps/arm/atomic-machine.h
7815         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7816         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7817         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7818         Remove conditional code.
7819         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7820         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7821         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7822         Change conditional to [__ASSEMBLER__].
7823         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7824         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7825         [!__ASSEMBLER__].
7826         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7827         code.
7828         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7829         conditional macro definitions.
7830         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7831         (__arch_compare_and_exchange_val_16_acq): Likewise.
7832         (__arch_compare_and_exchange_val_32_acq): Likewise.
7833         (atomic_exchange_and_add): Likewise.
7834         (atomic_add): Likewise.
7835         (atomic_add_negative): Likewise.
7836         (atomic_add_zero): Likewise.
7837         (atomic_bit_set): Likewise.
7838         (atomic_bit_test_set): Likewise.
7839         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7840         code unconditional.
7841         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7842
7843         * math/test-math-errno.h: New file.
7844         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7845         empty.
7846         (TEST_ERRNO): New macro.
7847         (TEST_EXCEPTIONS): Likewise.
7848         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7849         (TEST_EXCEPTIONS): Likewise.
7850         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7851         * math/test-double.c: Include "test-math-errno.h".
7852         * math/test-float.c: Likewise.
7853         * math/test-ldouble.c: Likewise.
7854         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7855         code unconditional.
7856         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7857         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7858         unconditional.
7859         (test_errno): Only run code if TEST_ERRNO.
7860         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7861
7862 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7863
7864         * nptl/tst-once5.cc: Remove attribution.
7865
7866 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7867
7868         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7869         sqrt, tan, tanh, y0, y1 and yn.
7870         * math/auto-libm-test-out: Regenerated.
7871         * math/libm-test.inc (scalb_test_data): Add more tests.
7872         (scalbn_test_data): Likewise.
7873         (scalbln_test_data): Likewise.
7874         (signbit_test_data): Likewise.
7875         (sin_test_data): Likewise.
7876         (sincos_test_data): Likewise.
7877         (sinh_test_data): Likewise.
7878         (sqrt_test_data): Likewise.
7879         (tan_test_data): Likewise.
7880         (tanh_test_data): Likewise.
7881         (tgamma_test_data): Likewise.
7882         (y0_test_data): Likewise.
7883         (y1_test_data): Likewise.
7884         (yn_test_data): Likewise.
7885         (significand_test_data): Likewise.
7886         * sysdeps/i386/fpu/libm-test-ulps: Update.
7887
7888 2015-11-03  David Kastrup  <dak@gnu.org>
7889
7890         [BZ #18604]
7891         * assert/assert.h (assert): Don't macro-expand failed assertion
7892         expression in error message.
7893         * malloc/malloc.c (assert): Likewise.
7894
7895 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7896
7897         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7898         test.
7899         * configure: Regenerated.
7900
7901 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7902
7903         * math/libm-test.inc (modf_test_data): Add more tests.
7904         (nearbyint_test_data): Likewise.
7905         (nextafter_test_data): Likewise.
7906         (nexttoward_test_data): Likewise.
7907         (pow_test_data): Likewise.
7908         (remainder_test_data): Likewise.
7909         (remquo_test_data): Likewise.
7910         (rint_test_data): Likewise.
7911
7912         [BZ #19201]
7913         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7914         Check for zero remainder in case of large exponents and ensure
7915         correct sign of result in that case.
7916         * math/libm-test.inc (remainder_test_data): Add more tests.
7917
7918         [BZ #6799]
7919         * math/s_nextafter.c: Include <errno.h>.
7920         (__nextafter): Set errno on overflow and underflow.
7921         * math/s_nexttowardf.c: Include <errno.h>.
7922         (__nexttowardf): Set errno on overflow and underflow.
7923         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7924         (__nextafterl): Set errno on overflow and underflow.
7925         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7926         (__nexttoward): Set errno on overflow and underflow.
7927         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7928         (__nexttowardf): Set errno on overflow and underflow.
7929         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7930         (__nextafterf): Set errno on overflow and underflow.
7931         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7932         (__nextafterl): Set errno on overflow and underflow.
7933         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7934         (__nexttoward): Set errno on overflow and underflow.
7935         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7936         (__nexttowardf): Set errno on overflow and underflow.
7937         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7938         (__nextafterl): Set errno on overflow and underflow.
7939         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7940         (__nexttoward): Set errno on overflow and underflow.
7941         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7942         (__nexttowardf): Set errno on overflow and underflow.
7943         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7944         (__nexttoward): Set errno on overflow and underflow.
7945         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7946         (__nexttowardf): Set errno on overflow and underflow.
7947         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7948         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7949         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7950         (__nextafterl): Set errno on overflow and underflow.
7951         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7952         setting to be missing on overflow.  Add more tests.
7953         (nexttoward_test_data): Likewise.
7954
7955         * configure.ac (libc_cv_initfini_array): Remove configure test.
7956         * configure: Regenerated.
7957
7958 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7959
7960         [BZ #19189]
7961         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7962         non-finite argument handle arguments with negative sign.
7963
7964         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7965         result from infinite argument.
7966         (j1_test_data): Likewise.
7967         (jn_test_data): Likewise.
7968         (y0_test_data): Likewise.
7969         (y1_test_data): Likewise.
7970         (yn_test_data): Likewise.
7971
7972         [BZ #16171]
7973         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7974         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7975         * math/w_remainderf.c (dremf): Define as weak alias of
7976         __remainderf.
7977         * math/w_remainderl.c (dreml): Define as weak alias of
7978         __remainderl.
7979         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7980         __remainder.
7981         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7982         __remainderf.
7983         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7984         __remainderl.
7985         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7986         weak alias of remainderl.
7987         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7988         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7989         alias of __remainder.
7990         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7991         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7992         strong alias of __remainderl.
7993         (dreml): Use long_double_symbol.
7994         * math/Makefile (libm-calls): Remove w_drem.
7995         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7996         (CFLAGS-nldbl-drem.c): Remove variable.
7997         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7998         * math/w_drem.c: Remove file.
7999         * math/w_dremf.c: Likewise.
8000         * math/w_dreml.c: Likewise.
8001         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
8002         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
8003         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
8004
8005         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
8006         * sysdeps/i386/configure: Regenerated.
8007         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
8008         * sysdeps/x86_64/configure: Regenerated.
8009
8010         * configure.ac (libc_cv_asm_protected_directive): Remove configure
8011         test.
8012         (libc_cv_visibility_attribute): Likewise.
8013         (libc_cv_protected_data): Test unconditionally.
8014         (libc_cv_broken_visibility_attribute): Remove configure test.
8015         (libc_cv_have_sdata_section): Test unconditionally.
8016         * configure: Regenerated.
8017
8018         * include/libc-internal.h (libc_max_align_t): Remove typedef.
8019         * include/scratch_buffer.h: Include <stddef.h> instead of
8020         <libc-internal.h>.
8021         (struct scratch_buffer): Use max_align_t instead of
8022         libc_max_align_t.
8023
8024 2015-10-29  Florian Weimer  <fweimer@redhat.com>
8025
8026         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
8027         instead of extend_alloca.  Change control flow to avoid a goto.
8028         Remove assert which is trivially always true.
8029
8030 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8031
8032         [BZ #16068]
8033         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
8034         (FE_ALL_EXCEPT_X86): New macro.
8035         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8036         FE_ALL_EXCEPT.  Ensure precision control is included in
8037         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8038         handle "denormal operand exception" and clear FZ and DAZ bits.
8039         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
8040         (FE_ALL_EXCEPT_X86): New macro.
8041         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8042         FE_ALL_EXCEPT.  Ensure precision control is included in
8043         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8044         handle "denormal operand exception" and clear FZ and DAZ bits.
8045         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
8046         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
8047         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8048         test-fenv-x87 and test-fenv-sse-2.
8049         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
8050
8051         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
8052         * math/test-double.h (BUILD_COMPLEX): New macro.
8053         * math/test-float.h (BUILD_COMPLEX): Likewise.
8054         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
8055
8056         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
8057         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
8058         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
8059         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
8060         instead of DBL_DENORM_MIN in comment.
8061         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
8062         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8063         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
8064         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
8065         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
8066         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8067
8068 2015-10-28  Florian Weimer  <fweimer@redhat.com>
8069
8070         [BZ# 19048]
8071         * malloc/malloc.c (struct malloc_state): Update comment.  Add
8072         attached_threads member.
8073         (main_arena): Initialize attached_threads.
8074         * malloc/arena.c (list_lock): Update comment.
8075         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
8076         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
8077         (deattach_arena): New function.
8078         (_int_new_arena): Initialize arena reference count and deattach
8079         replaced arena.
8080         (get_free_list, reused_arena): Update reference count and deattach
8081         replaced arena.
8082         (arena_thread_freeres): Update arena reference count and only put
8083         unreferenced arenas on the free list.
8084
8085 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8086
8087         [BZ #19181]
8088         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
8089         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
8090         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
8091         * math/test-fenv-clear-main.c: New file.
8092         * math/test-fenv-clear.c: Likewise.
8093         * math/Makefile (tests): Add test-fenv-clear.
8094         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
8095         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8096         test-fenv-clear-sse.
8097         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
8098
8099         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
8100         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
8101         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
8102
8103 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8104
8105         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
8106         static libc.
8107
8108 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8109
8110         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
8111         test.
8112         * sysdeps/i386/configure: Regenerated.
8113         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
8114         test.
8115         * sysdeps/x86_64/configure: Regenerated.
8116         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
8117         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8118         memset-avx2 unconditionally instead of conditionally on
8119         [$(config-cflags-avx2) = yes].
8120         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8121         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
8122         unconditional.
8123         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
8124         * sysdeps/x86_64/multiarch/memset_chk.S
8125         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
8126         to [IS_IN (libc) && SHARED].
8127
8128 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8129
8130         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
8131         configure test.
8132         * sysdeps/arm/configure: Regenerated.
8133         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
8134         Define variable if not already defined.
8135
8136         [BZ #17404]
8137         * sysdeps/mips/atomic-machine.h
8138         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
8139         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
8140         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
8141
8142         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
8143         unconditional.
8144         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
8145         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8146         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
8147         unconditional.
8148         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8149         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
8150         unconditional.
8151         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8152         * stdlib/setenv.c
8153         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
8154         code unconditional.
8155         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
8156         Remove conditional code.
8157         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8158         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
8159         unconditional.
8160         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8161         code.
8162         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8163         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
8164         unconditional.
8165         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8166         code.
8167         * sysdeps/ieee754/ldbl-128/k_tanl.c
8168         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8169         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8170         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
8171         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8172         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8173         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
8174         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
8175         unconditional.
8176         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8177         code.
8178         * sysdeps/ieee754/ldbl-96/k_tanl.c
8179         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8180         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8181
8182         * nptl/tst-initializers1-c11.c: New file.
8183         * nptl/tst-initializers1-gnu11.c: Likewise.
8184         * nptl/Makefile (tests): Add these new tests.
8185         (CFLAGS-tst-initializers1-c11.c): New variable.
8186         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8187
8188         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
8189         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
8190         instead of -std=gnu99.
8191         * configure.ac (systemtap): Test with -std=gnu11 instead of
8192         -std=gnu99.
8193         * configure: Regenerated.
8194         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
8195         in compilation command in comment.
8196
8197         * sysdeps/nptl/configure.ac: Remove file.
8198         * sysdeps/nptl/configure: Remove generated file.
8199         * configure.ac (libc_cv_forced_unwind): Do not substitute.
8200         * configure: Regenerated.
8201         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
8202         * config.make.in (have-forced-unwind): Remove variable.
8203         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8204         unconditional.
8205         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
8206         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
8207         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
8208         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
8209         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8210         unconditional.
8211
8212 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8213
8214         [BZ #19174]
8215         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
8216         .skip_lock_out_of_tbegin_retries.
8217         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
8218         (__lll_lock_elision): Likewise, and respect a value of
8219         try_tbegin <= 0.
8220
8221 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8222
8223         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
8224         statement.
8225
8226 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8227
8228         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
8229         variable.
8230         (test-xfail-ISO11/stdalign.h/conform): Likewise.
8231         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
8232
8233         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
8234         of -std=c1x -D_ISOC11_SOURCE.
8235
8236         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
8237         * configure: Regenerated.
8238         * manual/install.texi (Tools for Compilation): Document
8239         requirement for GCC 4.7 or later.
8240         * INSTALL: Regenerated.
8241
8242 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
8243
8244         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
8245         on CNT to a conditional jump to 'puntdata'.
8246
8247 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8248
8249         * configure.ac (libc_cv_gcc___thread): Remove configure test.
8250         (libc_cv_gcc_tls_model_attr): Likewise.
8251         * configure: Regenerated.
8252
8253         * configure.ac (libc_cv_need_minus_P): Remove configure test.
8254         * configure: Regenerated.
8255         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
8256
8257 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
8258
8259         * configure.ac (old_glibc_headers): Remove configure test.
8260         * configure: Regenerated.
8261         * config.make.in (old-glibc-headers): Remove variable.
8262         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
8263         (install): Remove dependency on remove-old-headers.
8264         (headers2_0): Remove variable.
8265         (remove-old-headers): Remove rule.
8266
8267         * configure.ac (libc_cv_dot_text): Remove configure test.
8268         (libc_cv_asm_set_directive): Use .text instead of
8269         ${libc_cv_dot_text} in configure test.
8270         * configure: Regenerated.
8271
8272 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8273
8274         [BZ #19168]
8275         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8276
8277 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8278
8279         * configure.ac (CXX): Clear the variable if the C++ toolchain does
8280         not support static linking.
8281         * configure: Regenerate.
8282
8283 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
8284
8285         * math/libm-test.inc (check_float_internal): Do not special-case
8286         errors up to 0.5 ulp.
8287
8288         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8289         log2.
8290         * math/auto-libm-test-out: Regenerated.
8291         * math/libm-test.inc (MAX_EXP): New macro.
8292         (ilogb_test_data): Add more tests.
8293         (isfinite_test_data): Likewise.
8294         (isgreater_test_data): Likewise.
8295         (isgreaterequal_test_data): Likewise.
8296         (isinf_test_data): Likewise.
8297         (isless_test_data): Likewise.
8298         (islessequal_test_data): Likewise.
8299         (islessgreater_test_data): Likewise.
8300         (isnan_test_data): Likewise.
8301         (isnormal_test_data): Likewise.
8302         (issignaling_test_data): Likewise.
8303         (isunordered_test_data): Likewise.
8304         (j0_test_data): Likewise.
8305         (j1_test_data): Likewise.
8306         (jn_test_data): Likewise.
8307         (lgamma_test_data): Likewise.
8308         (log_test_data): Likewise.
8309         (log10_test_data): Likewise.
8310         (log1p_test_data): Likewise.
8311         (log2_test_data): Likewise.
8312         (logb_test_data): Likewise.
8313         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8314
8315         [BZ #18611]
8316         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
8317         avoid excess range and precision on underflow.
8318         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8319         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
8320         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8321         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
8322         underflow.
8323         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8324         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8325         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8326         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8327         * math/auto-libm-test-in: Do not allow missing errno setting for
8328         tests of j1 and jn.
8329         * math/auto-libm-test-out: Regenerated.
8330
8331 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
8332
8333         [BZ #15491]
8334         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
8335         floating-point environment instead of clearing all exceptions.
8336         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
8337         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
8338         merging in "invalid" exceptions from frndint.
8339         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
8340         * math/test-nearbyint-except.c: New file.
8341         * math/Makefile (tests): Add test-nearbyint-except.
8342
8343 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
8344
8345         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
8346
8347         * sysdeps/tile/libm-test-ulps: Regenerated.
8348
8349 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8350
8351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
8352         (__NR_sync_file_range2): Assume it is always defined.
8353         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
8354         (__NR_sync_file_range): Assume it is always defined.
8355
8356 2015-10-22  Andreas Schwab  <schwab@suse.de>
8357
8358         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
8359         INTERNAL_SYSCALL_ERRNO.
8360         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8361         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
8362         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8363         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8364         Likewise.
8365         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8366
8367 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8368
8369         * io/tst-fcntl.c (fd): New static variable.
8370         (do_prepare): Open temporary file here....
8371         (do_test): ...not here.
8372
8373         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8374
8375 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8376
8377         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8378         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8379         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8380         Moved before "#ifdef __ASSEMBLER__".
8381
8382 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8383
8384         [BZ #19156]
8385         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8386         arguments very close to 0.
8387
8388 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8389
8390         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8391         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8392
8393 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8394
8395         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8396         New.  Defined for GCC 5 and above when not compiling for
8397         profiling.
8398         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8399
8400         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8401         Renamed to ...
8402         (CFLAGS-epoll_pwait.o): This.
8403         (CFLAGS-mmap.c): Renamed to ...
8404         (CFLAGS-mmap.o): This.
8405         (CFLAGS-mmap64.c): Renamed to ...
8406         (CFLAGS-mmap64.o): This.
8407         (CFLAGS-epoll_pwait.os): New.
8408         (CFLAGS-mmap.os): Likewise.
8409         (CFLAGS-mmap64.os): Likewise.
8410         (CFLAGS-semtimedop.os): Likewise.
8411         (CFLAGS-semtimedop.c): Renamed to ...
8412         (CFLAGS-semtimedop.o): This.
8413
8414 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8415
8416         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8417         warning message.
8418
8419 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8420
8421         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8422         * Makefile ($(objpfx)c++-types-check.out): Filter out
8423         $(+gccwarn-c) instead of -Wstrict-prototypes.
8424
8425         * io/fts.c (fts_open): Convert to prototype-style function
8426         definition.
8427         * malloc/mcheck.c (mcheck): Likewise.
8428         (mcheck_pedantic): Likewise.
8429         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8430         internal_function.
8431         (re_search_internal): Likewise.
8432         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8433         prototype-style function definition.
8434         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8435         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8436         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8437         (xdr_utmpptr): Likewise.
8438         (xdr_utmparr): Likewise.
8439         (xdr_utmpidle): Likewise.
8440         (xdr_utmpidleptr): Likewise.
8441         (xdr_utmpidlearr): Likewise.
8442
8443         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8444         log, log10 and log2.
8445         * math/auto-libm-test-out: Regenerated.
8446         * math/libm-test.inc (fmod_test_data): Add more tests.
8447         (fpclassify_test_data): Likewise.
8448         (frexp_test_data): Likewise.
8449         (hypot_test_data): Likewise.
8450         (ilogb_test_data): Likewise.
8451
8452 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8453
8454         * debug/fortify_fail.c (__fortify_fail): Convert to
8455         prototype-style function definition.  Use internal_function.
8456         * libio/genops.c (save_for_backup): Convert to prototype-style
8457         function definition.
8458         * libio/wgenops.c (save_for_wbackup): Likewise.
8459         * login/grantpt.c (grantpt): Likewise.
8460         * login/ptsname.c (ptsname): Likewise.
8461         (__ptsname_r): Likewise.
8462         * login/unlockpt.c (unlockpt): Likewise.
8463         * mach/msgserver.c (__mach_msg_server): Likewise.
8464         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8465         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8466         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8467         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8468         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8469         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8470         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8471         Likewise.
8472         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8473         internal_function.
8474         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8475         prototype-style function definition.
8476         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8477         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8478         (__pthread_create_2_0): Likewise.
8479         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8480         * nptl/register-atfork.c (__register_atfork): Likewise.
8481         * posix/glob.c (glob): Likewise.
8482         * posix/regcomp.c (re_comp): Likewise.
8483         * posix/regexec.c (re_exec): Likewise.
8484         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8485         [!__STDC__]: Remove conditional code.
8486         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8487         [!__STDC__]: Remove conditional code.
8488         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8489         [!__STDC__]: Remove conditional code.
8490         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8491         [!__STDC__]: Remove conditional code.
8492         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8493         [!__STDC__]: Remove conditional code.
8494         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8495         [!__STDC__]: Remove conditional code.
8496         * stdlib/mul.c [__STDC__]: Make code unconditional.
8497         [!__STDC__]: Remove conditional code.
8498         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8499         [!__STDC__]: Remove conditional code.
8500         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8501         [!__STDC__]: Remove conditional code.
8502         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8503         function definition.
8504         (STRTOF): Likewise.
8505         * stdlib/strtod_l.c (__STRTOF): Likewise.
8506         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8507         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8508         (__strtol_l): Likewise.
8509         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8510         [!__STDC__]: Remove conditional code.
8511         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8512         definition.
8513         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8514         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8515         type.
8516         (__strcasecmp): Convert to prototype-style function definition.
8517         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8518         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8519         type.
8520         (__strncasecmp): Convert to prototype-style function definition.
8521         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8522         * sunrpc/xdr.c (xdr_union): Likewise.
8523         * sunrpc/xdr_array.c (xdr_array): Likewise.
8524         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8525         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8526         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8527         Likewise.
8528         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8529         Likewise.
8530         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8531         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8532         Likewise.
8533         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8534         (LOCALE_PARAM_PROTO): Likewise.
8535         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8536         argument type.
8537         (ut_argument_spec): Remove macro.
8538         (ut_argument_spec_iso): Rename to ut_argument_spec.
8539         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8540         prototype-style function definition.
8541         (memcpy_uppcase): Likewise.
8542         (__strftime_internal): Likewise.
8543         (my_strftime): Likewise.
8544         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8545         (LOCALE_PARAM_DECL): Likewise.
8546         [_LIBC] (LOCALE_PARAM): Include argument type.
8547         (__strptime_internal): Convert to prototype-style function
8548         definition.
8549         (strptime): Likewise.
8550         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8551         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8552         type.
8553         (__wcscasecmp): Convert to prototype-style function definition.
8554         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8555         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8556         type.
8557         (__wcsncasecmp): Convert to prototype-style function definition.
8558
8559         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8560         function definition.
8561         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8562         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8563         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8564         * elf/dl-minimal.c (_itoa): Likewise.
8565         * hurd/hurdmalloc.c (malloc): Likewise.
8566         (free): Likewise.
8567         (realloc): Likewise.
8568         * inet/inet6_option.c (inet6_option_space): Likewise.
8569         (inet6_option_init): Likewise.
8570         (inet6_option_append): Likewise.
8571         (inet6_option_alloc): Likewise.
8572         (inet6_option_next): Likewise.
8573         (inet6_option_find): Likewise.
8574         * io/ftw.c (FTW_NAME): Likewise.
8575         (NFTW_NAME): Likewise.
8576         (NFTW_NEW_NAME): Likewise.
8577         (NFTW_OLD_NAME): Likewise.
8578         * libio/iofwide.c (_IO_fwide): Likewise.
8579         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8580         (_IO_str_init_static): Likewise.
8581         (_IO_str_init_readonly): Likewise.
8582         (_IO_str_overflow): Likewise.
8583         (_IO_str_underflow): Likewise.
8584         (_IO_str_count): Likewise.
8585         (_IO_str_seekoff): Likewise.
8586         (_IO_str_pbackfail): Likewise.
8587         (_IO_str_finish): Likewise.
8588         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8589         (_IO_wstr_overflow): Likewise.
8590         (_IO_wstr_underflow): Likewise.
8591         (_IO_wstr_count): Likewise.
8592         (_IO_wstr_seekoff): Likewise.
8593         (_IO_wstr_pbackfail): Likewise.
8594         (_IO_wstr_finish): Likewise.
8595         * locale/programs/localedef.c (normalize_codeset): Likewise.
8596         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8597         (add_locales_to_archive): Likewise.
8598         (delete_locales_from_archive): Likewise.
8599         * malloc/malloc.c (__libc_mallinfo): Likewise.
8600         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8601         * misc/tsearch.c (__tfind): Likewise.
8602         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8603         * nptl/pthread_attr_getdetachstate.c
8604         (__pthread_attr_getdetachstate): Likewise.
8605         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8606         Likewise.
8607         * nptl/pthread_attr_getinheritsched.c
8608         (__pthread_attr_getinheritsched): Likewise.
8609         * nptl/pthread_attr_getschedparam.c
8610         (__pthread_attr_getschedparam): Likewise.
8611         * nptl/pthread_attr_getschedpolicy.c
8612         (__pthread_attr_getschedpolicy): Likewise.
8613         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8614         Likewise.
8615         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8616         Likewise.
8617         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8618         Likewise.
8619         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8620         Likewise.
8621         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8622         (__pthread_attr_init_2_0): Likewise.
8623         * nptl/pthread_attr_setdetachstate.c
8624         (__pthread_attr_setdetachstate): Likewise.
8625         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8626         Likewise.
8627         * nptl/pthread_attr_setinheritsched.c
8628         (__pthread_attr_setinheritsched): Likewise.
8629         * nptl/pthread_attr_setschedparam.c
8630         (__pthread_attr_setschedparam): Likewise.
8631         * nptl/pthread_attr_setschedpolicy.c
8632         (__pthread_attr_setschedpolicy): Likewise.
8633         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8634         Likewise.
8635         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8636         Likewise.
8637         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8638         Likewise.
8639         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8640         Likewise.
8641         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8642         Likewise.
8643         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8644         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8645         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8646         use internal_function.
8647         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8648         prototype-style function definition.
8649         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8650         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8651         internal_function.
8652         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8653         Convert to prototype-style function definition.
8654         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8655         Likewise.
8656         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8657         Likewise.
8658         (__pthread_mutex_unlock): Likewise.
8659         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8660         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8661         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8662         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8663         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8664         * nss/makedb.c (process_input): Likewise.
8665         * posix/fnmatch.c (__strchrnul): Likewise.
8666         (__wcschrnul): Likewise.
8667         (fnmatch): Likewise.
8668         * posix/fnmatch_loop.c (FCT): Likewise.
8669         * posix/glob.c (globfree): Likewise.
8670         (__glob_pattern_type): Likewise.
8671         (__glob_pattern_p): Likewise.
8672         * posix/regcomp.c (re_compile_pattern): Likewise.
8673         (re_set_syntax): Likewise.
8674         (re_compile_fastmap): Likewise.
8675         (regcomp): Likewise.
8676         (regerror): Likewise.
8677         (regfree): Likewise.
8678         * posix/regexec.c (regexec): Likewise.
8679         (re_match): Likewise.
8680         (re_search): Likewise.
8681         (re_match_2): Likewise.
8682         (re_search_2): Likewise.
8683         (re_search_stub): Likewise.  Use internal_function
8684         (re_copy_regs): Likewise.
8685         (re_set_registers): Convert to prototype-style function
8686         definition.
8687         (prune_impossible_nodes): Likewise.  Use internal_function.
8688         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8689         prototype-style function definition.
8690         (inet_net_pton_ipv4): Likewise.
8691         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8692         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8693         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8694         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8695         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8696         Make variadic.
8697         * time/strptime_l.c (localtime_r): Convert to prototype-style
8698         function definition.
8699         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8700         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8701         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8702         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8703
8704         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8705         definition.
8706         (_ufc_doit_r): Likewise.
8707         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8708         (_ufc_output_conversion_r): Likewise.
8709         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8710         * inet/rcmd.c (rcmd_af): Likewise.
8711         (rcmd): Likewise.
8712         (ruserok_af): Likewise.
8713         (ruserok): Likewise.
8714         (ruserok2_sa): Likewise.
8715         (ruserok_sa): Likewise.
8716         (iruserok_af): Likewise.
8717         (iruserok): Likewise.
8718         (__ivaliduser): Likewise.
8719         (__validuser2_sa): Likewise.
8720         * inet/rexec.c (rexec_af): Likewise.
8721         (rexec): Likewise.
8722         * inet/ruserpass.c (ruserpass): Likewise.
8723         * locale/programs/xmalloc.c (xcalloc): Likewise.
8724         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8725         * math/w_drem.c (__drem): Likewise.
8726         * math/w_dremf.c (__dremf): Likewise.
8727         * math/w_dreml.c (__dreml): Likewise.
8728         * misc/daemon.c (daemon): Likewise.
8729         * resolv/res_debug.c (p_fqnname): Likewise.
8730         * stdlib/div.c (div): Likewise.
8731         * string/memcmp.c (memcmp_bytes): Likewise.
8732         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8733         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8734
8735         * crypt/cert.c (main): Convert to prototype-style function
8736         definition.
8737         * io/pipe.c (__pipe): Likewise.
8738         * io/pipe2.c (__pipe2): Likewise.
8739         * misc/futimesat.c (futimesat): Likewise.
8740         * misc/utimes.c (__utimes): Likewise.
8741         * posix/execve.c (__execve): Likewise.
8742         * posix/execvp.c (execvp): Likewise.
8743         * posix/execvpe.c (__execvpe): Likewise.
8744         * posix/fexecve.c (fexecve): Likewise.
8745         * socket/socketpair.c (socketpair): Likewise.
8746         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8747         * stdlib/erand48.c (erand48): Likewise.
8748         * stdlib/erand48_r.c (__erand48_r): Likewise.
8749         * stdlib/jrand48.c (jrand48): Likewise.
8750         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8751         * stdlib/lcong48.c (lcong48): Likewise.
8752         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8753         * stdlib/nrand48.c (nrand48): Likewise.
8754         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8755         * stdlib/seed48.c (seed48): Likewise.
8756         * stdlib/seed48_r.c (__seed48_r): Likewise.
8757         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8758         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8759         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8760
8761 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8762
8763         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8764         * configure: Regenerated.
8765         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8766         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8767         unconditional.
8768         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8769         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8770         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8771         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8772         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8773         unconditional.
8774         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8775
8776         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8777         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8778
8779         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8780         function definition.
8781         * crypt/crypt_util.c (__encrypt_r): Likewise.
8782         * libio/genops.c (_IO_no_init): Likewise.
8783         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8784         (_IO_old_fopencookie): Likewise.
8785         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8786         * libio/iogetline.c (_IO_getline): Likewise.
8787         (_IO_getline_info): Likewise.
8788         * libio/iogetwline.c (_IO_getwline): Likewise.
8789         (_IO_getwline_info): Likewise.
8790         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8791         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8792         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8793         (find_entry): Likewise.
8794         (iterate_table): Likewise.
8795         (lookup): Likewise.
8796         * login/forkpty.c (forkpty): Likewise.
8797         * misc/hsearch_r.c (__hsearch_r): Likewise.
8798         * misc/select.c (__select): Likewise.
8799         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8800         Likewise.
8801         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8802         Likewise.
8803         * nptl/old_pthread_cond_timedwait.c
8804         (__pthread_cond_timedwait_2_0): Likewise.
8805         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8806         * nptl/pthread_barrierattr_getpshared.c
8807         (pthread_barrierattr_getpshared): Likewise.
8808         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8809         Likewise.
8810         * nptl/pthread_mutex_setprioceiling.c
8811         (pthread_mutex_setprioceiling): Likewise.
8812         * nptl/pthread_mutexattr_getprioceiling.c
8813         (pthread_mutexattr_getprioceiling): Likewise.
8814         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8815         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8816         Likewise.
8817         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8818         Likewise.
8819         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8820         Likewise.
8821         * socket/recvfrom.c (__recvfrom): Likewise.
8822         * socket/sendto.c (__sendto): Likewise.
8823         * socket/setsockopt.c (__setsockopt): Likewise.
8824         * stdio-common/_itoa.c (_itoa): Likewise.
8825         * stdio-common/_itowa.c (_itowa): Likewise.
8826         * stdio-common/reg-printf.c (__register_printf_specifier):
8827         Likewise.
8828         (__register_printf_function): Likewise.
8829         * stdio-common/tempname.c (__path_search): Likewise.
8830         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8831         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8832         * stdlib/random_r.c (__initstate_r): Likewise.
8833         * stdlib/setenv.c (__add_to_environ): Likewise.
8834         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8835         * streams/getpmsg.c (getpmsg): Likewise.
8836         * streams/putmsg.c (putmsg): Likewise.
8837         * streams/putpmsg.c (putpmsg): Likewise.
8838         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8839         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8840         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8841         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8842         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8843         * sunrpc/svc_udp.c (cache_get): Likewise.
8844         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8845         * sysdeps/mach/hurd/getcwd.c
8846         (__canonicalize_directory_name_internal): Likewise.
8847         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8848         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8849         * sysdeps/mach/hurd/select.c (__select): Likewise.
8850         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8851         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8852         * sysdeps/sparc/nptl/pthread_barrier_init.c
8853         (__pthread_barrier_init): Likewise.
8854         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8855         (__pthread_cond_timedwait): Likewise.
8856         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8857         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8858         Likewise.
8859         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8860         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8861         Likewise.
8862         * sysvipc/semtimedop.c (semtimedop): Likewise.
8863         * time/setitimer.c (__setitimer): Likewise.
8864         * time/strftime_l.c (emacs_strftime): Likewise.
8865
8866 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8867
8868         * config.make.in (have-ssp): Delete.
8869         (stack-protector): New variable.
8870         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8871         cache test for -fstack-protector-strong.  Export stack_protector to
8872         the best ssp flag.
8873         * configure: Regenerated.
8874         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8875         * nscd/Makefile (CFLAGS-nscd): Likewise.
8876         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8877
8878 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8879
8880         [BZ #19122]
8881         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8882         attribute_hidden.
8883
8884 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8885
8886         [BZ #18743]
8887         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8888         code to...
8889         (ELIDE_LOCK): ...here.
8890         (__get_new_count): New function with part of the code from
8891         __elide_lock that updates the value of adapt_count after a
8892         transaction abort.
8893         (__elided_trylock): Moved this code to...
8894         (ELIDE_TRYLOCK): ...here.
8895
8896 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8897
8898         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8899         * configure: Regenerate.
8900         * INSTALL: Regenerate.
8901         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8902         and tweak grammar.
8903
8904 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8905
8906         * login/programs/pt_chown.c: Include signal.h
8907         (main): Clear any signal mask from the parent process.
8908
8909 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8910
8911         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8912         * configure: Regenerated.
8913         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8914         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8915         $(gnu89-inline-CFLAGS).
8916
8917         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8918         test.
8919         (libc_cv_asm_weakext_directive): Likewise.
8920         * configure: Regenerated.
8921         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8922         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8923         * include/libc-symbols.h
8924         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8925         #error.
8926         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8927         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8928
8929         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8930         prototype-style function definition.
8931         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8932         * sysdeps/i386/ffs.c (__ffs): Likewise.
8933         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8934         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8935         Likewise.
8936         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8937         Likewise.
8938         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8939         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8940         Likewise.
8941         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8942         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8943         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8944         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8945         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8946         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8947         * sysdeps/mach/hurd/access.c (__access): Likewise.
8948         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8949         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8950         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8951         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8952         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8953         (cthread_getspecific): Likewise.
8954         (cthread_setspecific): Likewise.
8955         (__libc_getspecific): Likewise.
8956         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8957         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8958         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8959         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8960         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8961         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8962         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8963         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8964         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8965         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8966         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8967         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8968         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8969         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8970         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8971         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8972         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8973         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8974         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8975         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8976         * sysdeps/mach/hurd/link.c (__link): Likewise.
8977         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8978         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8979         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8980         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8981         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8982         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8983         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8984         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8985         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8986         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8987         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8988         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8989         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8990         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8991         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8992         * sysdeps/mach/hurd/send.c (__send): Likewise.
8993         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8994         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8995         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8996         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8997         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8998         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8999         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
9000         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
9001         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
9002         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
9003         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
9004         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
9005         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
9006         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
9007         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
9008         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
9009         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
9010         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
9011         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
9012         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
9013         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
9014         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
9015         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
9016         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
9017         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
9018         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
9019         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
9020         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
9021         * sysdeps/posix/alarm.c (alarm): Likewise.
9022         * sysdeps/posix/cuserid.c (cuserid): Likewise.
9023         * sysdeps/posix/dirfd.c (dirfd): Likewise.
9024         * sysdeps/posix/dup.c (__dup): Likewise.
9025         * sysdeps/posix/dup2.c (__dup2): Likewise.
9026         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
9027         (main): Likewise.
9028         * sysdeps/posix/flock.c (__flock): Likewise.
9029         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
9030         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9031         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
9032         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
9033         * sysdeps/posix/isatty.c (__isatty): Likewise.
9034         * sysdeps/posix/killpg.c (killpg): Likewise.
9035         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
9036         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
9037         * sysdeps/posix/raise.c (raise): Likewise.
9038         * sysdeps/posix/remove.c (remove): Likewise.
9039         * sysdeps/posix/rename.c (rename): Likewise.
9040         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
9041         * sysdeps/posix/seekdir.c (seekdir): Likewise.
9042         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
9043         * sysdeps/posix/sigignore.c (sigignore): Likewise.
9044         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
9045         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
9046         * sysdeps/posix/sigset.c (sigset): Likewise.
9047         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
9048         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
9049         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
9050         * sysdeps/posix/time.c (time): Likewise.
9051         * sysdeps/posix/ttyname.c (getttyname): Likewise.
9052         (ttyname): Likewise.
9053         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
9054         * sysdeps/posix/utime.c (utime): Likewise.
9055         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
9056         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
9057         Likewise.
9058         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
9059         (pthread_spin_trylock): Likewise.
9060         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
9061         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
9062         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
9063         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
9064         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
9065         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
9066         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
9067         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
9068         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
9069         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
9070         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
9071         * sysdeps/s390/ffs.c (__ffs): Likewise.
9072         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
9073         Likewise.
9074         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
9075         Likewise.
9076         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
9077         Likewise.
9078         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
9079         (pthread_barrier_destroy): Likewise.
9080         * sysdeps/sparc/nptl/pthread_barrier_wait.c
9081         (__pthread_barrier_wait): Likewise.
9082         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
9083         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
9084         (__pthread_barrier_wait): Likewise.
9085         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
9086         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
9087         (memcmp_not_common_alignment): Likewise.
9088         (MEMCMP): Likewise.
9089         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
9090         (_wordcopy_fwd_dest_aligned): Likewise.
9091         (_wordcopy_bwd_aligned): Likewise.
9092         (_wordcopy_bwd_dest_aligned): Likewise.
9093         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
9094         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
9095         * sysdeps/unix/bsd/stty.c (stty): Likewise.
9096         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
9097         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
9098         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
9099         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
9100         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
9101         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
9102         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
9103         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
9104         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9105         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
9106         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
9107         * sysdeps/unix/stime.c (stime): Likewise.
9108         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
9109         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
9110         Likewise.  Use internal_function.
9111         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
9112         Convert to prototype-style function definition.
9113         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9114         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9115         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
9116         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9117         Likewise.  Use internal_function.
9118         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
9119         prototype-style function definition
9120         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9121         Likewise.
9122         (__getlogin_r): Likewise.
9123         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
9124         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
9125         (__pthread_cond_broadcast): Likewise.
9126         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
9127         (__pthread_cond_destroy): Likewise.
9128         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
9129         (__pthread_cond_init): Likewise.
9130         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
9131         (__pthread_cond_signal): Likewise.
9132         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
9133         (__pthread_cond_wait): Likewise.
9134         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
9135         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9136         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
9137         Likewise.
9138         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
9139         Likewise.
9140         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
9141         Likewise.
9142         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
9143         Likewise.
9144         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
9145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
9146         (__ftruncate64): Likewise.
9147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
9148         (truncate64): Likewise.
9149         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
9150         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
9151         (pthread_getcpuclockid): Likewise.
9152         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9153         Likewise.
9154         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9155         Likewise.
9156         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
9157         Likewise.
9158         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
9159         Likewise.
9160         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
9161         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
9162         (__libc_sigaction): Likewise.
9163         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
9164         Likewise.
9165         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9166         (__sigprocmask): Likewise.
9167         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
9168         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
9169         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
9170         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9171         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9172         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
9173         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9174         Likewise.
9175         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
9176         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
9177         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9178         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
9179         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
9180         Likewise.
9181         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9182         (__sigprocmask): Likewise.
9183         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
9184         (cfgetispeed): Likewise.
9185         (cfsetospeed): Likewise.
9186         (cfsetispeed): Likewise.
9187         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
9188         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
9189         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9190         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9191         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
9192         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
9193         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
9194         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
9195         Likewise.
9196         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
9197         Likewise.
9198         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
9199         Likewise.
9200         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9201         Likewise.
9202         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
9203
9204 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9205
9206         sunrpc: Rewrite with explicit TLS access using __thread.
9207         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
9208         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
9209         directly.
9210         (__rpc_thread_variables): Access thread_rpc_vars directly.
9211         Eliminate redundant assignment of the tvp variable.
9212
9213 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9214
9215         malloc: Rewrite with explicit TLS access using __thread.
9216         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
9217         (tsd_setspecific, tsd_getspecific): Remove.
9218         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
9219         (tsd_setspecific, tsd_getspecific): Likewise.
9220         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
9221         (tsd_setspecific, tsd_getspecific): Likewise.
9222         * malloc/arena.c (thread_arena): New TLS variable.
9223         (arena_key): Remove variable.
9224         (arena_get): Use thread_arena.
9225         (arena_lookup): Remove macro.
9226         (malloc_atfork, free_atfork, ptmalloc_lock_all)
9227         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
9228         (_int_new_arena, get_free_list, reused_arena)
9229         (arena_thread_freeres): Use thread_arena.
9230         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
9231         tsd_getspecific, tsd_setspecific from safety annotations.
9232         (Allocating Cleared Space): Remove arena_lookup from safety
9233         annotations.
9234
9235 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9236
9237         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
9238         struct scratch_buffer instead of extend_alloca.
9239
9240 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9241
9242         * sysdeps/unix/sysv/linux/kernel-features.h
9243         (__ASSUME_SOCK_CLOEXEC): Remove.
9244         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
9245         (__have_paccept): Remove unused macro.
9246         * include/unistd.h (__have_sock_cloexec): Remove declaration.
9247         * misc/syslog.c (openlog_internal): Remove fallback code for
9248         !__ASSUME_SOCK_CLOEXEC.
9249         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
9250         missing SOCK_CLOEXEC.
9251         * nscd/connections.c (have_sock_cloexec): Remove definition.
9252         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9253         * nscd/nscd_helper.c (open_socket): Remove fallback code for
9254         !__ASSUME_SOCK_CLOEXEC.
9255         * resolv/res_send.c (__have_o_nonblock): Remove definition.
9256         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9257         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
9258         definition.
9259         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
9260         code for !__ASSUME_SOCK_CLOEXEC.
9261
9262 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9263
9264         [BZ #18982]
9265         * manual/stdio.texi (Variable Arguments Output): Add portability
9266         note, explaining that vfprintf clobbers the va_list pointer.
9267
9268 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9269
9270         * math/libm-test.inc (fabs_test_data): Add more tests.
9271         (fdim_test_data): Likewise.
9272         (fma_test_data): Likewise.
9273         (fmax_test_data): Likewise.
9274         (fmin_test_data): Likewise.
9275         (fmod_test_data): Likewise.
9276
9277 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
9278
9279         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
9280         data.
9281
9282 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9283
9284         * math/libm-test.inc (ceil_test_data): Add more tests and more
9285         expectations for "inexact".
9286         (floor_test_data): Add more tests.
9287         (round_test_data): Likewise.
9288         (trunc_test_data): Likewise.
9289
9290         * crypt/cert.c (good_bye): Convert to prototype-style function
9291         definition.
9292         (get8): Likewise.
9293         (put8): Likewise.
9294         * crypt/crypt-entry.c (crypt): Likewise.
9295         (__fcrypt): Likewise.
9296         * crypt/crypt_util.c (_ufc_prbits): Likewise.
9297         (_ufc_set_bits): Likewise.
9298         (_ufc_clearmem): Likewise.
9299         (__init_des_r): Likewise.
9300         (shuffle_sb): Likewise.
9301         (shuffle_sb): Likewise.
9302         (_ufc_setup_salt_r): Likewise.
9303         (_ufc_mk_keytab_r): Likewise.
9304         (_ufc_dofinalperm_r): Likewise.
9305         (encrypt): Likewise.
9306         (__setkey_r): Likewise.
9307         (setkey): Likewise.
9308         * crypt/md5.c (md5_init_ctx): Likewise.
9309         (md5_read_ctx): Likewise.
9310         (md5_finish_ctx): Likewise.
9311         (md5_stream): Likewise.
9312         (md5_buffer): Likewise.
9313         (md5_process_bytes): Likewise.
9314         * crypt/sha256.c (__sha256_init_ctx): Likewise.
9315         (__sha256_finish_ctx): Likewise.
9316         (__sha256_process_bytes): Likewise.
9317         * crypt/sha512.c (__sha512_init_ctx): Likewise.
9318         (__sha512_finish_ctx): Likewise.
9319         (__sha512_process_bytes): Likewise.
9320         * ctype/isctype.c (__isctype): Likewise.
9321         * debug/backtrace.c (__backtrace): Likewise.
9322         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
9323         * debug/fgets_chk.c (__fgets_chk): Likewise.
9324         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
9325         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
9326         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9327         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9328         * debug/memset_chk.c (__memset_chk): Likewise.
9329         * debug/strcat_chk.c (__strcat_chk): Likewise.
9330         * debug/strncat_chk.c (__strncat_chk): Likewise.
9331         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
9332         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
9333         * dirent/dirfd.c (dirfd): Likewise.
9334         * dirent/getdents.c (__getdirentries): Likewise.
9335         * dirent/getdents64.c (getdirentries64): Likewise.
9336         * dirent/rewinddir.c (__rewinddir): Likewise.
9337         * dirent/seekdir.c (seekdir): Likewise.
9338         * dirent/telldir.c (telldir): Likewise.
9339         * elf/sln.c (makesymlinks): Likewise.
9340         (makesymlink): Likewise.
9341         * gmon/gmon.c (__moncontrol): Likewise.
9342         (__monstartup): Likewise.
9343         (write_hist): Likewise.
9344         (write_call_graph): Likewise.
9345         (write_bb_counts): Likewise.
9346         * grp/setgroups.c (setgroups): Likewise.
9347         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9348         * inet/inet_net.c (inet_network): Likewise.
9349         * inet/inet_netof.c (inet_netof): Likewise.
9350         * inet/rcmd.c (rresvport_af): Likewise.
9351         (rresvport): Likewise.
9352         * io/access.c (__access): Likewise.
9353         * io/chdir.c (__chdir): Likewise.
9354         * io/chmod.c (__chmod): Likewise.
9355         * io/chown.c (__chown): Likewise.
9356         * io/close.c (__close): Likewise.
9357         * io/creat.c (creat): Likewise.
9358         * io/creat64.c (creat64): Likewise.
9359         * io/dup.c (__dup): Likewise.
9360         * io/dup2.c (__dup2): Likewise.
9361         * io/dup3.c (__dup3): Likewise.
9362         * io/euidaccess.c (__euidaccess): Likewise.
9363         * io/faccessat.c (faccessat): Likewise.
9364         * io/fchmod.c (__fchmod): Likewise.
9365         * io/fchmodat.c (fchmodat): Likewise.
9366         * io/fchown.c (__fchown): Likewise.
9367         * io/fchownat.c (fchownat): Likewise.
9368         * io/fcntl.c (__fcntl): Likewise.
9369         * io/flock.c (__flock): Likewise.
9370         * io/fts.c (fts_load): Likewise.
9371         (fts_close): Likewise.
9372         (fts_read): Likewise.
9373         (fts_set): Likewise.
9374         (fts_children): Likewise.
9375         (fts_build): Likewise.
9376         (fts_stat): Likewise.
9377         (fts_sort): Likewise.
9378         (fts_alloc): Likewise.
9379         (fts_lfree): Likewise.
9380         (fts_palloc): Likewise.
9381         (fts_padjust): Likewise.
9382         (fts_maxarglen): Likewise.
9383         (fts_safe_changedir): Likewise.
9384         * io/getwd.c (getwd): Likewise.
9385         * io/isatty.c (__isatty): Likewise.
9386         * io/lchown.c (__lchown): Likewise.
9387         * io/link.c (__link): Likewise.
9388         * io/linkat.c (linkat): Likewise.
9389         * io/lseek.c (__libc_lseek): Likewise.
9390         * io/mkdir.c (__mkdir): Likewise.
9391         * io/mkdirat.c (mkdirat): Likewise.
9392         * io/mkfifo.c (mkfifo): Likewise.
9393         * io/mkfifoat.c (mkfifoat): Likewise.
9394         * io/open.c (__libc_open): Likewise.
9395         * io/open64.c (__libc_open64): Likewise.
9396         * io/readlink.c (__readlink): Likewise.
9397         * io/readlinkat.c (readlinkat): Likewise.
9398         * io/rmdir.c (__rmdir): Likewise.
9399         * io/symlink.c (__symlink): Likewise.
9400         * io/symlinkat.c (symlinkat): Likewise.
9401         * io/ttyname.c (ttyname): Likewise.
9402         * io/ttyname_r.c (__ttyname_r): Likewise.
9403         * io/umask.c (__umask): Likewise.
9404         * io/unlink.c (__unlink): Likewise.
9405         * io/unlinkat.c (unlinkat): Likewise.
9406         * io/utime.c (utime): Likewise.
9407         * libio/clearerr.c (clearerr): Likewise.
9408         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9409         * libio/feof.c (_IO_feof): Likewise.
9410         * libio/feof_u.c (feof_unlocked): Likewise.
9411         * libio/ferror.c (_IO_ferror): Likewise.
9412         * libio/ferror_u.c (ferror_unlocked): Likewise.
9413         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9414         * libio/fileno.c (__fileno): Likewise.
9415         * libio/fputc.c (fputc): Likewise.
9416         * libio/fputc_u.c (fputc_unlocked): Likewise.
9417         * libio/fputwc.c (fputwc): Likewise.
9418         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9419         * libio/freopen.c (freopen): Likewise.
9420         * libio/freopen64.c (freopen64): Likewise.
9421         * libio/fseek.c (fseek): Likewise.
9422         * libio/fseeko.c (fseeko): Likewise.
9423         * libio/fseeko64.c (fseeko64): Likewise.
9424         * libio/ftello.c (__ftello): Likewise.
9425         * libio/ftello64.c (ftello64): Likewise.
9426         * libio/fwide.c (fwide): Likewise.
9427         * libio/genops.c (_IO_un_link): Likewise.
9428         (_IO_link_in): Likewise.
9429         (_IO_least_marker): Likewise.
9430         (_IO_switch_to_main_get_area): Likewise.
9431         (_IO_switch_to_backup_area): Likewise.
9432         (_IO_switch_to_get_mode): Likewise.
9433         (_IO_free_backup_area): Likewise.
9434         (_IO_switch_to_put_mode): Likewise.
9435         (__overflow): Likewise.
9436         (__underflow): Likewise.
9437         (__uflow): Likewise.
9438         (_IO_setb): Likewise.
9439         (_IO_doallocbuf): Likewise.
9440         (_IO_default_underflow): Likewise.
9441         (_IO_default_uflow): Likewise.
9442         (_IO_default_xsputn): Likewise.
9443         (_IO_sgetn): Likewise.
9444         (_IO_default_xsgetn): Likewise.
9445         (_IO_sync): Likewise.
9446         (_IO_default_setbuf): Likewise.
9447         (_IO_default_seekpos): Likewise.
9448         (_IO_default_doallocate): Likewise.
9449         (_IO_init): Likewise.
9450         (_IO_old_init): Likewise.
9451         (_IO_default_sync): Likewise.
9452         (_IO_default_finish): Likewise.
9453         (_IO_default_seekoff): Likewise.
9454         (_IO_sputbackc): Likewise.
9455         (_IO_sungetc): Likewise.
9456         (_IO_set_column): Likewise.
9457         (_IO_set_column): Likewise.
9458         (_IO_adjust_column): Likewise.
9459         (_IO_get_column): Likewise.
9460         (_IO_init_marker): Likewise.
9461         (_IO_remove_marker): Likewise.
9462         (_IO_marker_difference): Likewise.
9463         (_IO_marker_delta): Likewise.
9464         (_IO_seekmark): Likewise.
9465         (_IO_unsave_markers): Likewise.
9466         (_IO_nobackup_pbackfail): Likewise.
9467         (_IO_default_pbackfail): Likewise.
9468         (_IO_default_seek): Likewise.
9469         (_IO_default_stat): Likewise.
9470         (_IO_default_read): Likewise.
9471         (_IO_default_write): Likewise.
9472         (_IO_default_showmanyc): Likewise.
9473         (_IO_default_imbue): Likewise.
9474         (_IO_iter_next): Likewise.
9475         (_IO_iter_file): Likewise.
9476         * libio/getc.c (_IO_getc): Likewise.
9477         * libio/getwc.c (_IO_getwc): Likewise.
9478         * libio/iofclose.c (_IO_new_fclose): Likewise.
9479         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9480         * libio/iofflush.c (_IO_fflush): Likewise.
9481         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9482         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9483         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9484         * libio/iofgets.c (_IO_fgets): Likewise.
9485         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9486         * libio/iofgetws.c (fgetws): Likewise.
9487         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9488         * libio/iofopen64.c (_IO_fopen64): Likewise.
9489         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9490         (_IO_cookie_write): Likewise.
9491         (_IO_cookie_seek): Likewise.
9492         (_IO_cookie_close): Likewise.
9493         (_IO_cookie_seekoff): Likewise.
9494         (_IO_old_cookie_seek): Likewise.
9495         * libio/iofputs.c (_IO_fputs): Likewise.
9496         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9497         * libio/iofputws.c (fputws): Likewise.
9498         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9499         * libio/iofread.c (_IO_fread): Likewise.
9500         * libio/iofread_u.c (__fread_unlocked): Likewise.
9501         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9502         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9503         * libio/ioftell.c (_IO_ftell): Likewise.
9504         * libio/iofwrite.c (_IO_fwrite): Likewise.
9505         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9506         * libio/iogets.c (_IO_gets): Likewise.
9507         * libio/iopadn.c (_IO_padn): Likewise.
9508         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9509         (_IO_new_popen): Likewise.
9510         (_IO_new_proc_close): Likewise.
9511         * libio/ioputs.c (_IO_puts): Likewise.
9512         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9513         (_IO_seekoff): Likewise.
9514         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9515         (_IO_seekpos): Likewise.
9516         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9517         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9518         * libio/ioungetc.c (_IO_ungetc): Likewise.
9519         * libio/ioungetwc.c (ungetwc): Likewise.
9520         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9521         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9522         * libio/iowpadn.c (_IO_wpadn): Likewise.
9523         * libio/libc_fatal.c (__libc_fatal): Likewise.
9524         * libio/memstream.c (__open_memstream): Likewise.
9525         (_IO_mem_sync): Likewise.
9526         (_IO_mem_finish): Likewise.
9527         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9528         (_IO_old_file_close_it): Likewise.
9529         (_IO_old_file_finish): Likewise.
9530         (_IO_old_file_fopen): Likewise.
9531         (_IO_old_file_attach): Likewise.
9532         (_IO_old_file_setbuf): Likewise.
9533         (_IO_old_do_write): Likewise.
9534         (old_do_write): Likewise.
9535         (_IO_old_file_underflow): Likewise.
9536         (_IO_old_file_overflow): Likewise.
9537         (_IO_old_file_sync): Likewise.
9538         (_IO_old_file_seekoff): Likewise.
9539         (_IO_old_file_write): Likewise.
9540         (_IO_old_file_xsputn): Likewise.
9541         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9542         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9543         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9544         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9545         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9546         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9547         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9548         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9549         (_IO_old_popen): Likewise.
9550         (_IO_old_proc_close): Likewise.
9551         * libio/oldpclose.c (__old_pclose): Likewise.
9552         * libio/pclose.c (__new_pclose): Likewise.
9553         * libio/peekc.c (_IO_peekc_locked): Likewise.
9554         * libio/putc.c (_IO_putc): Likewise.
9555         * libio/putc_u.c (putc_unlocked): Likewise.
9556         * libio/putchar.c (putchar): Likewise.
9557         * libio/putchar_u.c (putchar_unlocked): Likewise.
9558         * libio/putwc.c (putwc): Likewise.
9559         * libio/putwc_u.c (putwc_unlocked): Likewise.
9560         * libio/putwchar.c (putwchar): Likewise.
9561         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9562         * libio/rewind.c (rewind): Likewise.
9563         * libio/setbuf.c (setbuf): Likewise.
9564         * libio/setlinebuf.c (setlinebuf): Likewise.
9565         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9566         * libio/vscanf.c (_IO_vscanf): Likewise.
9567         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9568         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9569         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9570         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9571         (_IO_switch_to_main_wget_area): Likewise.
9572         (_IO_switch_to_wbackup_area): Likewise.
9573         (_IO_wsetb): Likewise.
9574         (_IO_wdefault_pbackfail): Likewise.
9575         (_IO_wdefault_finish): Likewise.
9576         (_IO_wdefault_uflow): Likewise.
9577         (__woverflow): Likewise.
9578         (__wuflow): Likewise.
9579         (__wunderflow): Likewise.
9580         (_IO_wdefault_xsputn): Likewise.
9581         (_IO_wdefault_xsgetn): Likewise.
9582         (_IO_wdoallocbuf): Likewise.
9583         (_IO_wdefault_doallocate): Likewise.
9584         (_IO_switch_to_wget_mode): Likewise.
9585         (_IO_free_wbackup_area): Likewise.
9586         (_IO_switch_to_wput_mode): Likewise.
9587         (_IO_sputbackwc): Likewise.
9588         (_IO_sungetwc): Likewise.
9589         (_IO_adjust_wcolumn): Likewise.
9590         (_IO_init_wmarker): Likewise.
9591         (_IO_wmarker_delta): Likewise.
9592         (_IO_seekwmark): Likewise.
9593         (_IO_unsave_wmarkers): Likewise.
9594         * libio/wmemstream.c (open_wmemstream): Likewise.
9595         (_IO_wmem_sync): Likewise.
9596         (_IO_wmem_finish): Likewise.
9597         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9598         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9599         * locale/programs/simple-hash.c (init_hash): Likewise.
9600         (delete_hash): Likewise.
9601         (insert_entry): Likewise.
9602         (set_entry): Likewise.
9603         (next_prime): Likewise.
9604         (is_prime): Likewise.
9605         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9606         (xmalloc): Likewise.
9607         (xrealloc): Likewise.
9608         * locale/programs/xstrdup.c (xstrdup): Likewise.
9609         * localedata/collate-test.c (xstrcoll): Likewise.
9610         * localedata/xfrm-test.c (xstrcmp): Likewise.
9611         * login/getlogin_r.c (__getlogin_r): Likewise.
9612         * login/getpt.c (__posix_openpt): Likewise.
9613         * login/login_tty.c (login_tty): Likewise.
9614         * login/setlogin.c (setlogin): Likewise.
9615         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9616         (mach_msg_destroy_port): Likewise.
9617         (mach_msg_destroy_memory): Likewise.
9618         * malloc/mcheck.c (flood): Likewise.
9619         * misc/acct.c (acct): Likewise.
9620         * misc/brk.c (__brk): Likewise.
9621         * misc/chflags.c (chflags): Likewise.
9622         * misc/chroot.c (chroot): Likewise.
9623         * misc/fchflags.c (fchflags): Likewise.
9624         * misc/fstab.c (getfsspec): Likewise.
9625         (getfsfile): Likewise.
9626         * misc/fsync.c (fsync): Likewise.
9627         * misc/ftruncate.c (__ftruncate): Likewise.
9628         * misc/ftruncate64.c (__ftruncate64): Likewise.
9629         * misc/getdomain.c (getdomainname): Likewise.
9630         (getdomainname): Likewise.
9631         * misc/gethostname.c (__gethostname): Likewise.
9632         * misc/getpass.c (getpass): Likewise.
9633         * misc/getttyent.c (skip): Likewise.
9634         (value): Likewise.
9635         * misc/gtty.c (gtty): Likewise.
9636         * misc/hsearch.c (hsearch): Likewise.
9637         (hcreate): Likewise.
9638         * misc/hsearch_r.c (__hcreate_r): Likewise.
9639         (__hdestroy_r): Likewise.
9640         * misc/ioctl.c (__ioctl): Likewise.
9641         * misc/mkdtemp.c (mkdtemp): Likewise.
9642         * misc/mkostemp.c (mkostemp): Likewise.
9643         * misc/mkostemp64.c (mkostemp64): Likewise.
9644         * misc/mkostemps.c (mkostemps): Likewise.
9645         * misc/mkostemps64.c (mkostemps64): Likewise.
9646         * misc/mkstemp.c (mkstemp): Likewise.
9647         * misc/mkstemp64.c (mkstemp64): Likewise.
9648         * misc/mkstemps.c (mkstemps): Likewise.
9649         * misc/mkstemps64.c (mkstemps64): Likewise.
9650         * misc/mktemp.c (__mktemp): Likewise.
9651         * misc/preadv.c (preadv): Likewise.
9652         * misc/preadv64.c (preadv64): Likewise.
9653         * misc/pwritev.c (pwritev): Likewise.
9654         * misc/pwritev64.c (pwritev64): Likewise.
9655         * misc/readv.c (__readv): Likewise.
9656         * misc/revoke.c (revoke): Likewise.
9657         * misc/setdomain.c (setdomainname): Likewise.
9658         * misc/setegid.c (setegid): Likewise.
9659         * misc/seteuid.c (seteuid): Likewise.
9660         * misc/sethostid.c (sethostid): Likewise.
9661         * misc/sethostname.c (sethostname): Likewise.
9662         * misc/setregid.c (__setregid): Likewise.
9663         * misc/setreuid.c (__setreuid): Likewise.
9664         * misc/sstk.c (sstk): Likewise.
9665         * misc/stty.c (stty): Likewise.
9666         * misc/syscall.c (syscall): Likewise.
9667         * misc/syslog.c (setlogmask): Likewise.
9668         * misc/truncate.c (__truncate): Likewise.
9669         * misc/truncate64.c (truncate64): Likewise.
9670         * misc/ualarm.c (ualarm): Likewise.
9671         * misc/usleep.c (usleep): Likewise.
9672         * misc/ustat.c (ustat): Likewise.
9673         * misc/writev.c (__writev): Likewise.
9674         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9675         * nptl/old_pthread_cond_broadcast.c
9676         (__pthread_cond_broadcast_2_0): Likewise.
9677         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9678         Likewise.
9679         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9680         Likewise.
9681         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9682         Likewise.
9683         * nptl/pt-raise.c (raise): Likewise.
9684         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9685         Likewise.
9686         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9687         * nptl/pthread_barrierattr_destroy.c
9688         (pthread_barrierattr_destroy): Likewise.
9689         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9690         Likewise.
9691         * nptl/pthread_barrierattr_setpshared.c
9692         (pthread_barrierattr_setpshared): Likewise.
9693         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9694         Likewise.
9695         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9696         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9697         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9698         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9699         Likewise.
9700         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9701         Likewise.
9702         * nptl/pthread_condattr_getpshared.c
9703         (pthread_condattr_getpshared): Likewise.
9704         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9705         Likewise.
9706         * nptl/pthread_condattr_setpshared.c
9707         (pthread_condattr_setpshared): Likewise.
9708         * nptl/pthread_detach.c (pthread_detach): Likewise.
9709         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9710         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9711         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9712         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9713         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9714         Likewise.
9715         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9716         Likewise.
9717         * nptl/pthread_mutex_getprioceiling.c
9718         (pthread_mutex_getprioceiling): Likewise.
9719         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9720         Likewise.
9721         * nptl/pthread_mutexattr_getprotocol.c
9722         (pthread_mutexattr_getprotocol): Likewise.
9723         * nptl/pthread_mutexattr_getpshared.c
9724         (pthread_mutexattr_getpshared): Likewise.
9725         * nptl/pthread_mutexattr_getrobust.c
9726         (pthread_mutexattr_getrobust): Likewise.
9727         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9728         Likewise.
9729         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9730         Likewise.
9731         * nptl/pthread_mutexattr_setprioceiling.c
9732         (pthread_mutexattr_setprioceiling): Likewise.
9733         * nptl/pthread_mutexattr_setprotocol.c
9734         (pthread_mutexattr_setprotocol): Likewise.
9735         * nptl/pthread_mutexattr_setpshared.c
9736         (pthread_mutexattr_setpshared): Likewise.
9737         * nptl/pthread_mutexattr_setrobust.c
9738         (pthread_mutexattr_setrobust): Likewise.
9739         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9740         Likewise.
9741         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9742         Likewise.
9743         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9744         Likewise.
9745         * nptl/pthread_rwlockattr_getkind_np.c
9746         (pthread_rwlockattr_getkind_np): Likewise.
9747         * nptl/pthread_rwlockattr_getpshared.c
9748         (pthread_rwlockattr_getpshared): Likewise.
9749         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9750         Likewise.
9751         * nptl/pthread_rwlockattr_setkind_np.c
9752         (pthread_rwlockattr_setkind_np): Likewise.
9753         * nptl/pthread_rwlockattr_setpshared.c
9754         (pthread_rwlockattr_setpshared): Likewise.
9755         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9756         Likewise.
9757         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9758         Likewise.
9759         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9760         Likewise.
9761         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9762         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9763         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9764         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9765         * nptl/sem_close.c (sem_close): Likewise.
9766         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9767         * nptl/sem_init.c (__old_sem_init): Likewise.
9768         * nptl/sigaction.c (__sigaction): Likewise.
9769         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9770         * posix/_exit.c (_exit): Likewise.
9771         * posix/alarm.c (alarm): Likewise.
9772         * posix/confstr.c (confstr): Likewise.
9773         * posix/fpathconf.c (__fpathconf): Likewise.
9774         * posix/getgroups.c (__getgroups): Likewise.
9775         * posix/getpgid.c (__getpgid): Likewise.
9776         * posix/group_member.c (__group_member): Likewise.
9777         * posix/pathconf.c (__pathconf): Likewise.
9778         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9779         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9780         * posix/setgid.c (__setgid): Likewise.
9781         * posix/setpgid.c (__setpgid): Likewise.
9782         * posix/setuid.c (__setuid): Likewise.
9783         * posix/sleep.c (__sleep): Likewise.
9784         * posix/sysconf.c (__sysconf): Likewise.
9785         * posix/times.c (__times): Likewise.
9786         * posix/uname.c (__uname): Likewise.
9787         * posix/waitid.c (__waitid): Likewise.
9788         * pwd/getpw.c (__getpw): Likewise.
9789         * resolv/base64.c (b64_pton): Likewise.
9790         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9791         * resolv/gethnamaddr.c (Dprintf): Likewise.
9792         (gethostbyname): Likewise.
9793         (gethostbyname2): Likewise.
9794         (gethostbyaddr): Likewise.
9795         (_sethtent): Likewise.
9796         (_gethtbyname): Likewise.
9797         (_gethtbyname2): Likewise.
9798         (_gethtbyaddr): Likewise.
9799         (map_v4v6_address): Likewise.
9800         (map_v4v6_hostent): Likewise.
9801         (addrsort): Likewise.
9802         (ht_sethostent): Likewise.
9803         (ht_gethostbyname): Likewise.
9804         (ht_gethostbyaddr): Likewise.
9805         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9806         (inet_net_ntop_ipv4): Likewise.
9807         * resolv/inet_neta.c (inet_neta): Likewise.
9808         * resolv/inet_ntop.c (inet_ntop): Likewise.
9809         (inet_ntop4): Likewise.
9810         (inet_ntop6): Likewise.
9811         * resolv/inet_pton.c (__inet_pton): Likewise.
9812         (inet_pton4): Likewise.
9813         (inet_pton6): Likewise.
9814         * resolv/res_debug.c (loc_aton): Likewise.
9815         (loc_ntoa): Likewise.
9816         * resource/getpriority.c (__getpriority): Likewise.
9817         * resource/getrusage.c (__getrusage): Likewise.
9818         * resource/nice.c (nice): Likewise.
9819         * resource/setpriority.c (__setpriority): Likewise.
9820         * resource/setrlimit64.c (setrlimit64): Likewise.
9821         * resource/vlimit.c (vlimit): Likewise.
9822         * resource/vtimes.c (vtimes): Likewise.
9823         * rt/aio_error.c (aio_error): Likewise.
9824         * rt/aio_return.c (aio_return): Likewise.
9825         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9826         * signal/kill.c (__kill): Likewise.
9827         * signal/killpg.c (killpg): Likewise.
9828         * signal/raise.c (raise): Likewise.
9829         * signal/sigaction.c (__sigaction): Likewise.
9830         * signal/sigaddset.c (sigaddset): Likewise.
9831         * signal/sigaltstack.c (sigaltstack): Likewise.
9832         * signal/sigandset.c (sigandset): Likewise.
9833         * signal/sigblock.c (__sigblock): Likewise.
9834         * signal/sigdelset.c (sigdelset): Likewise.
9835         * signal/sigempty.c (sigemptyset): Likewise.
9836         * signal/sigfillset.c (sigfillset): Likewise.
9837         * signal/sighold.c (sighold): Likewise.
9838         * signal/sigignore.c (sigignore): Likewise.
9839         * signal/sigintr.c (siginterrupt): Likewise.
9840         * signal/sigisempty.c (sigisemptyset): Likewise.
9841         * signal/sigismem.c (sigismember): Likewise.
9842         * signal/signal.c (signal): Likewise.
9843         * signal/sigorset.c (sigorset): Likewise.
9844         * signal/sigpause.c (__sigpause): Likewise.
9845         * signal/sigpending.c (sigpending): Likewise.
9846         * signal/sigprocmask.c (__sigprocmask): Likewise.
9847         * signal/sigrelse.c (sigrelse): Likewise.
9848         * signal/sigreturn.c (__sigreturn): Likewise.
9849         * signal/sigset.c (sigset): Likewise.
9850         * signal/sigsetmask.c (__sigsetmask): Likewise.
9851         * signal/sigstack.c (sigstack): Likewise.
9852         * signal/sigsuspend.c (__sigsuspend): Likewise.
9853         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9854         * signal/sysv_signal.c (__sysv_signal): Likewise.
9855         * socket/accept.c (accept): Likewise.
9856         * socket/accept4.c (__libc_accept4): Likewise.
9857         * socket/bind.c (__bind): Likewise.
9858         * socket/connect.c (__connect): Likewise.
9859         * socket/getpeername.c (getpeername): Likewise.
9860         * socket/getsockname.c (__getsockname): Likewise.
9861         * socket/getsockopt.c (getsockopt): Likewise.
9862         * socket/listen.c (__listen): Likewise.
9863         * socket/recv.c (__recv): Likewise.
9864         * socket/recvmsg.c (__recvmsg): Likewise.
9865         * socket/send.c (__send): Likewise.
9866         * socket/sendmsg.c (__sendmsg): Likewise.
9867         * socket/shutdown.c (shutdown): Likewise.
9868         * socket/sockatmark.c (sockatmark): Likewise.
9869         * socket/socket.c (__socket): Likewise.
9870         * stdio-common/ctermid.c (ctermid): Likewise.
9871         * stdio-common/cuserid.c (cuserid): Likewise.
9872         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9873         * stdio-common/remove.c (remove): Likewise.
9874         * stdio-common/rename.c (rename): Likewise.
9875         * stdio-common/renameat.c (renameat): Likewise.
9876         * stdio-common/tempname.c (__gen_tempname): Likewise.
9877         * stdio-common/xbug.c (InitBuffer): Likewise.
9878         (AppendToBuffer): Likewise.
9879         (ReadFile): Likewise.
9880         * stdlib/a64l.c (a64l): Likewise.
9881         * stdlib/drand48_r.c (drand48_r): Likewise.
9882         * stdlib/getcontext.c (getcontext): Likewise.
9883         * stdlib/getenv.c (getenv): Likewise.
9884         * stdlib/l64a.c (l64a): Likewise.
9885         * stdlib/llabs.c (llabs): Likewise.
9886         * stdlib/lldiv.c (lldiv): Likewise.
9887         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9888         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9889         * stdlib/putenv.c (putenv): Likewise.
9890         * stdlib/random.c (__srandom): Likewise.
9891         (__initstate): Likewise.
9892         (__setstate): Likewise.
9893         * stdlib/random_r.c (__srandom_r): Likewise.
9894         (__setstate_r): Likewise.
9895         (__random_r): Likewise.
9896         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9897         * stdlib/setcontext.c (setcontext): Likewise.
9898         * stdlib/setenv.c (setenv): Likewise.
9899         (unsetenv): Likewise.
9900         * stdlib/srand48.c (srand48): Likewise.
9901         * stdlib/srand48_r.c (__srand48_r): Likewise.
9902         * stdlib/swapcontext.c (swapcontext): Likewise.
9903         * stdlib/system.c (__libc_system): Likewise.
9904         * stdlib/tst-strtod.c (expand): Likewise.
9905         * stdlib/tst-strtol.c (expand): Likewise.
9906         * stdlib/tst-strtoll.c (expand): Likewise.
9907         * streams/fattach.c (fattach): Likewise.
9908         * streams/fdetach.c (fdetach): Likewise.
9909         * streams/getmsg.c (getmsg): Likewise.
9910         * streams/isastream.c (isastream): Likewise.
9911         * string/ffs.c (__ffs): Likewise.
9912         * string/ffsll.c (ffsll): Likewise.
9913         * string/memcmp.c (memcmp_common_alignment): Likewise.
9914         (memcmp_not_common_alignment): Likewise.
9915         (MEMCMP): Likewise.
9916         * string/memcpy.c (memcpy): Likewise.
9917         * string/memmove.c (MEMMOVE): Likewise.
9918         * string/memset.c (memset): Likewise.
9919         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9920         * string/strchrnul.c (STRCHRNUL): Likewise.
9921         * string/strerror.c (strerror): Likewise.
9922         * string/strndup.c (__strndup): Likewise.
9923         * string/strverscmp.c (__strverscmp): Likewise.
9924         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9925         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9926         (clnttcp_freeres): Likewise.
9927         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9928         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9929         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9930         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9931         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9932         (xdr_callhdr): Likewise.
9933         * sunrpc/rpcinfo.c (udpping): Likewise.
9934         (tcpping): Likewise.
9935         (pstatus): Likewise.
9936         (pmapdump): Likewise.
9937         (brdcst): Likewise.
9938         (deletereg): Likewise.
9939         (getprognum): Likewise.
9940         (getvers): Likewise.
9941         (get_inet_address): Likewise.
9942         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9943         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9944         (svcudp_stat): Likewise.
9945         (svcudp_recv): Likewise.
9946         (svcudp_reply): Likewise.
9947         (svcudp_getargs): Likewise.
9948         (svcudp_freeargs): Likewise.
9949         (svcudp_destroy): Likewise.
9950         * sunrpc/xdr.c (xdr_bytes): Likewise.
9951         (xdr_netobj): Likewise.
9952         (xdr_string): Likewise.
9953         (xdr_wrapstring): Likewise.
9954         * sunrpc/xdr_float.c (xdr_float): Likewise.
9955         (xdr_double): Likewise.
9956         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9957         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9958         * sysvipc/ftok.c (ftok): Likewise.
9959         * sysvipc/msgctl.c (msgctl): Likewise.
9960         * sysvipc/msgget.c (msgget): Likewise.
9961         * sysvipc/msgrcv.c (msgrcv): Likewise.
9962         * sysvipc/msgsnd.c (msgsnd): Likewise.
9963         * sysvipc/semget.c (semget): Likewise.
9964         * sysvipc/semop.c (semop): Likewise.
9965         * sysvipc/shmat.c (shmat): Likewise.
9966         * sysvipc/shmctl.c (shmctl): Likewise.
9967         * sysvipc/shmdt.c (shmdt): Likewise.
9968         * sysvipc/shmget.c (shmget): Likewise.
9969         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9970         * termios/speed.c (cfgetospeed): Likewise.
9971         (cfgetispeed): Likewise.
9972         (cfsetospeed): Likewise.
9973         (cfsetispeed): Likewise.
9974         * termios/tcflow.c (tcflow): Likewise.
9975         * termios/tcflush.c (tcflush): Likewise.
9976         * termios/tcgetattr.c (__tcgetattr): Likewise.
9977         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9978         * termios/tcgetsid.c (tcgetsid): Likewise.
9979         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9980         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9981         * time/adjtime.c (__adjtime): Likewise.
9982         * time/dysize.c (dysize): Likewise.
9983         * time/ftime.c (ftime): Likewise.
9984         * time/getitimer.c (__getitimer): Likewise.
9985         * time/gettimeofday.c (__gettimeofday): Likewise.
9986         * time/gmtime.c (__gmtime_r): Likewise.
9987         (gmtime): Likewise.
9988         * time/localtime.c (__localtime_r): Likewise.
9989         (localtime): Likewise.
9990         * time/offtime.c (__offtime): Likewise.
9991         * time/settimeofday.c (__settimeofday): Likewise.
9992         * time/stime.c (stime): Likewise.
9993         * time/strftime_l.c (tm_diff): Likewise.
9994         (iso_week_days): Likewise.
9995         * time/strptime.c (strptime): Likewise.
9996         * time/time.c (time): Likewise.
9997         * time/timespec_get.c (timespec_get): Likewise.
9998         * time/tzset.c (tzset_internal): Likewise.
9999         (compute_change): Likewise.
10000         (__tz_compute): Likewise.
10001         * wcsmbs/btowc.c (__btowc): Likewise.
10002         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
10003         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
10004         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
10005         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
10006         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
10007         * wcsmbs/wcscat.c (__wcscat): Likewise.
10008         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
10009         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
10010         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
10011         * wcsmbs/wcscspn.c (wcscspn): Likewise.
10012         * wcsmbs/wcsdup.c (wcsdup): Likewise.
10013         * wcsmbs/wcslen.c (__wcslen): Likewise.
10014         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
10015         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
10016         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
10017         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
10018         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
10019         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
10020         * wcsmbs/wcsspn.c (wcsspn): Likewise.
10021         * wcsmbs/wcsstr.c (wcsstr): Likewise.
10022         * wcsmbs/wcstok.c (wcstok): Likewise.
10023         * wcsmbs/wctob.c (wctob): Likewise.
10024         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
10025         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10026         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
10027         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
10028         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
10029         * wcsmbs/wmemset.c (__wmemset): Likewise.
10030         * wctype/wcfuncs.c (__towlower): Likewise.
10031         (__towupper): Likewise.
10032
10033         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
10034         (lll_unlock_elision): Add adapt_count parameter.
10035
10036 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10037
10038         * sysdeps/nptl/configure.ac: Do not give errors based on the
10039         results of top-level configure tests.
10040         * sysdeps/nptl/configure: Regenerated.
10041
10042         * configure.ac (libc_cv_Bgroup): Remove configure test.
10043         * configure: Regenerated.
10044         * config.make.in (have-Bgroup): Remove variable.
10045
10046         * configure.ac (sizeof_long_double): Remove configure test.
10047         * configure: Regenerated.
10048         * config.make.in (sizeof-long-double): Remove variable.
10049
10050         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
10051         * configure: Regenerated.
10052         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
10053         variable.
10054         (exceptions): Likewise.
10055         * sysdeps/arm/configure: Regenerated.
10056         * config.make.in (exceptions): Remove variable.
10057         * Makeconfig (uses-callbacks): Use -fexceptions instead of
10058         $(exceptions).
10059         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
10060         (CFLAGS-vdprintf_chk.c): Likewise.
10061         (CFLAGS-printf_chk.c): Likewise.
10062         (CFLAGS-fprintf_chk.c): Likewise.
10063         (CFLAGS-vprintf_chk.c): Likewise.
10064         (CFLAGS-vfprintf_chk.c): Likewise.
10065         (CFLAGS-gets_chk.c): Likewise.
10066         (CFLAGS-fgets_chk.c): Likewise.
10067         (CFLAGS-fgets_u_chk.c): Likewise.
10068         (CFLAGS-fread_chk.c): Likewise.
10069         (CFLAGS-fread_u_chk.c): Likewise.
10070         (CFLAGS-wprintf_chk.c): Likewise.
10071         (CFLAGS-fwprintf_chk.c): Likewise.
10072         (CFLAGS-vwprintf_chk.c): Likewise.
10073         (CFLAGS-vfwprintf_chk.c): Likewise.
10074         (CFLAGS-fgetws_chk.c): Likewise.
10075         (CFLAGS-fgetws_u_chk.c): Likewise.
10076         * libio/Makefile (CFLAGS-fileops.c): Likewise.
10077         (CFLAGS-fputc.c): Likewise.
10078         (CFLAGS-fputwc.c): Likewise.
10079         (CFLAGS-freopen64.c): Likewise.
10080         (CFLAGS-freopen.c): Likewise.
10081         (CFLAGS-fseek.c): Likewise.
10082         (CFLAGS-fseeko64.c): Likewise.
10083         (CFLAGS-fseeko.c): Likewise.
10084         (CFLAGS-ftello64.c): Likewise.
10085         (CFLAGS-ftello.c): Likewise.
10086         (CFLAGS-fwide.c): Likewise.
10087         (CFLAGS-genops.c): Likewise.
10088         (CFLAGS-getc.c): Likewise.
10089         (CFLAGS-getchar.c): Likewise.
10090         (CFLAGS-getwc.c): Likewise.
10091         (CFLAGS-getwchar.c): Likewise.
10092         (CFLAGS-iofclose.c): Likewise.
10093         (CFLAGS-iofflush.c): Likewise.
10094         (CFLAGS-iofgetpos64.c): Likewise.
10095         (CFLAGS-iofgetpos.c): Likewise.
10096         (CFLAGS-iofgets.c): Likewise.
10097         (CFLAGS-iofgetws.c): Likewise.
10098         (CFLAGS-iofputs.c): Likewise.
10099         (CFLAGS-iofputws.c): Likewise.
10100         (CFLAGS-iofread.c): Likewise.
10101         (CFLAGS-iofsetpos64.c): Likewise.
10102         (CFLAGS-iofsetpos.c): Likewise.
10103         (CFLAGS-ioftell.c): Likewise.
10104         (CFLAGS-iofwrite.c): Likewise.
10105         (CFLAGS-iogetdelim.c): Likewise.
10106         (CFLAGS-iogetline.c): Likewise.
10107         (CFLAGS-iogets.c): Likewise.
10108         (CFLAGS-iogetwline.c): Likewise.
10109         (CFLAGS-ioputs.c): Likewise.
10110         (CFLAGS-ioseekoff.c): Likewise.
10111         (CFLAGS-ioseekpos.c): Likewise.
10112         (CFLAGS-iosetbuffer.c): Likewise.
10113         (CFLAGS-iosetvbuf.c): Likewise.
10114         (CFLAGS-ioungetc.c): Likewise.
10115         (CFLAGS-ioungetwc.c): Likewise.
10116         (CFLAGS-oldfileops.c): Likewise.
10117         (CFLAGS-oldiofclose.c): Likewise.
10118         (CFLAGS-oldiofgetpos64.c): Likewise.
10119         (CFLAGS-oldiofgetpos.c): Likewise.
10120         (CFLAGS-oldiofsetpos64.c): Likewise.
10121         (CFLAGS-oldiofsetpos.c): Likewise.
10122         (CFLAGS-peekc.c): Likewise.
10123         (CFLAGS-putc.c): Likewise.
10124         (CFLAGS-putchar.c): Likewise.
10125         (CFLAGS-putwc.c): Likewise.
10126         (CFLAGS-putwchar.c): Likewise.
10127         (CFLAGS-rewind.c): Likewise.
10128         (CFLAGS-wfileops.c): Likewise.
10129         (CFLAGS-wgenops.c): Likewise.
10130         (CFLAGS-oldiofopen.c): Likewise.
10131         (CFLAGS-iofopen.c): Likewise.
10132         (CFLAGS-iofopen64.c): Likewise.
10133         (CFLAGS-oldtmpfile.c): Likewise.
10134         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
10135         (CFLAGS-fprintf.c): Likewise.
10136         (CFLAGS-printf.c): Likewise.
10137         (CFLAGS-vfwprintf.c): Likewise.
10138         (CFLAGS-vfscanf.c): Likewise.
10139         (CFLAGS-vfwscanf.c): Likewise.
10140         (CFLAGS-fscanf.c): Likewise.
10141         (CFLAGS-scanf.c): Likewise.
10142         (CFLAGS-isoc99_vfscanf.c): Likewise.
10143         (CFLAGS-isoc99_vscanf.c): Likewise.
10144         (CFLAGS-isoc99_fscanf.c): Likewise.
10145         (CFLAGS-isoc99_scanf.c): Likewise.
10146         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
10147         (CFLAGS-isoc99_fwscanf.c): Likewise.
10148         (CFLAGS-isoc99_vwscanf.c): Likewise.
10149         (CFLAGS-isoc99_vfwscanf.c): Likewise.
10150
10151         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
10152         after mkstemp64.
10153         * login/tst-utmp.c (do_prepare): Likewise.
10154         * rt/tst-aio.c (do_prepare): Likewise.
10155         * rt/tst-aio64.c (do_prepare): Likewise.
10156
10157 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10158
10159         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
10160         (__lll_lock_elision): Remove adapt_count decrement...
10161         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10162         (__lll_trylock_elision): Likewise.
10163         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10164         (__lll_unlock_elision): ... to here. And utilize
10165         new adapt_count parameter.
10166         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10167         (__lll_unlock_elision): Update to include adapt_count
10168         parameter.
10169         (lll_unlock_elision): Pass pointer to adapt_count
10170         variable.
10171
10172 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10173
10174         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
10175         Add elision adapt_count parameter to list of arguments.
10176         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10177         (lll_unlock_elision): Update with new parameter list
10178         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10179         (lll_unlock_elision): Likewise.
10180         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10181         (lll_unlock_elision): Likewise.
10182
10183 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10184
10185         [BZ #19122]
10186         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
10187         attribute_hidden.
10188
10189         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
10190         attribute_hidden.
10191         [IS_IN (rtld)] (__strdup): Likewise.
10192         [IS_IN (rtld)] (__strerror_r): Likewise.
10193         [IS_IN (rtld)] (__strsep_g): Likewise.
10194         [IS_IN (rtld)] (memchr): Likewise.
10195         [IS_IN (rtld)] (memcmp): Likewise.
10196         [IS_IN (rtld)] (memcpy): Likewise.
10197         [IS_IN (rtld)] (memmove): Likewise.
10198         [IS_IN (rtld)] (memset): Likewise.
10199         [IS_IN (rtld)] (rawmemchr): Likewise.
10200         [IS_IN (rtld)] (stpcpy): Likewise.
10201         [IS_IN (rtld)] (strchr): Likewise.
10202         [IS_IN (rtld)] (strcmp): Likewise.
10203         [IS_IN (rtld)] (strlen): Likewise.
10204         [IS_IN (rtld)] (strnlen): Likewise.
10205         [IS_IN (rtld)] (strsep): Likewise.
10206
10207         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
10208         attribute_hidden.
10209         [IS_IN (rtld)] (__strtoul_internal): Likewise.
10210
10211         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
10212         attribute_hidden.
10213         [IS_IN (rtld)] (__libc_sigaction): Likewise.
10214
10215         * include/setjmp.h (__longjmp): Add attribute_hidden.
10216         [IS_IN (rtld)] (__sigsetjmp): Likewise.
10217
10218         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
10219         Add attribute_hidden.
10220
10221         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
10222         [IS_IN (rtld)] (__open): Likewise.
10223         [IS_IN (rtld)] (__fcntl): Likewise.
10224
10225         * include/dirent.h (__opendirat): Add attribute_hidden.
10226         (__getdents): Likewise.
10227         (__getdents64): Likewise.
10228         (__alloc_dir): Likewise.
10229         [IS_IN (rtld)] (__closedir): Likewise.
10230         [IS_IN (rtld)] (__fdopendir): Likewise.
10231         [IS_IN (rtld)] (__readdir): Likewise.
10232         [IS_IN (rtld)] (__readdir64): Likewise.
10233         [IS_IN (rtld)] (__rewinddir): Likewise.
10234
10235         * include/dlfcn.h (_dl_catch_error): Moved to ...
10236         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
10237         attribute_hidden.
10238
10239         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
10240         (_itoa_word): Likewise.
10241
10242         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
10243         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10244         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10245         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
10246         (_dl_higher_prime_number): Likewise.
10247         (_dl_debug_printf_c): Likewise.
10248         (_dl_signal_cerror): Likewise.
10249         (_dl_receive_error): Likewise.
10250         (_dl_reloc_bad_type): Likewise.
10251         (_dl_resolve_conflicts): Likewise.
10252         (_dl_check_all_versions): Likewise.
10253         (_dl_check_map_versions): Likewise.
10254         (_dl_sort_fini): Likewise.
10255         (_dl_debug_initialize): Likewise.
10256         (_dl_init_paths): Likewise.
10257         (_dl_show_auxv): Likewise.
10258         (_dl_next_ld_env_entry): Likewise.
10259         (_dl_important_hwcaps): Likewise.
10260         (_dl_load_cache_lookup): Likewise.
10261         (_dl_update_slotinfo): Likewise.
10262         (_dl_show_scope): Likewise.
10263
10264         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
10265         attribute_hidden.
10266         (_wordcopy_fwd_dest_aligned): Likewise.
10267         (_wordcopy_bwd_aligned): Likewise.
10268         (_wordcopy_bwd_dest_aligned): Likewise.
10269
10270         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
10271         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10272         Likewise.
10273         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10274         Likewise.
10275         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10276
10277 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10278
10279         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
10280         GCC 5 requirement.
10281
10282 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10283
10284         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
10285         test.
10286         * sysdeps/i386/configure: Regenerated.
10287         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
10288         code unconditional.
10289
10290         * configure.ac (libc_cv_asm_previous_directive): Remove configure
10291         test.
10292         (libc_cv_asm_popsection_directive): Likewise.
10293         * configure: Regenerated.
10294         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
10295         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
10296         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
10297         (__make_section_unallocated): Make definition unconditional.
10298         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
10299         Remove conditional definition.
10300         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
10301         (__make_section_unallocated): Likewise.
10302
10303         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
10304         * configure: Regenerated.
10305         * config.make.in (static-libgcc): Remove variable.
10306         * Makerules (build-shlib-helper): Use -static-libgcc instead of
10307         $(static-libgcc).
10308         (build-module-helper): Likewise.
10309
10310         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
10311         * configure: Regenerated.
10312
10313 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10314
10315         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
10316         (struct char_buffer): New type.
10317         (char_buffer_start, char_buffer_size, char_buffer_error)
10318         (char_buffer_rewind, char_buffer_add): New functions.
10319         (ADDW): Remove macro, replaced by the char_buffer_add function.
10320         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
10321         of extend_alloca.  Make control flow more explicit.
10322
10323 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10324
10325         [BZ #19137]
10326         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
10327         Add -fomit-frame-pointer.
10328         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
10329
10330 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10331
10332         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
10333         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
10334         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
10335         only if !__GNUC_PREREQ (5,0).
10336         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
10337         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10338         (INTERNAL_SYSCALL_NCS): Likewise.
10339         (LOADREGS_0): New macro for GCC 5.
10340         (ASMARGS_0): Likewise.
10341         (LOADREGS_1): Likewise.
10342         (ASMARGS_1): Likewise.
10343         (LOADREGS_2): Likewise.
10344         (ASMARGS_2): Likewise.
10345         (LOADREGS_3): Likewise.
10346         (ASMARGS_3): Likewise.
10347         (LOADREGS_4): Likewise.
10348         (ASMARGS_4): Likewise.
10349         (LOADREGS_5): Likewise.
10350         (ASMARGS_5): Likewise.
10351         (LOADREGS_6): Likewise.
10352         (ASMARGS_6): Likewise.
10353
10354 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10355
10356         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
10357         -fomit-frame-pointer.
10358         (CFLAGS-mmap64.c): Likewise.
10359         (CFLAGS-semtimedop.c): Likewise.
10360         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
10361         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
10362         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10363         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10364
10365 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10366
10367         [BZ #18928]
10368         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10369         _dl_pointer_guard member.
10370         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10371         initializer.
10372         (security_init): Always set up pointer guard.
10373         (process_envvars): Do not process LD_POINTER_GUARD.
10374
10375 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10376
10377         [BZ #19134]
10378         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10379         (.LC2): Likewise.
10380         (.LC3): Likewise.
10381         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10382
10383 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10384
10385         [BZ #19129]
10386         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10387         r0 and r1.
10388
10389 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10390
10391         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10392
10393 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10394
10395         * include/stap-probe.h: Fix macro definition formatting.
10396
10397 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10398
10399         [BZ #19074]
10400         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10401         load and store num_ifs.
10402
10403 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10404
10405         [BZ #18822]
10406         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10407         (__sched_getaffinity_new): Add libc_hidden_proto and
10408         libc_hidden_def.
10409
10410 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10411
10412         [BZ #19007]
10413         * scripts/localplt.awk: Also allow GOT references.
10414         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10415         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10416         with "+ REL R_386_GLOB_DAT".
10417         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10418         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10419
10420 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10421
10422         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10423         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10424         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10425         Likewise.
10426         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10427         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10428         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10429         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10430         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10431         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10432         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10433         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10434         Likewise.
10435         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10436
10437 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10438
10439         [BZ #19125]
10440         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10441         <math_private.h> and <stdint.h>.
10442         (__llround): Avoid conversions to and from long long int, and
10443         subtractions, where those might raise spurious exceptions.
10444         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10445         <math_private.h> and <stdint.h>.
10446         (__llroundf): Avoid conversions to and from long long int, and
10447         subtractions, where those might raise spurious exceptions.
10448
10449 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10450
10451         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10452         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10453         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10454         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10455         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10456         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10457         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10458         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10459         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10460         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10461         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10462         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10463         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10464         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10465         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10466         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10467         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10468         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10469         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10470         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10471         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10472         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10473         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10474         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10475         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10476         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10477         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10478         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10479         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10480         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10481         (__xstat64_conv): Likewise.
10482         (__xstat32_conv): Likewise.
10483
10484 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10485
10486         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10487         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10488         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10489         <sysdeps/unix/sysv/linux/sysdep.h>.
10490         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10491         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10492         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10493         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10494         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10495         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10496         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10497         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10498         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10501         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10502         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10503         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10504         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10505         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10506         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10507         (sysdep-dl-routines): Add sysdep.
10508         [$(subdir) == nptl] (libpthread-routines): Likewise.
10509         [$(subdir) == rt] (librt-routines): Likewise.
10510         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10511         PIC when branching to SYSCALL_ERROR_LABEL.
10512         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10513         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10514         <sysdeps/unix/sysv/linux/sysdep.h>.
10515         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10516         (SYSCALL_ERROR_ERRNO): Removed.
10517         (SYSCALL_ERROR_HANDLER): Changed to empty.
10518         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10519         (__syscall_error): New prototype.
10520         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10521         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10522
10523 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10524
10525         [BZ #19124]
10526         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10527         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10528         _dl_runtime_resolve_avx.
10529         (_dl_runtime_profile_avx512): Make it a hidden alias of
10530         _dl_runtime_profile_avx.
10531
10532 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10533
10534         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10535         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10536         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10537         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10538
10539         [BZ #16422]
10540         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10541         New configure test.
10542         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10543         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10544         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10545         <math_private.h> and <stdint.h>.
10546         (__llrint): Avoid conversions to long long int where those might
10547         raise spurious exceptions.
10548         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10549         <math_private.h> and <stdint.h>.
10550         (__llrintf): Avoid conversions to long long int where those might
10551         raise spurious exceptions.
10552
10553 2015-10-12  Andreas Schwab  <schwab@suse.de>
10554
10555         [BZ #18969]
10556         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10557         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10558         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10559         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10560         $(gen-locales).
10561         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10562         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10563         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10564         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10565         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10566         $(gen-locales).
10567         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10568         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10569         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10570         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10571         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10572         ($(objpfx)tst-ftell-active-handler.out)
10573         ($(objpfx)tst-ftell-append.out)
10574         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10575         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10576         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10577         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10578         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10579         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10580         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10581         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10582         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10583         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10584         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10585         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10586         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10587         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10588         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10589         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10590         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10591         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10592         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10593         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10594         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10595         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10596         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10597         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10598         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10599         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10600         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10601         $(gen-locales).
10602         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10603         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10604         $(gen-locales).
10605         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10606         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10607         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10608         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10609         $(gen-locales).
10610         * libio/tst_wprintf2.c (main): Use explicit locale.
10611         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10612
10613 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10614
10615         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10616         __msg_sig_post.
10617         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10618
10619 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10620
10621         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10622         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10623
10624         * sysdeps/arm/libm-test-ulps: Regenerated.
10625
10626         [BZ #15470]
10627         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10628
10629         [BZ #16399]
10630         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10631         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10632         and <fix-fp-int-convert-overflow.h>.
10633         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10634         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10635         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10636         and <fix-fp-int-convert-overflow.h>.
10637         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10638         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10639         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10640         <fix-fp-int-convert-overflow.h>.
10641         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10642         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10643         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10644         <fix-fp-int-convert-overflow.h>.
10645         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10646         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10647         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10648         and <fix-fp-int-convert-overflow.h>.
10649         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10650         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10651         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10652         <limits.h> and <fix-fp-int-convert-overflow.h>.
10653         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10654         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10655         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10656         and <fix-fp-int-convert-overflow.h>.
10657         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10658         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10659         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10660         and <fix-fp-int-convert-overflow.h>.
10661         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10662         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10663         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10664
10665 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10666
10667         [BZ #18589]
10668         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10669         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10670         $(gen-locales).
10671
10672 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10673             Phil Blundell <pb@pbcl.net>
10674
10675         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10676         * nptl/tst-cancel26.c: New file.
10677         * nptl/tst-cancel27.c: Likewise.
10678
10679 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10680
10681         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10682         __ILP32__ isn't defined.
10683         (lrint): Likewise.
10684         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10685         (lrintf): Likewise.
10686         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10687         (lrintl): Likewise.
10688         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10689         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10690         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10691
10692 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10693
10694         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10695         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10696
10697         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10698         file.
10699         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10700         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10701
10702 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10703
10704         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10705         configure test.
10706         * sysdeps/i386/configure: Regenerated.
10707         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10708         configure test.
10709         * sysdeps/x86_64/configure: Regenerated.
10710         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10711         Make code unconditional.
10712
10713         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10714         test.
10715         * sysdeps/i386/configure: Regenerated.
10716         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10717         test.
10718         * sysdeps/x86_64/configure: Regenerated.
10719         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10720         Make code unconditional.
10721         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10722         Likewise.
10723         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10724         Likewise.
10725         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10726         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10727         code unconditional.
10728         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10729         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10730         code unconditional.
10731         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10732         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10733         code unconditional.
10734         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10735         code unconditional.
10736         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10737         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10738         code unconditional.
10739         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10740         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10741         code unconditional.
10742         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10743         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10744         code unconditional.
10745         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10746         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10747         code unconditional.
10748         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10749         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10750
10751         [BZ #19095]
10752         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10753         mantissa to long int before shifting left.
10754
10755 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10756
10757         [BZ #19094]
10758         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10759         <limits.h>.
10760         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10761         when result overflows but exception would not result from cast.
10762         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10763         <limits.h>.
10764         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10765         when result overflows but exception would not result from cast.
10766         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10767         <limits.h>.
10768         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10769         when result overflows but exception would not result from cast.
10770         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10771         <limits.h>.
10772         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10773         when result overflows but exception would not result from cast.
10774         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10775         <limits.h>.
10776         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10777         when result overflows but exception would not result from cast.
10778         * math/libm-test.inc (lrint_test_data): Add more tests.
10779         (llrint_test_data): Likewise.
10780
10781 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10782
10783         [BZ #18872]
10784         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10785         Move out from under [$(run-built-tests) = yes] conditional.
10786         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10787         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10788
10789 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10790
10791         [BZ #18589]
10792         * string/Makefile (tests): Add bug-strcoll2.
10793         (LOCALES): Add cs_CZ.UTF-8.
10794         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10795
10796         [BZ #18589]
10797         * string/bug-strcoll2.c: New file.
10798         * locale/categories.def: Revert commit
10799         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10800         * locale/langinfo.h: Likewise.
10801         * locale/localeinfo.h: Likewise.
10802         * locale/C-collate.c: Likewise.
10803         * locale/programs/ld-collate.c (collate_output): Likewise.
10804         * string/strcoll_l.c (STRDIFF): Likewise.
10805         (STRCOLL): Likewise.
10806         * wcsmbs/wcscoll_l.c: Likewise.
10807
10808 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10809
10810         * math/libm-test.inc (lround_test_data): Do not expect the absence
10811         of "inexact" for some tests with non-integer arguments.
10812         (llround_test_data): Likewise.
10813
10814         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10815         test.
10816         (libc_cv_cc_sse2avx): Likewise.
10817         * sysdeps/i386/configure: Regenerated.
10818         * sysdeps/i386/i686/multiarch/Makefile
10819         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10820         [$(subdir) = math].
10821         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10822         code unconditional.
10823         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10824         Likewise.
10825         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10826         Likewise.
10827         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10828         Likewise.
10829         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10830         test.
10831         (libc_cv_cc_sse2avx): Likewise.
10832         * sysdeps/x86_64/configure: Regenerated.
10833         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10834         unconditional.
10835         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10836         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10837         unconditional.
10838         (_dl_runtime_profile)
10839         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10840         conditional code.
10841         * sysdeps/x86_64/fpu/multiarch/Makefile
10842         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10843         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10844         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10845         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10846         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10847         * sysdeps/x86_64/fpu/multiarch/e_log.c
10848         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10849         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10850         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10851         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10852         Likewise.
10853         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10854         Likewise.
10855         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10856         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10857         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10858         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10859         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10860         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10861         (HAVE_SSE2AVX_SUPPORT): Likewise.
10862
10863 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10864
10865         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10866         instead of #pragma optimize.
10867
10868 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10869
10870         [BZ #17195]
10871         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10872         as is similarly done in systrim and _int_free already.
10873
10874 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10875
10876         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10877
10878 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10879
10880         [BZ #19088]
10881         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10882         <limits.h>.
10883         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10884         overflows but exception would not result from cast.
10885         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10886         and <limits.h>.
10887         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10888         overflows but exception would not result from cast.
10889         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10890         <limits.h>.
10891         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10892         overflows but exception would not result from cast.
10893         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10894         <limits.h>.
10895         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10896         overflows but exception would not result from cast.
10897         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10898         <limits.h>.
10899         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10900         overflows but exception would not result from cast.
10901         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10902         <limits.h>.
10903         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10904         overflows but exception would not result from cast.
10905         * math/libm-test.inc (lround_test_data): Add more tests.
10906         (llround_test_data): Likewise.
10907
10908 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10909
10910         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10911         (CFLAGS-ialloc.c): Ditto.
10912         (CFLAGS-scheck.c): Ditto.
10913
10914 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10915
10916         [BZ #19086]
10917         * manual/filesys.texi (Storage Allocation): Fix argument order for
10918         posix_fallocate64.
10919
10920 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10921
10922         [BZ #19085]
10923         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10924         exponent below 48 inside case for non-overflowing exponent.
10925         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10926
10927 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10928
10929         * iconvdata/cp737.h (from_idx): Add const.
10930         * iconvdata/cp775.h (from_idx): Likewise.
10931
10932 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10933
10934         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10935         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10936         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10937
10938         [BZ #19079]
10939         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10940         file, conditioned on [!_LP64].
10941         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10942         [!_LP64] (__lround): Do not define as function or alias.
10943         [!_LP64] (lround): Likewise.
10944         [!_LP64] (__lroundl): Likewise.
10945         [!_LP64] (lroundl): Likewise.
10946         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10947         macro.
10948         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10949         Likewise.
10950
10951 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10952
10953         * math/libm-test.inc (lrint_test_data): Add more tests.
10954         (llrint_test_data): Likewise.
10955         (lround_test_data): Likewise.
10956         (llround_test_data): Likewise.
10957
10958         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10959         (llrint_test_data): Add tests used for lrint.
10960
10961         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10962         test.
10963         * sysdeps/i386/configure: Regenerated.
10964         * sysdeps/i386/i686/multiarch/Makefile
10965         [$(config-cflags-sse4) = yes]: Make code unconditional.
10966         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10967         Likewise.
10968         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10969         Likewise.
10970         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10971         test.
10972         * sysdeps/x86_64/configure: Regenerated.
10973         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10974         Make code unconditional.
10975         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10976         Likewise.
10977         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10978         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10979
10980         * scripts/rpm2dynsym.sh: Remove file.
10981
10982 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10983
10984         * configure.ac (libc_cv_cxx_thread_local): Define.
10985         * configure: Regenerate.
10986         * config.make.in (have-cxx-thread_local): Define.
10987         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10988         (LDLIBS-tst-thread_local1): Define.
10989         (tests): Add tst-thread_local1.
10990         [have-cxx-thread_local != yes] (tests-unsupported): Add
10991         tst-thread_local1.
10992         * nptl/tst-thread_local1.cc: New file.
10993
10994 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10995
10996         [BZ #19078]
10997         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10998         (u_thres): Likewise.
10999         (__expl): Determine whether to call __kernel_standard_l based on
11000         value of result, not argument.
11001
11002         * math/libm-test.inc (scalb_test_data): Add more expectations for
11003         the "inexact" exception.
11004
11005         [BZ #19077]
11006         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
11007         0.0L for argument 1.0L.
11008
11009         [BZ #19076]
11010         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
11011         constant 0.0L when computing infinite result.
11012
11013 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11014
11015         [BZ #10432]
11016         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
11017         malloc_usable_size.
11018
11019 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11020
11021         [BZ #19018]
11022         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
11023         Mangle function pointer before storing it.
11024         (__call_tls_dtors): Demangle function pointer before calling it.
11025
11026 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11027
11028         [BZ #19012]
11029         * iconv/gconv_db.c (gen_steps): Check for additional errors.
11030         Clean up on failure.
11031
11032 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
11033
11034         [BZ #19071]
11035         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
11036         long int variable to store possibly incremented high part of
11037         mantissa.
11038         * math/libm-test.inc (lround_test_data): Add tests used for
11039         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
11040         for tests requiring 64-bit long.  Do not condition tests on
11041         [TEST_FLOAT] unnecessarily.
11042         (llround_test_data): Add tests used for lround.  Add another
11043         expectation for the "inexact" exception.  Do not condition tests
11044         on [TEST_FLOAT] unnecessarily.
11045
11046         [BZ #887]
11047         [BZ #19049]
11048         [BZ #19050]
11049         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
11050         * sysdeps/ieee754/dbl-64/e_log10.c: Include
11051         <fix-int-fp-convert-zero.h>.
11052         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11053         * sysdeps/ieee754/dbl-64/e_log2.c: Include
11054         <fix-int-fp-convert-zero.h>.
11055         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11056         * sysdeps/ieee754/dbl-64/s_erf.c: Include
11057         <fix-int-fp-convert-zero.h>.
11058         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11059         * sysdeps/ieee754/dbl-64/s_logb.c: Include
11060         <fix-int-fp-convert-zero.h>.
11061         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11062         * sysdeps/ieee754/flt-32/e_log10f.c: Include
11063         <fix-int-fp-convert-zero.h>.
11064         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11065         * sysdeps/ieee754/flt-32/e_log2f.c: Include
11066         <fix-int-fp-convert-zero.h>.
11067         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11068         * sysdeps/ieee754/flt-32/s_erff.c: Include
11069         <fix-int-fp-convert-zero.h>.
11070         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11071         * sysdeps/ieee754/flt-32/s_logbf.c: Include
11072         <fix-int-fp-convert-zero.h>.
11073         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11074         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
11075         <fix-int-fp-convert-zero.h>.
11076         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11077         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
11078         <fix-int-fp-convert-zero.h>.
11079         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11080         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
11081         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
11082         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
11083         file.
11084         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
11085
11086 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11087
11088         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11089
11090 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
11091
11092         [BZ #19059]
11093         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
11094         overflowing computation.
11095         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11096         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11097         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11098         Likewise.
11099         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11100         Likewise.
11101         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11102         Likewise.
11103         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11104         Likewise.
11105         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11106         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11107         Likewise.
11108         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11109         Likewise.
11110         * math/libm-test.inc (nexttoward_test_data): Add more tests.
11111
11112         * nss/rewrite_field.c (__nss_rewrite_field): Use
11113         internal_function.
11114         * nss/valid_field.c (__nss_valid_field): Likewise.
11115         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
11116
11117 2015-10-02  Florian Weimer  <fweimer@redhat.com>
11118
11119         [BZ #18724]
11120         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
11121         (__nss_invalid_field_characters, __nss_valid_field)
11122         (__nss_valid_list_field, __nss_rewrite_field): Declare.
11123         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
11124         tst-field.c: New file.
11125         * nss/Makefile (routines): Add valid_field, rewrite_field.
11126         (tests-static): Define unconditionally.
11127         (tests): Include tests-static.
11128         [build-static-nss] (tests-static): Use append.
11129         [build-static-nss] (tests): Remove modification.
11130         * nss/getent.c (print_group): Call putgrent.  Report error.
11131         (print_gshadow): Call putsgent.  Report error.
11132         (print_passwd): Call putpwent.  Report error.
11133         (print_shadow): Call putspent.  Report error.
11134         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
11135         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
11136         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
11137         name, password, directory, shell fields for valid syntax.  Rewrite
11138         GECOS field to match syntax.
11139         * pwd/Makefile (tests): Add tst-putpwent.
11140         * pwd/tst-putpwent.c: New file.
11141         * grp/putgrent.c (putgrent): Convert to ISO function definition.
11142         Check grName, grpasswd, gr_mem fields for valid syntax.
11143         Change loop variable i to size_t.
11144         * grp/Makefile (tests): Add tst-putgrent.
11145         * grp/tst-putgrent.c: New file.
11146         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
11147         valid syntax.
11148         * shadow/Makefile (tests): Add tst-putspent.
11149         * shadow/tst-putspent.c: New file.
11150         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
11151         sg_mem fields for valid syntax.
11152         * gshadow/Makefile (tests): Add tst-putsgent.
11153         * gshadow/tst-putsgent.c: New file.
11154
11155 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11156
11157         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
11158         assembly instructions.
11159
11160 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11161
11162         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
11163         prefix from operands.
11164
11165 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
11166
11167         [BZ #16347]
11168         [BZ #19046]
11169         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
11170         <libc-internal.h>.
11171         (MAXLGM): Do not use diagnostic control macros.
11172         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
11173         threshold for ldbl-128ibm.
11174         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
11175         instead of multiplying by log then subtracting.
11176         * math/auto-libm-test-in: Add more tests of lgamma.
11177         * math/auto-libm-test-out: Regenerated.
11178
11179         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
11180         (TYPE_HEX_DIG): Likewise.
11181         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
11182         precisions when printing floating-point numbers.
11183         (check_float_internal): Likewise.
11184
11185 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11186
11187         [BZ #16620]
11188         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
11189         of log (10) rounded downward to 48 bits.
11190         (log10_low): Use corresponding low part of log (10).
11191
11192         [BZ #19032]
11193         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
11194         compute result as (x - x) / (x - x) not as 0 / 0.
11195         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
11196         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
11197
11198         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11199         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
11200         and expm1.
11201         * math/auto-libm-test-out: Regenerated.
11202         * math/libm-test.inc (acos_test_data): Add more tests.
11203         (asin_test_data): Likewise.
11204         (asinh_test_data): Likewise.
11205         (atan_test_data): Likewise.
11206         (atanh_test_data): Likewise.
11207         (atan2_test_data): Likewise.
11208         (cbrt_test_data): Likewise.
11209         (ceil_test_data): Likewise.
11210         (copysign_test_data): Likewise.
11211         (cos_test_data): Likewise.
11212         (cosh_test_data): Likewise.
11213         (erf_test_data): Likewise.
11214         (erfc_test_data): Likewise.
11215         (exp_test_data): Likewise.
11216         (exp10_test_data): Likewise.
11217         (exp2_test_data): Likewise.
11218         (expm1_test_data): Likewise.
11219         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11220
11221 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
11222
11223         [BZ #19006]
11224         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
11225         to ...
11226         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
11227         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
11228         to ...
11229         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
11230         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
11231         to ...
11232         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
11233         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
11234         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
11235         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
11236         to ...
11237         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
11238         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
11239         Moved to ...
11240         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
11241         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11242         Moved to ...
11243         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
11244         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
11245         to ...
11246         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
11247         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
11248         Moved to ...
11249         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
11250         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
11251         to ...
11252         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
11253         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
11254         Removed.
11255         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
11256         Likewise.
11257         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
11258         Likewise.
11259         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
11260         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
11261         Likewise.
11262         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
11263         Likewise.
11264         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
11265         Likewise.
11266         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
11267         Likewise.
11268         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
11269         Likewise.
11270         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
11271         Likewise.
11272         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
11273         Likewise.
11274         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
11275         Likewise.
11276         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
11277         Likewise.
11278         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
11279         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
11280         Likewise.
11281         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
11282         Likewise.
11283         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
11284         Likewise.
11285         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
11286         Likewise.
11287         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
11288         Likewise.
11289         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
11290         Replace ../i486/pthread_cond_timedwait.S with
11291         ../pthread_cond_timedwait.S.
11292
11293 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11294
11295         * math/libm-test.inc (acos_test_data): Refine expectations for
11296         errno and "inexact" exceptions.
11297         (acosh_test_data): Likewise.
11298         (asin_test_data): Likewise.
11299         (asinh_test_data): Likewise.
11300         (atan_test_data): Likewise.
11301         (atanh_test_data): Likewise.
11302         (atan2_test_data): Likewise.
11303         (cbrt_test_data): Likewise.
11304         (ceil_test_data): Likewise.
11305         (copysign_test_data): Likewise.
11306         (cosh_test_data): Likewise.
11307         (erf_test_data): Likewise.
11308         (erfc_test_data): Likewise.
11309         (exp_test_data): Likewise.
11310         (exp10_test_data): Likewise.
11311         (exp2_test_data): Likewise.
11312         (expm1_test_data): Likewise.
11313         (fabs_test_data): Likewise.
11314         (floor_test_data): Likewise.
11315         (fma_test_data): Likewise.
11316         (fmax_test_data): Likewise.
11317         (fmin_test_data): Likewise.
11318         (fmod_test_data): Likewise.
11319         (fpclassify_test_data): Likewise.
11320         (frexp_test_data): Likewise.
11321         (hypot_test_data): Likewise.
11322         (ilogb_test_data): Likewise.
11323         (isgreater_test_data): Likewise.
11324         (isgreaterequal_test_data): Likewise.
11325         (isinf_test_data): Likewise.
11326         (isless_test_data): Likewise.
11327         (islessequal_test_data): Likewise.
11328         (islessgreater_test_data): Likewise.
11329         (isnan_test_data): Likewise.
11330         (isnormal_test_data): Likewise.
11331         (issignaling_test_data): Likewise.
11332         (isunordered_test_data): Likewise.
11333         (j0_test_data): Likewise.
11334         (j1_test_data): Likewise.
11335         (jn_test_data): Likewise.
11336         (lgamma_test_data): Likewise.
11337         (lrint_test_data): Likewise.
11338         (llrint_test_data): Likewise.
11339         (log_test_data): Likewise.
11340         (log10_test_data): Likewise.
11341         (log1p_test_data): Likewise.
11342         (log2_test_data): Likewise.
11343         (logb_test_data): Likewise.
11344         (lround_test_data): Likewise.
11345         (llround_test_data): Likewise.
11346         (modf_test_data): Likewise.
11347         (nearbyint_test_data): Likewise.
11348         (nextafter_test_data): Likewise.
11349         (nexttoward_test_data): Likewise.
11350         (pow_test_data): Likewise.
11351         (remainder_test_data): Likewise.
11352         (remquo_test_data): Likewise.
11353         (rint_test_data): Likewise.
11354         (round_test_data): Likewise.
11355         (signbit_test_data): Likewise.
11356         (sinh_test_data): Likewise.
11357         (sqrt_test_data): Likewise.
11358         (tanh_test_data): Likewise.
11359         (tgamma_test_data): Likewise.
11360         (trunc_test_data): Likewise.
11361         (y0_test_data): Likewise.
11362         (y1_test_data): Likewise.
11363         (yn_test_data): Likewise.
11364         (significand_test_data): Likewise.
11365
11366 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11367
11368         * manual/filesys.texi (Storage Allocation): Document that
11369         posix_fallocate emulation fails when fd is open with O_WRONLY.
11370
11371 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11372
11373         [BZ #19016]
11374         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11375         allow more cases with X^2 + Y^2 >= 0.5.
11376         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11377         normal element in sum instead of special-casing based on values of
11378         arguments.
11379         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11380         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11381         -1 as normal element in sum instead of special-casing based on
11382         values of arguments.
11383         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11384         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11385         (__x2y2m1): Update comment.
11386         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11387         as normal element in sum instead of special-casing based on values
11388         of arguments.
11389         * math/s_clog.c (__clog): Handle more cases using log1p without
11390         hypot.
11391         * math/s_clog10.c (__clog10): Likewise.
11392         * math/s_clog10f.c (__clog10f): Likewise.
11393         * math/s_clog10l.c (__clog10l): Likewise.
11394         * math/s_clogf.c (__clogf): Likewise.
11395         * math/s_clogl.c (__clogl): Likewise.
11396         * math/auto-libm-test-in: Add more tests of clog and clog10.
11397         * math/auto-libm-test-out: Regenerated.
11398         * sysdeps/i386/fpu/libm-test-ulps: Update.
11399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11400
11401 2015-09-28  Martin Sebor  <msebor@redhat.com>
11402
11403         [BZ #18969]
11404         * string/Makefile (LOCALES): Define.
11405         (gen-locales.mk): Include.
11406         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11407         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11408         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11409         on setlocale failure.
11410
11411 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11412
11413         [BZ #18985]
11414         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11415         (__strftime_internal): Likewise.
11416         * time/tst-strftime.c (do_bz18985): New test.
11417         (do_test): Call it.
11418
11419 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11420
11421         [BZ #18956]
11422         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11423         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11424         extracting high part.
11425         * math/auto-libm-test-in: Add another test of pow.
11426         * math/auto-libm-test-out: Regenerated.
11427         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11428
11429 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11430
11431         [BZ #18825]
11432         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11433         New macro.
11434         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11435         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11436         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11437         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11438         DBL_NARROW_EVAL, reloading the PIC register as needed.
11439         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11440         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11441         FLT_NARROW_EVAL.  Use separate return path for case when first
11442         argument is NaN.
11443         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11444         DEFINE_LDBL_MIN.
11445         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11446         PIC register.
11447         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11448         math_check_force_underflow_nonneg.
11449         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11450         underflow for subnormal result.
11451         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11452         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11453         math_check_force_underflow_nonneg.
11454         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11455         math_check_force_underflow.
11456         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11457         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11458         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11459         DEFINE_LDBL_MIN.
11460         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11461         * math/auto-libm-test-in: Add more tests of pow.
11462         * math/auto-libm-test-out: Regenerated.
11463
11464 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11465
11466         * nss/bug17079.c (init_test_items): Add diagnostic for
11467         inconsistent entries.
11468         (test_buffer_size): Skip inconsistent entries.
11469
11470 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11471
11472         [BZ #13304]
11473         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11474         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11475         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11476
11477         [BZ #13304]
11478         * sysdeps/microblaze/s_fma.c: New file.
11479         * sysdeps/microblaze/s_fmaf.c: Likewise.
11480         * sysdeps/microblaze/sfp-machine.h: Likewise.
11481
11482 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11483
11484         [BZ #17250]
11485         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11486         member.
11487
11488 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11489
11490         [BZ #18803]
11491         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11492         (MO): New macro.
11493         (__ieee754_hypot) [PIC]: Load PIC register.
11494         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11495         DBL_NARROW_EVAL.
11496         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11497         math_check_force_underflow_nonneg in case where result might be
11498         tiny.
11499         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11500         Likewise.
11501         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11502         Likewise.
11503         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11504         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11505         * math/auto-libm-test-in: Add more tests of hypot.
11506         * math/auto-libm-test-out: Regenerated.
11507
11508 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11509
11510         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11511
11512 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11513
11514         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11515         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11516         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11517         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11518         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11519         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11520         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11521
11522         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11523         LOAD_PIC_REG.
11524
11525         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11526         (FLT_CHECK_FORCE_UFLOW): Likewise.
11527         (DBL_CHECK_FORCE_UFLOW): Likewise.
11528         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11529         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11530         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11531         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11532         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11533         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11534         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11535         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11536         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11537         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11538         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11539         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11540         (flt_min): Replace with use of DEFINE_FLT_MIN.
11541         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11542         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11543         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11544         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11545         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11546         (flt_min): Replace with use of DEFINE_FLT_MIN.
11547         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11548         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11549         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11550         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11551         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11552         (flt_min): Replace with use of DEFINE_FLT_MIN.
11553         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11554         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11555         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11556         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11557         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11558         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11559         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11560         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11561         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11562         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11563         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11564         (flt_min): Replace with use of DEFINE_FLT_MIN.
11565         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11566         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11567         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11568         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11569         main computation.
11570         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11571         (flt_min): Replace with use of DEFINE_FLT_MIN.
11572         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11573         main computation.
11574         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11575         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11576         (MO): New macro.
11577         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11578         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11579         (flt_min): Replace with use of DEFINE_FLT_MIN.
11580         (MO): New macro.
11581         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11582         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11583         (__log1pl): Use MO.
11584
11585         [BZ #19003]
11586         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11587         $(config-cflags-nofma).
11588
11589 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11590
11591         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11592
11593 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11594
11595         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11596         (TWO127): Likewise.
11597
11598         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11599         (min_of_type): Likewise.
11600         (math_check_force_underflow): Likewise.
11601         (math_check_force_underflow_nonneg): Likewise.
11602         (math_check_force_underflow_complex): Likewise.
11603         * math/e_exp2l.c (__ieee754_exp2l): Use
11604         math_check_force_underflow_nonneg.
11605         * math/k_casinh.c (__kernel_casinh): Likewise.
11606         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11607         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11608         * math/s_catan.c (__catan): Use
11609         math_check_force_underflow_complex.
11610         * math/s_catanf.c (__catanf): Likewise.
11611         * math/s_catanh.c (__catanh): Likewise.
11612         * math/s_catanhf.c (__catanhf): Likewise.
11613         * math/s_catanhl.c (__catanhl): Likewise.
11614         * math/s_catanl.c (__catanl): Likewise.
11615         * math/s_ccosh.c (__ccosh): Likewise.
11616         * math/s_ccoshf.c (__ccoshf): Likewise.
11617         * math/s_ccoshl.c (__ccoshl): Likewise.
11618         * math/s_cexp.c (__cexp): Likewise.
11619         * math/s_cexpf.c (__cexpf): Likewise.
11620         * math/s_cexpl.c (__cexpl): Likewise.
11621         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11622         * math/s_clog10.c (__clog10): Likewise.
11623         * math/s_clog10f.c (__clog10f): Likewise.
11624         * math/s_clog10l.c (__clog10l): Likewise.
11625         * math/s_clogf.c (__clogf): Likewise.
11626         * math/s_clogl.c (__clogl): Likewise.
11627         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11628         * math/s_csinf.c (__csinf): Likewise.
11629         * math/s_csinh.c (__csinh): Likewise.
11630         * math/s_csinhf.c (__csinhf): Likewise.
11631         * math/s_csinhl.c (__csinhl): Likewise.
11632         * math/s_csinl.c (__csinl): Likewise.
11633         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11634         * math/s_csqrtf.c (__csqrtf): Likewise.
11635         * math/s_csqrtl.c (__csqrtl): Likewise.
11636         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11637         * math/s_ctanf.c (__ctanf): Likewise.
11638         * math/s_ctanh.c (__ctanh): Likewise.
11639         * math/s_ctanhf.c (__ctanhf): Likewise.
11640         * math/s_ctanhl.c (__ctanhl): Likewise.
11641         * math/s_ctanl.c (__ctanl): Likewise.
11642         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11643         instead of volatile.
11644         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11645         math_check_force_underflow.
11646         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11647         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11648         volatile when forcing underflow.
11649         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11650         math_check_force_underflow_nonneg.
11651         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11652         Likewise.
11653         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11654         math_check_force_underflow.
11655         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11656         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11657         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11658         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11659         math_check_force_underflow_nonneg.
11660         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11661         math_check_force_underflow.
11662         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11663         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11664         instead of volatile.
11665         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11666         math_check_force_underflow.
11667         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11668         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11669         math_check_force_underflow_nonneg.
11670         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11671         math_check_force_underflow.
11672         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11673         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11674         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11675         math_check_force_underflow_nonneg.
11676         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11677         Likewise.
11678         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11679         math_check_force_underflow.
11680         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11681         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11682         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11683         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11684         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11685         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11686         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11687         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11688         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11689         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11690         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11691         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11692         Likewise.
11693         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11694         math_check_force_underflow_nonneg.
11695         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11696         Likewise.
11697         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11698         math_check_force_underflow.
11699         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11700         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11701         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11702         Likewise.
11703         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11704         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11705         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11706         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11707         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11708         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11709         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11710         instead of volatile.
11711         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11712         math_check_force_underflow.
11713         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11714         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11715         math_check_force_underflow.
11716         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11717         Likewise.
11718         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11719         Use math_check_force_underflow_nonneg.
11720         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11721         math_check_force_underflow.
11722         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11723         Likewise.
11724         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11725         Likewise.
11726         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11727         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11728         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11729         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11730         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11731         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11732         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11733         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11734         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11735         math_check_force_underflow_nonneg.
11736         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11737         math_check_force_underflow.
11738         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11739         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11740         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11741         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11742         math_check_force_underflow_nonneg.
11743         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11744         math_check_force_underflow.
11745         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11746         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11747         instead of volatile.
11748         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11749         math_check_force_underflow.
11750
11751         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11752         * stdlib/strtod_l.c: Include <math_private.h>.
11753         (overflow_value): Use math_narrow_eval.
11754         (underflow_value): Likewise.
11755         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11756         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11757         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11758         (__ieee754_gamma_r): Likewise.
11759         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11760         Likewise.
11761         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11762         Likewise.
11763         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11764         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11765         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11766         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11767         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11768         (__ieee754_gammaf_r): Likewise.
11769         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11770         Likewise.
11771         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11772         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11773         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11774         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11775         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11776         volatile.
11777         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11778         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11779         math_narrow_eval.
11780         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11781         Likewise.
11782         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11783         Likewise.
11784         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11785         Likewise.
11786         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11787         volatile.
11788         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11789         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11790         math_narrow_eval.
11791         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11792         Likewise.
11793         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11794         Likewise.
11795
11796 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11797
11798         * nptl/Versions: Remove ignored symbols.
11799
11800 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11801
11802         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11803         * nss/Makefile (tests): Update.
11804
11805 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11806
11807         * nss/bug18287.c: New file.
11808         * nss/Makefile (tests): Add bug18287.
11809
11810 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11811
11812         * mach/Versions (__mach_host_self_): Add symbol.
11813
11814 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11815
11816         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11817         vm_page_size.
11818
11819 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11820
11821         Really fix sysdeps/i386/fpu/s_scalbn.S build
11822
11823         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11824         (libc: GLIBC_2_22): Remove unused version set.
11825
11826 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11827
11828         * config.make.in (enable-timezone-tools): New variable.
11829         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11830         (enable_timezone_tools): Export to generated files.
11831         * configure: Regenerate.
11832         * INSTALL: Regenerate.
11833         * manual/install.texi (--disable-timezone-tools): Document new flag.
11834         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11835         ifeq ($(enable-timezone-tools),yes) check.
11836
11837 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11838
11839         * timezone/Makefile: Revert previous change.
11840
11841         [BZ #18980]
11842         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11843         (DEFINE_DBL_MIN): Likewise.
11844         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11845         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11846         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11847         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11848         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11849         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11850         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11851         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11852         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11853         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11854         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11855         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11856         (flt_min): Replace with use of DEFINE_FLT_MIN.
11857         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11858         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11859         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11860         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11861         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11862         (flt_min): Replace with use of DEFINE_FLT_MIN.
11863         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11864         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11865         (flt_min): Replace with use of DEFINE_FLT_MIN.
11866         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11867         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11868         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11869         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11870         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11871         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11872         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11873         (__ieee754_pow): Use DBL_NARROW_EVAL.
11874         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11875         (__ieee754_powf): Use FLT_NARROW_EVAL.
11876         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11877         (__ieee754_expf_sse2): Convert double-precision result to single
11878         precision.
11879         * sysdeps/i386/fpu/libm-test-ulps: Update.
11880
11881 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11882
11883         * timezone/Makefile: Ignore unused variable errors due to private.h
11884         (time_t_min) and (time_t_max).
11885         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11886         Likewise.
11887
11888 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11889
11890         [BZ #18981]
11891         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11892         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11893         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11894         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11895         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11896         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11897         (__scalbn): Use DBL_NARROW_EVAL.
11898         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11899         (__scalbnf): Use FLT_NARROW_EVAL.
11900
11901 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11902
11903         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11904         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11905         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11906         * stdio-common/printf_fp.c (___printf_fp):
11907         Use signbit to get the sign. Use isinf macro to allow inlining.
11908         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11909         * stdio-common/printf_size.c (__printf_size): Likewise.
11910
11911 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11912
11913         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11914
11915 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11916
11917         [BZ #18980]
11918         * sysdeps/generic/math_private.h: Include <float.h>.
11919         (math_narrow_eval): New macro.
11920         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11921         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11922         math_narrow_eval on overflowing return value.
11923         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11924         Likewise.
11925         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11926         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11927         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11928         Likewise.
11929         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11930
11931 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11932
11933         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11934         * math/Makefile: Remove isinf_ns.c.
11935         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11936         * math/multc3.c (__multc3): Likewise.
11937         * math/s_casin.c (__casin): Likewise.
11938         * math/s_casinf.c (__casinf): Likewise.
11939         * math/s_casinl.c (__casinl): Likewise.
11940         * math/s_cproj.c (__cproj): Likewise.
11941         * math/s_cprojf.c (__cprojf): Likewise.
11942         * math/s_cprojl.c (__cprofl): Likewise.
11943         * math/s_ctan.c (__ctan): Likewise.
11944         * math/s_ctanf.c (__ctanf): Likewise.
11945         * math/s_ctanh.c (__ctanh): Likewise.
11946         * math/s_ctanhf.c (__ctanhf): Likewise.
11947         * math/s_ctanhl.c (__ctanhl): Likewise.
11948         * math/s_ctanl.c (__ctanl): Likewise.
11949         * math/w_fmod.c (__fmod): Likewise.
11950         * math/w_fmodf.c (__fmodf): Likewise.
11951         * math/w_fmodl.c (_fmodl): Likewise.
11952         * math/w_remainder.c (__remainder): Likewise.
11953         * math/w_remainderf.c (__remainderf): Likewise.
11954         * math/w_remainderl.c (__remainderl): Likewise.
11955         * math/w_scalb.c (__scalb): Likewise.
11956         * math/w_scalbf.c (__scalbf): Likewise.
11957         * math/w_scalbl.c (__scalbl): Likewise.
11958         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11959         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11960         with isinf.
11961         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11962         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11963         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11964         __isinf_nsf with isinf.
11965         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11966         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11967         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11968         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11969         with isinf.
11970         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11971         __isinf_nsl with isinf.
11972         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11973         with isinf.
11974         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11975         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11976         __isinf_nsl with isinf.
11977         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11978         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11979         with isinf.
11980
11981 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11982
11983         * resolv/base64.c (rcsid): Remove unused static.
11984         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11985         static.  (tqpi1): Likewise.
11986         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11987         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11988         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11989         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11990         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11991         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11992         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11993         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11994         Likewise.
11995
11996 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11997
11998         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11999         <nptl/pthreadP.h>.
12000         (_longjmp_unwind): Use __libc_ptf_call.
12001         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
12002
12003 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
12004
12005         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
12006         * sysdeps/arm/__longjmp.S: Likewise.
12007
12008 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12009
12010         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
12011         Use __builtin_signbit.
12012         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
12013         Use __builtin_signbitf.
12014         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
12015         Use __builtin_signbitl.
12016         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
12017         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
12018
12019 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12020
12021         [BZ #15367]
12022         [BZ #17441]
12023
12024         * math/Makefile: Build test-snan.c with -fsignaling-nans.
12025         * math/math.h (fpclassify): Use __builtin_fpclassify when
12026         available.  (signbit): Use __builtin_signbit(f/l).
12027         (isfinite): Use__builtin_isfinite.  (isnormal): Use
12028         __builtin_isnormal.  (isnan): Use __builtin_isnan.
12029         (isinf): Use __builtin_isinf_sign.
12030
12031 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12032
12033         * benchtests/Makefile: Add bench-math-inlines, link with libm.
12034         * benchtests/bench-math-inlines.c: New benchmark.
12035         * benchtests/bench-util.h: New file.
12036         * benchtests/bench-util.c: New file.
12037         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
12038
12039 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
12040
12041         * elf/tst-dlmopen1.c: Define TEST_SO.
12042         (do_test): Use TEST_SO.
12043
12044         * elf/dl-load.c: Include libc-internal.h.
12045         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
12046
12047 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12048
12049         [BZ #17887]
12050         * time/strptime_l.c (__strptime_internal): Make %z accept
12051         [+-]HH:MM time zones.
12052
12053 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12054
12055         [BZ #17886]
12056         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
12057         valid time zone.
12058
12059 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
12060
12061         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
12062         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
12063         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12064         (__ASSUME_FDATASYNC): Delete.
12065
12066 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12067
12068         * conform/linknamespace.pl: Require weak undefined symbols to be
12069         in the standard namespace.
12070         (%strong_syms): Rename to %seen_syms.
12071         (%strong_seen): Rename to %seen_where.
12072
12073 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12074
12075         [BZ #18970]
12076         * misc/error.c (error): Replace pthread_setcancelstate with
12077         __pthread_setcancelstate.
12078         (error_at_line): Likewise.
12079         * posix/wordexp.c (parse_comm): Likewise.
12080         * stdlib/fmtmsg.c (fmtmsg): Likewise.
12081         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
12082         (__pthread_setcancelstate): This.
12083         (pthread_setcancelstate): Add an alias.
12084         * nptl/nptl-init.c (pthread_functions): Replace
12085         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
12086         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
12087         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
12088         hidden_proto.
12089         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
12090         it with hidden_def.
12091         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
12092         (pthread_setcancelstate): Renamed to ...
12093         (__pthread_setcancelstate): This.
12094         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
12095         __libc_ptf_call with __pthread_setcancelstate.
12096
12097 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12098             Andreas Schwab  <schwab@suse.de>
12099
12100         [BZ #17118]
12101         * math/s_ctan.c (__ctan): Determine sign of zero real part of
12102         result when imaginary part of argument is infinite using sine and
12103         cosine.
12104         * math/s_ctanf.c (__ctanf): Likewise.
12105         * math/s_ctanl.c (__ctanl): Likewise.
12106         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
12107         of result when real part of argument is infinite using sine and
12108         cosine.
12109         * math/s_ctanhf.c (__ctanhf): Likewise.
12110         * math/s_ctanhl.c (__ctanhl): Likewise.
12111         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
12112         (ctanh_test_data): Add more tests of ctanh.
12113
12114 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12115
12116         [BZ #15384]
12117         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
12118         bit-mask as in subtraction.
12119         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
12120         Likewise.
12121         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
12122         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
12123         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
12124
12125         [BZ #18951]
12126         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
12127         underflow exception for small results.
12128         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12129         Likewise.
12130         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12131         Likewise.
12132         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12133         Likewise.
12134         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12135         Likewise.
12136         * math/auto-libm-test-in: Add more tests of tgamma.
12137         * math/auto-libm-test-out: Regenerated.
12138
12139 2015-09-17  Andreas Schwab  <schwab@suse.de>
12140
12141         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
12142
12143 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12144
12145         [BZ #18977]
12146         * math/bits/mathcalls.h
12147         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
12148         not declare.
12149         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
12150         Likewise.
12151         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
12152         Likewise.
12153         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
12154         Likewise.
12155         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
12156         Likewise.
12157         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
12158         Likewise.
12159         * conform/data/math.h-data
12160         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
12161         function.
12162         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
12163         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
12164         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
12165         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
12166         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
12167         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
12168         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
12169         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
12170         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
12171         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
12172         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
12173
12174         [BZ #6803]
12175         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
12176         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
12177         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
12178         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
12179         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
12180         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
12181         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
12182         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
12183         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12184         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
12185         Likewise.
12186         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12187         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
12188         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
12189         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
12190         long_double_symbol calls.
12191         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
12192         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
12193         strong alias of __ldexpl.
12194         (scalbnl): Define using long_double_symbol.
12195         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
12196         Remove alias.
12197         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
12198         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
12199         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
12200         (scalbln_test_data): Add more errno expectations.
12201
12202 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
12203
12204         Cache the host port like we cache the task port.  This way we do not
12205         need to call the kernel just to get the port.  Furthermore, we no
12206         longer increase the reference count on every invocation of
12207         `mach_host_self'.
12208
12209         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
12210         Protect declarations against the macro expansion.
12211         * mach/mach_init.c (__mach_host_self_): New variable.
12212         (mach_init): Initialize `__mach_host_self_'.
12213         * mach/mach_init.h (__mach_host_self_): New declaration.
12214         (__mach_host_self, mach_host_self): New macros.
12215         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
12216         Release reference.
12217
12218 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12219
12220         [BZ #4404]
12221         * po/de.po: Update from Translation Project.
12222
12223         [BZ #16415]
12224         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
12225         (__expm1l): Remove code to handle positive infinity and overflow.
12226         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
12227         variable.
12228         (__expm1l): Remove code to handle positive infinity and overflow.
12229
12230 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12231             Paul Pluzhnikov  <ppluzhnikov@google.com>
12232
12233         [BZ #18872]
12234         * stdio-common/Makefile (tst-printf-bz18872): New test.
12235         (tst-printf-bz18872-mem.out): Likewise.
12236         * stdio-common/tst-printf-bz18872.sh: Generate new test.
12237         * stdio-common/vfprintf.c: Fix memory leaks.
12238
12239 2015-09-16  Andreas Schwab  <schwab@suse.de>
12240
12241         [BZ #17244]
12242         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
12243         Remove extra va_start/va_end calls.
12244
12245         [BZ #17243]
12246         * posix/execl.c (execl): Add missing va_end.
12247         * posix/execle.c (execle): Likewise.
12248         * posix/execlp.c (execlp): Likewise.
12249
12250 2015-09-15  Roland McGrath  <roland@hack.frob.com>
12251
12252         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
12253         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
12254
12255 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
12256
12257         [BZ #18967]
12258         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
12259         undefine around includes of <bits/mathcalls.h>.
12260         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
12261         not declare function.
12262         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
12263         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
12264         (scalb): Likewise.
12265         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
12266         not define macro.
12267         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
12268         variable.
12269         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
12270         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
12271         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
12272
12273         [BZ #18857]
12274         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
12275         return non-finite argument without doing ordered comparisons on
12276         it.
12277
12278         [BZ #16296]
12279         * math/fenv.h (fegetround): Use __attribute_pure__.
12280         * include/fenv.h (__fegetround): Likewise.
12281
12282         [BZ #18595]
12283         * math/s_ctan.c (__ctan): Force underflow exception for results
12284         whose real or imaginary part has small absolute value.
12285         * math/s_ctanf.c (__ctanf): Likewise.
12286         * math/s_ctanh.c (__ctanh): Likewise.
12287         * math/s_ctanhf.c (__ctanhf): Likewise.
12288         * math/s_ctanhl.c (__ctanhl): Likewise.
12289         * math/s_ctanl.c (__ctanl): Likewise.
12290         * math/auto-libm-test-in: Do not allow missing underflow for ctan
12291         and ctanh.  Add more tests of ctan and ctanh.
12292
12293         [BZ #15918]
12294         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
12295         handling of cases where one argument is an infinity.
12296
12297         [BZ #18875]
12298         [BZ #18966]
12299         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
12300         (MO): New macro.
12301         (__ieee754_exp10): For small results, force underflow exception
12302         and remove excess range and precision from return value.
12303         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
12304         (MO): New macro.
12305         (__ieee754_exp10f): For small results, force underflow exception
12306         and remove excess range and precision from return value.
12307         * math/auto-libm-test-in: Add more tests of exp10.
12308         * math/auto-libm-test-out: Regenerated.
12309
12310 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
12311
12312         [BZ #18875]
12313         [BZ #18961]
12314         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
12315         (MO): New macro.
12316         (__ieee754_exp): For small results, force underflow exception and
12317         remove excess range and precision from return value.
12318         (__exp_finite): Likewise.
12319         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
12320         (MO): New macro.
12321         (__ieee754_expf): For small results, force underflow exception and
12322         remove excess range and precision from return value.
12323         (__expf_finite): Likewise.
12324         * math/auto-libm-test-in: Add more tests of exp.
12325         * math/auto-libm-test-out: Regenerated.
12326
12327         [BZ #16521]
12328         [BZ #18875]
12329         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
12330         small results.
12331         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
12332         (MO): New macro.
12333         (__ieee754_exp2): For small results, force underflow exception and
12334         remove excess range and precision from return value.
12335         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
12336         (MO): New macro.
12337         (__ieee754_exp2f): For small results, force underflow exception
12338         and remove excess range and precision from return value.
12339         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
12340         (MO): New macro.
12341         (__ieee754_exp2l): Force underflow exception for small results.
12342         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
12343         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
12344         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
12345         (MO): New macro.
12346         (__ieee754_exp2l): Force underflow exception for small results.
12347         * math/auto-libm-test-in: Add more tests or exp2.
12348         * math/auto-libm-test-out: Regenerated.
12349
12350 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
12351
12352         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
12353
12354         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
12355         /dev/null.
12356
12357 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12358
12359         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12360         io fs process)): Drop spurious backslash.
12361
12362 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12363
12364         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12365         Use sysinfo system call instead of parsing /proc/meminfo.
12366         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12367         Likewise.
12368
12369 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12370
12371         [BZ #16985]
12372         * programs/localedef.c (main): Display argv[remaining] when
12373         output_path is NULL.
12374
12375 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12376
12377         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12378         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12379         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12380         tanh.
12381         * math/auto-libm-test-out: Regenerated.
12382         * sysdeps/i386/fpu/libm-test-ulps: Update.
12383         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12384         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12386
12387 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12388
12389         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12390         Use 'override' keyword to freeze the value here, preventing
12391         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12392
12393 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12394
12395         [BZ #14912]
12396         * sysdeps/aarch64/bits/atomic.h: Move to ...
12397         * sysdeps/aarch64/atomic-machine.h: ...here.
12398         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12399         _AARCH64_ATOMIC_MACHINE_H.
12400         * sysdeps/alpha/bits/atomic.h: Move to ...
12401         * sysdeps/alpha/atomic-machine.h: ...here.
12402         * sysdeps/arm/bits/atomic.h: Move to ...
12403         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12404         * bits/atomic.h: Move to ...
12405         * sysdeps/generic/atomic-machine.h: ...here.
12406         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12407         * sysdeps/i386/bits/atomic.h: Move to ...
12408         * sysdeps/i386/atomic-machine.h: ...here.
12409         * sysdeps/ia64/bits/atomic.h: Move to ...
12410         * sysdeps/ia64/atomic-machine.h: ...here.
12411         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12412         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12413         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12414         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12415         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12416         * sysdeps/microblaze/bits/atomic.h: Move to ...
12417         * sysdeps/microblaze/atomic-machine.h: ...here.
12418         * sysdeps/mips/bits/atomic.h: Move to ...
12419         * sysdeps/mips/atomic-machine.h: ...here.
12420         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12421         * sysdeps/powerpc/bits/atomic.h: Move to ...
12422         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12423         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12424         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12425         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12426         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12427         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12428         <atomic-machine.h> instead of <bits/atomic.h>.
12429         * sysdeps/s390/bits/atomic.h: Move to ...
12430         * sysdeps/s390/atomic-machine.h: ...here.
12431         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12432         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12433         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12434         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12435         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12436         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12437         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12438         * sysdeps/tile/bits/atomic.h: Move to ...
12439         * sysdeps/tile/atomic-machine.h: ...here.
12440         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12441         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12442         <sysdeps/tile/atomic-machine.h> instead of
12443         <sysdeps/tile/bits/atomic.h>.
12444         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12445         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12446         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12447         <sysdeps/tile/atomic-machine.h> instead of
12448         <sysdeps/tile/bits/atomic.h>.
12449         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12450         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12451         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12452         <sysdeps/arm/atomic-machine.h> instead of
12453         <sysdeps/arm/bits/atomic.h>.
12454         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12455         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12456         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12457         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12458         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12459         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12460         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12461         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12462         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12463         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12464         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12465         * sysdeps/x86_64/bits/atomic.h: Move to ...
12466         * sysdeps/x86_64/atomic-machine.h: ...here.
12467         * include/atomic.h: Include <atomic-machine.h> instead of
12468         <bits/atomic.h>.
12469
12470         * sysdeps/mips/mips32/libm-test-ulps: Update.
12471         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12472
12473         [BZ #18952]
12474         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12475         not convert non-integer negative arguments to int to determine the
12476         value of signgam.
12477         * math/auto-libm-test-in: Add more tests of lgamma.
12478         * math/auto-libm-test-out: Regenerated.
12479
12480         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12481         cosh, csqrt, erfc, expm1 and lgamma.
12482         * math/auto-libm-test-out: Regenerated.
12483         * sysdeps/i386/fpu/libm-test-ulps: Update.
12484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12485
12486 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12487
12488         [BZ #2542]
12489         [BZ #2543]
12490         [BZ #2558]
12491         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12492         __lgamma_neg for arguments from -28.0 to -2.0.
12493         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12494         __lgamma_negf for arguments from -15.0 to -2.0.
12495         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12496         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12497         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12498         Call __lgamma_negl for arguments from -33.0 to -2.0.
12499         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12500         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12501         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12502         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12503         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12504         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12505         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12506         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12507         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12508         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12509         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12510         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12511         (__lgamma_neg): Likewise.
12512         (__lgamma_negl): Likewise.
12513         (__lgamma_product): Likewise.
12514         (__lgamma_productl): Likewise.
12515         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12516         * math/auto-libm-test-in: Add more tests of lgamma.
12517         * math/auto-libm-test-out: Regenerated.
12518         * sysdeps/i386/fpu/libm-test-ulps: Update.
12519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12520
12521 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12522
12523         [BZ #18675]
12524         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12525
12526 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12527
12528         [BZ #14912]
12529         * bits/libc-lock.h: Move to ...
12530         * sysdeps/generic/libc-lock.h: ...here.
12531         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12532         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12533         * sysdeps/mach/hurd/libc-lock.h: ...here.
12534         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12535         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12536         * sysdeps/mach/bits/libc-lock.h: Move to ...
12537         * sysdeps/mach/libc-lock.h: ...here.
12538         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12539         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12540         * sysdeps/nptl/libc-lock.h: ...here.
12541         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12542         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12543         * sysdeps/nptl/libc-lockP.h: ...here.
12544         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12545         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12546         <bits/libc-lock.h>.
12547         * dirent/scandir-tail.c: Likewise.
12548         * dlfcn/dlerror.c: Likewise.
12549         * elf/dl-close.c: Likewise.
12550         * elf/dl-iteratephdr.c: Likewise.
12551         * elf/dl-lookup.c: Likewise.
12552         * elf/dl-open.c: Likewise.
12553         * elf/dl-support.c: Likewise.
12554         * elf/dl-writev.h: Likewise.
12555         * elf/rtld.c: Likewise.
12556         * grp/fgetgrent.c: Likewise.
12557         * gshadow/fgetsgent.c: Likewise.
12558         * gshadow/sgetsgent.c: Likewise.
12559         * iconv/gconv_conf.c: Likewise.
12560         * iconv/gconv_db.c: Likewise.
12561         * iconv/gconv_dl.c: Likewise.
12562         * iconv/gconv_int.h: Likewise.
12563         * iconv/gconv_trans.c: Likewise.
12564         * include/link.h: Likewise.
12565         * inet/getnameinfo.c: Likewise.
12566         * inet/getnetgrent.c: Likewise.
12567         * inet/getnetgrent_r.c: Likewise.
12568         * intl/bindtextdom.c: Likewise.
12569         * intl/dcigettext.c: Likewise.
12570         * intl/finddomain.c: Likewise.
12571         * intl/gettextP.h: Likewise.
12572         * intl/loadmsgcat.c: Likewise.
12573         * intl/localealias.c: Likewise.
12574         * intl/textdomain.c: Likewise.
12575         * libidn/idn-stub.c: Likewise.
12576         * libio/libioP.h: Likewise.
12577         * locale/duplocale.c: Likewise.
12578         * locale/freelocale.c: Likewise.
12579         * locale/newlocale.c: Likewise.
12580         * locale/setlocale.c: Likewise.
12581         * login/getutent_r.c: Likewise.
12582         * login/getutid_r.c: Likewise.
12583         * login/getutline_r.c: Likewise.
12584         * login/utmp-private.h: Likewise.
12585         * login/utmpname.c: Likewise.
12586         * malloc/mtrace.c: Likewise.
12587         * misc/efgcvt.c: Likewise.
12588         * misc/error.c: Likewise.
12589         * misc/fstab.c: Likewise.
12590         * misc/getpass.c: Likewise.
12591         * misc/mntent.c: Likewise.
12592         * misc/syslog.c: Likewise.
12593         * nis/nis_call.c: Likewise.
12594         * nis/nis_callback.c: Likewise.
12595         * nis/nss-default.c: Likewise.
12596         * nis/nss_compat/compat-grp.c: Likewise.
12597         * nis/nss_compat/compat-initgroups.c: Likewise.
12598         * nis/nss_compat/compat-pwd.c: Likewise.
12599         * nis/nss_compat/compat-spwd.c: Likewise.
12600         * nis/nss_nis/nis-alias.c: Likewise.
12601         * nis/nss_nis/nis-ethers.c: Likewise.
12602         * nis/nss_nis/nis-grp.c: Likewise.
12603         * nis/nss_nis/nis-hosts.c: Likewise.
12604         * nis/nss_nis/nis-network.c: Likewise.
12605         * nis/nss_nis/nis-proto.c: Likewise.
12606         * nis/nss_nis/nis-pwd.c: Likewise.
12607         * nis/nss_nis/nis-rpc.c: Likewise.
12608         * nis/nss_nis/nis-service.c: Likewise.
12609         * nis/nss_nis/nis-spwd.c: Likewise.
12610         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12611         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12612         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12613         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12614         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12615         * nis/nss_nisplus/nisplus-network.c: Likewise.
12616         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12617         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12618         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12619         * nis/nss_nisplus/nisplus-service.c: Likewise.
12620         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12621         * nis/ypclnt.c: Likewise.
12622         * nptl/libc_pthread_init.c: Likewise.
12623         * nss/getXXbyYY.c: Likewise.
12624         * nss/getXXent.c: Likewise.
12625         * nss/getXXent_r.c: Likewise.
12626         * nss/nss_db/db-XXX.c: Likewise.
12627         * nss/nss_db/db-netgrp.c: Likewise.
12628         * nss/nss_db/nss_db.h: Likewise.
12629         * nss/nss_files/files-XXX.c: Likewise.
12630         * nss/nss_files/files-alias.c: Likewise.
12631         * nss/nsswitch.c: Likewise.
12632         * posix/regex_internal.h: Likewise.
12633         * posix/wordexp.c: Likewise.
12634         * pwd/fgetpwent.c: Likewise.
12635         * resolv/res_hconf.c: Likewise.
12636         * resolv/res_libc.c: Likewise.
12637         * shadow/fgetspent.c: Likewise.
12638         * shadow/lckpwdf.c: Likewise.
12639         * shadow/sgetspent.c: Likewise.
12640         * socket/opensock.c: Likewise.
12641         * stdio-common/reg-modifier.c: Likewise.
12642         * stdio-common/reg-printf.c: Likewise.
12643         * stdio-common/reg-type.c: Likewise.
12644         * stdio-common/vfprintf.c: Likewise.
12645         * stdio-common/vfscanf.c: Likewise.
12646         * stdlib/abort.c: Likewise.
12647         * stdlib/cxa_atexit.c: Likewise.
12648         * stdlib/fmtmsg.c: Likewise.
12649         * stdlib/random.c: Likewise.
12650         * stdlib/setenv.c: Likewise.
12651         * string/strsignal.c: Likewise.
12652         * sunrpc/auth_none.c: Likewise.
12653         * sunrpc/bindrsvprt.c: Likewise.
12654         * sunrpc/create_xid.c: Likewise.
12655         * sunrpc/key_call.c: Likewise.
12656         * sunrpc/rpc_thread.c: Likewise.
12657         * sysdeps/arm/backtrace.c: Likewise.
12658         * sysdeps/generic/ldsodefs.h: Likewise.
12659         * sysdeps/generic/stdio-lock.h: Likewise.
12660         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12661         * sysdeps/i386/backtrace.c: Likewise.
12662         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12663         * sysdeps/m68k/backtrace.c: Likewise.
12664         * sysdeps/mach/hurd/cthreads.c: Likewise.
12665         * sysdeps/mach/hurd/dirstream.h: Likewise.
12666         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12667         * sysdeps/nptl/malloc-machine.h: Likewise.
12668         * sysdeps/nptl/stdio-lock.h: Likewise.
12669         * sysdeps/posix/dirstream.h: Likewise.
12670         * sysdeps/posix/getaddrinfo.c: Likewise.
12671         * sysdeps/posix/system.c: Likewise.
12672         * sysdeps/pthread/aio_suspend.c: Likewise.
12673         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12674         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12675         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12676         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12677         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12678         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12679         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12680         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12681         * sysdeps/unix/sysv/linux/system.c: Likewise.
12682         * sysdeps/x86_64/backtrace.c: Likewise.
12683         * time/alt_digit.c: Likewise.
12684         * time/era.c: Likewise.
12685         * time/tzset.c: Likewise.
12686         * wcsmbs/wcsmbsload.c: Likewise.
12687         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12688         instead of <bits/libc-lock.h> in comment.
12689
12690 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12691
12692         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12693         Only use .set mips2 if the current ISA is below mips2.
12694         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12695         Likewise.
12696         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12697         mips32r2 if the current ISA is below mips32r2.
12698         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12699         (TLS_IE): Updated to use the TLD_RDHWR macro.
12700         (TLS_LE): Likewise.
12701         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12702         __ASSEMBLER__ condition.
12703
12704 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12705
12706         Fix parallel build of before-compile targets.
12707
12708         * sysdeps/mach/Makefile ($(patsubst
12709         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12710         mach-before-compile target.
12711         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12712         io fs process)): Move rule to dedicated hurd-before-compile target.
12713
12714 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12715
12716         Fix rules generating headers in hurd/ and mach/ when initial make call
12717         has subdir= explicitly set.
12718
12719         * sysdeps/mach/Makefile ($(patsubst
12720         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12721         calling $(MAKE).
12722         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12723         io fs process)): Force subdir to hurd when calling $(MAKE).
12724         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12725         subdir to mach when calling $(MAKE).
12726
12727 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12728
12729         Check sysheaders when looking for Mach and Hurd headers
12730
12731         * sysdeps/mach/configure.ac: Add sysheaders check.
12732         * sysdeps/mach/configure: Regenerate.
12733         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12734         * sysdeps/mach/hurd/configure: Regenerate.
12735
12736 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12737
12738         [BZ #18921]
12739         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12740         Fix inverted sense of test of 'o_directory_works' value.
12741         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12742         Bernhard Voelker <mail@bernhard-voelker.de>.
12743
12744 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12745
12746         [BZ #14912]
12747         * bits/linkmap.h: Move to ...
12748         * sysdeps/generic/linkmap.h: ...here.
12749         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12750         * sysdeps/aarch64/linkmap.h: ...here.
12751         * sysdeps/arm/bits/linkmap.h: Move to ...
12752         * sysdeps/arm/linkmap.h: ...here.
12753         * sysdeps/hppa/bits/linkmap.h: Move to ...
12754         * sysdeps/hppa/linkmap.h: ...here.
12755         * sysdeps/ia64/bits/linkmap.h: Move to ...
12756         * sysdeps/ia64/linkmap.h: ...here.
12757         * sysdeps/mips/bits/linkmap.h: Move to ...
12758         * sysdeps/mips/linkmap.h: ...here.
12759         * sysdeps/s390/bits/linkmap.h: Move to ...
12760         * sysdeps/s390/linkmap.h: ...here.
12761         * sysdeps/sh/bits/linkmap.h: Move to ...
12762         * sysdeps/sh/linkmap.h: ...here.
12763         * sysdeps/x86/bits/linkmap.h: Move to ...
12764         * sysdeps/x86/linkmap.h: ...here.
12765         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12766
12767 2015-09-04  Andreas Schwab  <schwab@suse.de>
12768
12769         [BZ #18635]
12770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12771         (__makecontext): Terminate FDE before return label.
12772         (__novec_makecontext): Likewise.
12773
12774 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12775
12776         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12777         first member of struct sv in syscall macro.
12778
12779 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12780
12781         [BZ #14912]
12782         * bits/stdio-lock.h: Move to ...
12783         * sysdeps/generic/stdio-lock.h: ...here.
12784         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12785         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12786         * sysdeps/nptl/stdio-lock.h: ...here.
12787         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12788         * include/libio.h: Include <stdio-lock.h> instead of
12789         <bits/stdio-lock.h>.
12790         * sysdeps/nptl/fork.c: Likewise.
12791         * sysdeps/pthread/flockfile.c: Likewise.
12792         * sysdeps/pthread/ftrylockfile.c: Likewise.
12793         * sysdeps/pthread/funlockfile.c: Likewise.
12794
12795         [BZ #14912]
12796         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12797         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12798         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12799         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12800         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12801         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12802         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12803
12804 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12805
12806         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12807         (test-xfail-tst-protected1b): New variable.
12808
12809 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12810
12811         [BZ #14912]
12812         * bits/libc-tsd.h: Move to ...
12813         * sysdeps/generic/libc-tsd.h: ...here.
12814         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12815         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12816         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12817         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12818         * include/ctype.h: Include <libc-tsd.h> instead of
12819         <bits/libc-tsd.h>.
12820         * include/rpc/rpc.h: Likewise.
12821         * locale/localeinfo.h: Likewise.
12822         * sunrpc/rpc_thread.c: Likewise.
12823         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12824         * sysdeps/nptl/malloc-machine.h: Likewise.
12825
12826         * Makefile (headers): Remove bits/libc-lock.h.
12827         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12828
12829         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12830         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12831         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12832         <bits/stdio-lock.h>.
12833         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12834         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12835
12836 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12837
12838         [BZ #18757]
12839         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12840         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12841         BZ #18757.
12842
12843 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12844
12845         * malloc/mtrace.pl: Filter out NULL entries.
12846
12847 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12848
12849         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12850         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12851         macro.
12852
12853         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12854         (TCP_CC_INFO): Likewise.
12855         (TCP_SAVE_SYN): Likewise.
12856         (TCP_SAVED_SYN): Likewise.
12857
12858 2015-08-31  Brett Neumeier <brett@neumeier.us>
12859
12860         [BZ #18870]
12861         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12862
12863 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12864
12865         [BZ #18873]
12866         Fix broken overflow check in posix_fallocate
12867         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12868         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12869         Fix parenthesization typo.
12870
12871 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12872
12873         [BZ #18887]
12874         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12875         tst-mntent-blank-passno.
12876         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12877         * misc/tst-mntent-blank-corrupt.c: New test.
12878         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12879         * misc/tst-mntent.c (do_test): ... here.
12880
12881 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12882
12883         [BZ #4404]
12884         * po/de.po: Fix SIGALRM typo.
12885
12886 2015-08-28  James Perkins  <james@loowit.net>
12887
12888         * time/tst-strptime2.c (tests): Replace short list of test
12889         strings for strptime %z specifier with code which exhaustively
12890         tests every combination of sign and 0 to 5 digits. Tests for
12891         rejection of invalid strings.
12892
12893 2015-08-28  James Perkins  <james@loowit.net>
12894
12895         [BZ #16141]
12896         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12897         calculation, removing incorrect decimal time rounding, so that
12898         all minute values result in a valid seconds value.
12899         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12900         offset range limits to UTC-99:59 through UTC+99:59 to parse
12901         current and historical use cases.
12902         * time/tst-strptime2.c (tests): Modify and add tests for the
12903         strptime %z input field descriptor, specifically conversion of
12904         minutes to seconds and validating an offset range of -9959 to
12905         +9959.
12906
12907 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12908             Dmitry V. Levin  <ldv@altlinux.org>
12909
12910         [BZ #18877]
12911         * posix/Makefile (tests): Add tst-mmap-offset.
12912         * posix/tst-mmap.c: New file.
12913         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12914         offset calculation for negative values.
12915
12916 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12917
12918         * sysdeps/i386/init-arch.h: New file.
12919         * sysdeps/i386/i586/init-arch.h: Likewise.
12920         * sysdeps/i386/i686/init-arch.h: Likewise.
12921         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12922         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12923         * sysdeps/x86/cpu-features.h (bit_I586): New.
12924         (bit_I686): Likewise.
12925         (bit_CX8): Likewise.
12926         (bit_CMOV): Likewise.
12927         (index_CX8): Likewise.
12928         (index_CMOV): Likewise.
12929         (index_I586): Likewise.
12930         (index_I686): Likewise.
12931         (reg_CX8): Likewise.
12932         (reg_CMOV): Likewise.
12933         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12934         available at compile-time.
12935         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12936         available at compile-time.
12937         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12938         (USE_I686): Likewise.
12939
12940 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12941
12942         * sysdeps/i386/bcopy.S: New file.
12943         * sysdeps/i386/bzero.S: Likewise.
12944         * sysdeps/i386/memcpy.S: Likewise.
12945         * sysdeps/i386/memmove.S: Likewise.
12946         * sysdeps/i386/mempcpy.S: Likewise.
12947         * sysdeps/i386/memset.S: Likewise.
12948         * sysdeps/i386/bzero.c: Removed.
12949         * sysdeps/i386/memset.c: Likewise.
12950         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12951         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12952         * sysdeps/i386/i586/memset_chk.S: Likewise.
12953         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12954         * sysdeps/i386/memcpy_chk.S: Here.
12955         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12956         * sysdeps/i386/memmove_chk.S: Here.
12957         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12958         * sysdeps/i386/mempcpy_chk.S: Likewise.
12959         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12960         * sysdeps/i386/memset_chk.S: Likewise.
12961
12962 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12963
12964         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12965         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12966         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12967         * soft-fp/fmadf4.c: Ditto.
12968         * soft-fp/fmatf4.c: Ditto.
12969
12970 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12971
12972         * sysdeps/i386/i586/Implies: Removed.
12973         * sysdeps/i386/i686/Implies: Likewise.
12974
12975 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12976
12977         * sysdeps/i386/i486/strlen.S: Moved to ...
12978         * sysdeps/i386/strlen.S: Here.
12979
12980 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12981
12982         * sysdeps/i386/i486/strcat.S: Moved to ...
12983         * sysdeps/i386/strcat.S: Here.
12984
12985 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12986
12987         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12988         * sysdeps/i386/pthread_spin_trylock.S: Here.
12989         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12990         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12991
12992 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12993
12994         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12995         * sysdeps/i386/string-inlines.c: Here.
12996
12997 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12998
12999         * sysdeps/i386/i486/htonl.S: Moved ...
13000         * sysdeps/i386/htonl.S: here.
13001
13002 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13003
13004         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
13005         * sysdeps/i386/bits/atomic.h: Here.
13006
13007 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13008
13009         * sysdeps/i386/i486/Versions: Removed.
13010
13011 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
13012
13013         [BZ #2898]
13014         * misc/mktemp.c: Add mkdtemp to the link_warning message.
13015         Based on patch by Aurelien Jarno.
13016
13017 2015-08-26  Stan Shebs  <stanshebs@google.com>
13018
13019         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
13020         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
13021
13022 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13023
13024         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
13025         * sysdeps/powerpc/dl-procinfo.c:
13026         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
13027         feature so it shows when LD_SHOW_AUXV=1.
13028
13029 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13030
13031         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13032         (__arch_compare_and_exchange_val_32_acq): Remove and use common
13033         definition.  ISA 2.07B no longer requires full sync.
13034
13035 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
13036
13037         [BZ #18863]
13038         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
13039         (si_call_addr): Define.
13040         (si_syscall): Define.
13041         (si_arch): Define.
13042
13043 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13044
13045         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
13046         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
13047         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
13048         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13049         (__memset_zero_constant_len_parameter): New.
13050         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
13051         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13052         (__memset_zero_constant_len_parameter): Don't define if
13053         __memset_chk or USE_AS_BZERO are defined.
13054
13055         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
13056         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
13057         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
13058
13059         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
13060         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
13061         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
13062         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
13063         comments.
13064         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
13065         -mno-mmx for $(all-rtld-routines).
13066         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
13067         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
13068         i386.
13069
13070 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
13071
13072         * sysdeps/generic/unwind.h
13073         (_Unwind_Word): Use __mode__(__unwind_word__)
13074         instead of __mode__(__word__).
13075         (_Unwind_Sword): Likewise.
13076
13077         * sysdeps/s390/s390-64/utf8-utf16-z9.c
13078         (MAX_NEEDED_INPUT): New define.
13079         (MAX_NEEDED_OUTPUT): New define.
13080
13081         * NEWS: New item for IBM z13 string optimizations.
13082
13083         * sysdeps/s390/multiarch/memrchr-c.c: New File.
13084         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
13085         * sysdeps/s390/multiarch/memrchr.c: Likewise.
13086         * sysdeps/s390/multiarch/Makefile
13087         (sysdep_routines): Add memrchr functions.
13088         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13089         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
13090
13091         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
13092         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
13093         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
13094         * sysdeps/s390/multiarch/Makefile
13095         (sysdep_routines): Add wmemcmp functions.
13096         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13097         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
13098         * benchtests/bench-wmemcmp.c: New File.
13099         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
13100
13101         * sysdeps/s390/multiarch/wmemset-c.c: New File.
13102         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
13103         * sysdeps/s390/multiarch/wmemset.c: Likewise.
13104         * sysdeps/s390/multiarch/Makefile
13105         (sysdep_routines): Add wmemset functions.
13106         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13107         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
13108         * wcsmbs/wmemset.c: Use WMEMSET if defined.
13109         * string/test-memset.c: Add wmemset support.
13110         * wcsmbs/test-wmemset.c: New File.
13111         * wcsmbs/Makefile (strop-tests): Add wmemset.
13112         * benchtests/bench-memset.c: Add wmemset support.
13113         * benchtests/bench-wmemset.c: New File.
13114         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
13115
13116         * sysdeps/s390/multiarch/memccpy-c.c: New File.
13117         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
13118         * sysdeps/s390/multiarch/memccpy.c: Likewise.
13119         * sysdeps/s390/multiarch/Makefile
13120         (sysdep_routines): Add memccpy functions.
13121         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13122         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
13123         * string/memccpy.c: Use MEMCCPY if defined.
13124
13125         * sysdeps/s390/multiarch/memchr-vx.S: New File.
13126         * sysdeps/s390/multiarch/memchr.c: Likewise.
13127         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
13128         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
13129         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
13130         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
13131         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
13132         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
13133         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
13134         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
13135         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
13136         and rawmemchr functions.
13137         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13138         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
13139         and wmemchr.
13140         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
13141         * string/test-memchr.c: Add wmemchr support.
13142         * wcsmbs/test-wmemchr.c: New File.
13143         * wcsmbs/Makefile (strop-tests): Add wmemchr.
13144         * benchtests/bench-memchr.c: Add wmemchr support.
13145         * benchtests/bench-wmemchr.c: New File.
13146         * benchtests/Makefile (wcsmbs-bench): wmemchr.
13147
13148         * sysdeps/s390/multiarch/strcspn-c.c: New File.
13149         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
13150         * sysdeps/s390/multiarch/strcspn.c: Likewise.
13151         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
13152         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
13153         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
13154         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
13155         wcscspn functions.
13156         * sysdeps/s390/multiarch/ifunc-impl-list.c
13157         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
13158         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
13159         * string/test-strcspn.c: Add wcscspn support.
13160         * wcsmbs/test-wcscspn.c: New File.
13161         * wcsmbs/Makefile (strop-tests): Add wcscspn.
13162         * benchtests/bench-strcspn.c: Add wcscspn support.
13163         * benchtests/bench-wcscspn.c: New File.
13164         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
13165
13166         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
13167         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
13168         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13169         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
13170         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
13171         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13172         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
13173         wcspbrk functions.
13174         * sysdeps/s390/multiarch/ifunc-impl-list.c
13175         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
13176         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
13177         * string/test-strpbrk.c: Add wcspbrk support.
13178         * wcsmbs/test-wcspbrk.c: New File.
13179         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
13180         * benchtests/bench-strpbrk.c: Add wcspbrk support.
13181         * benchtests/bench-wcspbrk.c: New File.
13182         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
13183
13184         * sysdeps/s390/multiarch/strspn-c.c: New File.
13185         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
13186         * sysdeps/s390/multiarch/strspn.c: Likewise.
13187         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
13188         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
13189         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13190         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
13191         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
13192         wcsspn functions.
13193         * sysdeps/s390/multiarch/ifunc-impl-list.c
13194         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
13195         * string/test-strspn.c: Add wcsspn support.
13196         * wcsmbs/test-wcsspn.c: New File.
13197         * wcsmbs/Makefile (strop-tests): Add wcsspn.
13198         * benchtests/bench-strspn.c: Add wcsspn support.
13199         * benchtests/bench-wcsspn.c: New File.
13200         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
13201
13202         * sysdeps/s390/multiarch/strrchr-c.c: New File.
13203         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
13204         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13205         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
13206         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
13207         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
13208         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
13209         wcsrchr functions.
13210         * sysdeps/s390/multiarch/ifunc-impl-list.c
13211         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
13212         * benchtests/bench-wcsrchr.c: New File.
13213         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
13214
13215         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
13216         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
13217         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
13218         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
13219         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
13220         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
13221         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
13222         wcschrnul functions.
13223         * sysdeps/s390/multiarch/ifunc-impl-list.c
13224         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
13225         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
13226         * string/test-strchr.c: Add wcschrnul support.
13227         * wcsmbs/test-wcschrnul.c: New File.
13228         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
13229         * benchtests/bench-strchr.c: Add wcschrnul support.
13230         * benchtests/bench-wcschrnul.c: New File.
13231         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
13232
13233         * sysdeps/s390/multiarch/strchr-c.c: New File.
13234         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
13235         * sysdeps/s390/multiarch/strchr.c: Likewise.
13236         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
13237         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
13238         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13239         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
13240         wcschr functions.
13241         * sysdeps/s390/multiarch/ifunc-impl-list.c
13242         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
13243         * string/strchr.c (STRCHR): Define and use macro.
13244         * benchtests/bench-wcschr.c: New File.
13245         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
13246
13247         * sysdeps/s390/multiarch/strncmp-c.c: New File.
13248         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
13249         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13250         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
13251         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
13252         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
13253         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
13254         wcsncmp functions.
13255         * sysdeps/s390/multiarch/ifunc-impl-list.c
13256         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
13257         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
13258         * benchtests/bench-strncmp.c: Add wcsncmp support.
13259         * benchtests/bench-wcsncmp.c: New File.
13260         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
13261
13262         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
13263         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13264         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
13265         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
13266         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13267         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
13268         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
13269         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
13270         wcscmp functions.
13271         * sysdeps/s390/multiarch/ifunc-impl-list.c
13272         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
13273         * string/strcmp.c (STRCMP): Define and use macro.
13274         * benchtests/bench-wcscmp.c: New File.
13275         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
13276         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
13277         instead of _HAVE_STRING_ARCH_memchr.
13278
13279         * sysdeps/s390/multiarch/strncat-c.c: New File.
13280         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
13281         * sysdeps/s390/multiarch/strncat.c: Likewise.
13282         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
13283         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
13284         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
13285         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
13286         wcsncat functions.
13287         * sysdeps/s390/multiarch/ifunc-impl-list.c
13288         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
13289         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
13290         * string/test-strncat.c: Add wcsncat support.
13291         * wcsmbs/test-wcsncat.c: New File.
13292         * wcsmbs/Makefile (strop-tests): Add wcsncat.
13293         * benchtests/bench-strncat.c: Add wcsncat support.
13294         * benchtests/bench-wcsncat.c: New File.
13295         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
13296
13297         * sysdeps/s390/multiarch/strcat-c.c: New File.
13298         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
13299         * sysdeps/s390/multiarch/strcat.c: Likewise.
13300         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
13301         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
13302         * sysdeps/s390/multiarch/wcscat.c: Likewise.
13303         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
13304         wcscat functions.
13305         * sysdeps/s390/multiarch/ifunc-impl-list.c
13306         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
13307         * string/strcat.c (STRCAT): Define and use macro.
13308         * wcsmbs/wcscat.c: Use WCSCAT if defined.
13309         * string/test-strcat.c: Add wcscat support.
13310         * wcsmbs/test-wcscat.c: New File.
13311         * wcsmbs/Makefile (strop-tests): Add wcscat.
13312         * benchtests/bench-strcat.c: Add wcscat support.
13313         * benchtests/bench-wcscat.c: New File.
13314         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
13315
13316         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
13317         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
13318         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13319         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
13320         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
13321         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
13322         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
13323         wcpncpy functions.
13324         * sysdeps/s390/multiarch/ifunc-impl-list.c
13325         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
13326         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
13327         * string/test-stpncpy.c: Add wcpncpy support.
13328         * wcsmbs/test-wcpncpy.c: New File.
13329         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
13330         * benchtests/bench-stpncpy.c: Add wcpncpy support.
13331         * benchtests/bench-wcpncpy.c: New File.
13332         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
13333
13334         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
13335         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13336         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
13337         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
13338         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
13339         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
13340         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
13341         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
13342         wcsncpy functions.
13343         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
13344         * sysdeps/s390/multiarch/ifunc-impl-list.c
13345         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
13346         * string/test-strncpy.c: Add wcsncpy support.
13347         * wcsmbs/test-wcsncpy.c: New File.
13348         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
13349         * benchtests/bench-strncpy.c: Add wcsncpy support.
13350         * benchtests/bench-wcsncpy.c: New File.
13351         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
13352
13353         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
13354         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
13355         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13356         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
13357         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
13358         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
13359         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
13360         wcpcpy functions.
13361         * string/stpcpy.c: Use STPCPY if defined.
13362         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
13363         * sysdeps/s390/multiarch/ifunc-impl-list.c
13364         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13365         * string/test-stpcpy.c: Add wcpcpy support.
13366         * wcsmbs/test-wcpcpy.c: New File.
13367         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13368         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13369         * benchtests/bench-wcpcpy.c: New File.
13370         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13371
13372         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13373         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13374         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13375         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13376         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13377         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13378         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13379         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13380         wcscpy functions.
13381         * sysdeps/s390/multiarch/ifunc-impl-list.c
13382         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13383         * benchtests/bench-wcscpy.c: New File.
13384         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13385
13386         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13387         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13388         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13389         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13390         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13391         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13392         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13393         wcsnlen functions.
13394         * sysdeps/s390/multiarch/ifunc-impl-list.c
13395         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13396         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13397         * string/test-strnlen.c: Add wcsnlen support.
13398         * wcsmbs/test-wcsnlen.c: New File.
13399         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13400         * benchtests/bench-strnlen.c: Add wcsnlen support.
13401         * benchtests/bench-wcsnlen.c: New File.
13402         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13403
13404         * sysdeps/s390/multiarch/Makefile: New File.
13405         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13406         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13407         * sysdeps/s390/multiarch/strlen.c: Likewise.
13408         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13409         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13410         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13411         * string/strlen.c (STRLEN): Define and use macro.
13412         * sysdeps/s390/multiarch/ifunc-impl-list.c
13413         (IFUNC_VX_IMPL): New macro function.
13414         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13415         * benchtests/Makefile (wcsmbs-bench): New variable.
13416         (string-bench-all): Added wcsmbs-bench.
13417         * benchtests/bench-wcslen.c: New File.
13418
13419         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13420         s390_vx_libc_ifunc2): New macro function.
13421
13422         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13423         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13424         assembler support.
13425         * sysdeps/s390/configure: Regenerated.
13426
13427         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13428         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13429
13430         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13431         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13432         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13433
13434         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13435         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13436         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13437         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13438         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13439         (memcmp, bcmp): Use __memcmp_default as alias source.
13440         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13441         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13442         Rename to __memcmp_default.
13443         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13444         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13445         (memcpy): Use __memcpy_default as alias source.
13446         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13447         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13448         Rename to __memcpy_default.
13449         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13450         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13451         (memset): Use __memset_default as alias source.
13452         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13453         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13454         Rename to __memset_default.
13455         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13456         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13457         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13458         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13459         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13460         (memcmp, bcmp): Use __memcmp_default as alias source.
13461         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13462         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13463         Rename to __memcmp_default.
13464         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13465         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13466         (memcpy): Use __memcpy_default as alias source.
13467         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13468         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13469         Rename to __memcpy_default.
13470         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13471         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13472         (memset): Use __memset_default as alias source.
13473         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13474         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13475         Rename to __memset_default.
13476         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13477         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13478
13479         [BZ #18610]
13480         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13481         __ieee_instruction_pointer to __unused.
13482         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13483         __ieee_instruction_pointer.
13484         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13485         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13486         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13487         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13488         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13489         Mark dxc-field as reserved.
13490
13491 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13492
13493         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13494         if the weak reference is not null.
13495
13496 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13497
13498         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13499
13500         [BZ #11214]
13501         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13502
13503 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13504
13505         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13506         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13507         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13508         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13509         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13510         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13511         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13512         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13513         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13514         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13515         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13516         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13517         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13518         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13519         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13520         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13521         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13522         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13523
13524 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13525
13526         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13527         register other than r0 for tabort, it has special meaning.
13528         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13529         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13530         transaction before starting syscall.
13531
13532 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13533
13534         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13535
13536 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13537
13538         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13539
13540         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13541         * sysdeps/x86_64/rtld-memset.S: Likewise.
13542         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13543         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13544         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13545         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13546
13547         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13548
13549 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13550
13551         * debug/strcpy_chk.c: Improve performance.
13552         * debug/stpcpy_chk.c: Likewise.
13553         * sysdeps/x86_64/strcpy_chk.S: Remove.
13554         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13555
13556         [BZ #18240]
13557         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13558
13559 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13560
13561         [BZ #15128]
13562         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13563         ifuncmain8.
13564         (modules-names): Add ifuncmod8.
13565         ($(objpfx)ifuncmain8): New rule.
13566         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13567         <cpuid.h>.
13568         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13569         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13570         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13571         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13572         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13573         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13574         * sysdeps/x86_64/ifuncmain8.c: New file.
13575         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13576         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13577         Removed.
13578         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13579         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13580         Change rtld_savespace_sse to __glibc_unused2.
13581         (RTLD_CHECK_FOREIGN_CALL): Removed.
13582         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13583         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13584         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13585
13586 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13587
13588         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13589
13590 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13591
13592         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13593         Unconditionally set __fpcr to avoid uninialized warning.
13594         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13595
13596 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13597
13598         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13599         is corrupt.
13600
13601         * malloc/arena.c (arena_get2): Drop unused argument.
13602         (arena_lock): Adjust.
13603         (arena_get_retry): Likewise.
13604
13605 2015-08-24  Andreas Schwab  <schwab@suse.de>
13606
13607         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13608         Don't define.
13609         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13610         (__ASSUME_IPC64): Don't undef.
13611         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13612         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13613         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13614         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13615         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13616         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13617         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13618         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13619         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13620         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13621         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13622         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13623         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13624         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13625         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13626         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13627         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13628         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13629         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13630         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13631         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13632
13633 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13634
13635         * manual/Makefile (install): Only build manual when perl is available.
13636
13637 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13638
13639         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13640         '#undef memcpy' by '#undef memchr'.
13641
13642 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13643
13644         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13645         memchr not point to the internal __GI_memchr implementation.
13646
13647 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13648
13649         * timezone/Makefile (CFLAGS-zdump.c): Remove
13650         -Wno-strict-prototypes.
13651         (CFLAGS-zic.c): Likewise.
13652         (CFLAGS-ialloc.c): Likewise.
13653         (CFLAGS-scheck.c): Likewise.
13654
13655         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13656         -Wno-error=undef.
13657
13658 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13659
13660         * i386/i686/multiarch/strcasestr-c.c: Removed.
13661         * x86_64/multiarch/strcasestr.c: Likewise.
13662         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13663         Remove strcasestr.
13664
13665 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13666
13667         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13668
13669         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13670         variables for high and low parts before possibly modifying them.
13671
13672 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13673
13674         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13675         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13676         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13677         of "multiarch/init-arch.h".
13678         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13679         * sysdeps/x86/init-arch.h: This.
13680
13681 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13682
13683         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13684         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13685
13686 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13687
13688         [BZ #17787]
13689         * manual/macros.texi: Add twoexp macro.
13690         * manual/filesys.texi: Fix exponents.
13691         * manual/llio.texi: Likewise.
13692         * manual/stdio.texi: Likewise.
13693
13694 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13695
13696         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13697         incorrect use.
13698
13699 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13700
13701         [BZ #18370]
13702         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13703         whose real or imaginary part has small absolute value.
13704         * math/s_csqrtf.c (__csqrtf): Likewise.
13705         * math/s_csqrtl.c (__csqrtl): Likewise.
13706         * math/auto-libm-test-in: Add more tests of csqrt.
13707         * math/auto-libm-test-out: Regenerated.
13708         * sysdeps/i386/fpu/libm-test-ulps: Update.
13709
13710 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13711
13712         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13713         __ppc_set_ppr_very_low): New functions.
13714         * manual/platform.texi: Add documentation about
13715         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13716
13717 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13718
13719         * string/stpncpy.c (stpncpy): Improve performance using
13720         __strnlen/memcpy/memset.
13721
13722 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13723
13724         [BZ #18796]
13725         * scripts/test-installation.pl: Don't add -lmvec to build options if
13726         libmvec wasn't built.
13727
13728 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13729
13730         [BZ #14341]
13731         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13732         case when there is a gap between DT_REL and DT_JMPREL sections.
13733         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13734         (LDFLAGS-tst-split-dynreloc): New.
13735         (tst-split-dynreloc-ENV): Likewise.
13736         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13737         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13738
13739 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13740
13741         [BZ #18822]
13742         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13743         attribute_hidden.
13744         (__xstat64_conv): Likewise.
13745         (__xstat32_conv): Likewise.
13746
13747 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13748
13749         [BZ #18822]
13750         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13751         Don't load %ebx when calling __setcontext.  Call __setcontext
13752         with HIDDEN_JUMPTARGET.
13753         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13754         libc_hidden_def.
13755
13756 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13757
13758         * sysdeps/i386/i686/Makefile
13759         [$(subdir) == string] (sysdep_routines): Moved to ...
13760         * sysdeps/i386/Makefile: Here.
13761         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13762         * sysdeps/i386/cacheinfo.c: Here.
13763         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13764         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13765         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13766         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13767
13768 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13769
13770         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13771         __i586__ is defined.
13772         (HAS_I686): Defined to 1 if __i686__ is defined.
13773
13774 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13775
13776         * elf/Makefile [$(have-z-execstack) = yes]
13777         (CPPFLAGS-tst-execstack.c): New variable.
13778
13779         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13780         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13781         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13782         UTMPX || _HAVE_UT_TV].
13783         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13784         UTMPX || _HAVE_UT_TV - 0].
13785
13786 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13787
13788         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13789         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13790         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13791
13792 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13793
13794         * sysdeps/powerpc/dl-procinfo.c:
13795         (_dl_powerpc_cap_flags): Added missing strings for some
13796         hwcap features.
13797         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13798
13799 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13800
13801         Port the 0x7efe...feff pattern to GCC 6.
13802         See Steve Ellcey's bug report in:
13803         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13804         * string/memrchr.c (MEMRCHR):
13805         * string/rawmemchr.c (RAWMEMCHR):
13806         * string/strchr.c (strchr):
13807         * string/strchrnul.c (STRCHRNUL):
13808         Rewrite code to avoid issues with signed shift overflow.
13809
13810 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13811
13812         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13813         whether cpuid is available only if HAS_CPUID is 0.
13814         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13815         (HAS_I586): Likewise.
13816         (HAS_I686): Likewise.
13817
13818 2015-08-18  Zack Weinberg  <zackw@panix.com>
13819
13820         * misc/Versions (libc): Add GLIBC_2.23.
13821
13822 2015-08-18  Alan Modra  <amodra@gmail.com>
13823
13824         [BZ #18421]
13825         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13826         .Lp__global.
13827         (_start): Load %dp via .Lp__global.
13828         [!SHARED]: Use .section .rodata.
13829
13830 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13831
13832         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13833         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13834
13835 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13836
13837         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13838         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13839
13840 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13841
13842         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13843         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13844
13845 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13846
13847         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13848         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13849
13850 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13851
13852         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13853         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13854
13855 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13856
13857         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13858         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13859
13860 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13861
13862         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13863
13864 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13865
13866         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13867         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13868         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13869         (__ASSUME_LWS_CAS): Delete.
13870
13871 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13872
13873         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13874         * sysdeps/hppa/configure: Regenerated.
13875         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13876         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13877         * sysdeps/hppa/nptl/tls.h: Likewise.
13878
13879 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13880
13881         [BZ #18823]
13882         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13883         for scaling up small arguments.
13884         * math/s_csqrtf.c (__csqrtf): Likewise.
13885         * math/s_csqrtl.c (__csqrtl): Likewise.
13886         * math/auto-libm-test-in: Add more tests of csqrt.
13887         * math/auto-libm-test-out: Regenerated.
13888
13889 2015-08-17  Andreas Schwab  <schwab@suse.de>
13890
13891         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13892         version set GLIBC_2.19.
13893
13894 2015-08-16  Zack Weinberg  <zackw@panix.com>
13895
13896         [BZ #18681]
13897         * misc/regexp.h: This interface is no longer supported.
13898         Remove all contents, leaving only an #error directive.
13899         * misc/regexp.c (loc1, loc2, locs, step, advance):
13900         Demote to compatibility symbols.
13901
13902 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13903
13904         [BZ #18084]
13905         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13906         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13907         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13908         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13909         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13910         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13911         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13912         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13913         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13914
13915 2015-08-15  Zack Weinberg  <zackw@panix.com>
13916
13917         [BZ #18795]
13918         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13919         buffer length is known to be too large, not if it's known to be
13920         small enough.
13921         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13922         overflow at runtime, involving a length parameter, twice: once
13923         with a compile-time constant length parameter, once without.
13924
13925 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13926
13927         [BZ #18824]
13928         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13929         scaling x * y up instead of down.
13930         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13931         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13932         * math/auto-libm-test-in: Add more tests of fma.
13933         * math/auto-libm-test-out: Regenerated.
13934
13935 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13936
13937         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13938
13939 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13940
13941         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13942         unnecessary movq.
13943         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13944         Likewise.
13945
13946 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13947
13948         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13949         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13950         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13951         and tgamma.
13952         * math/auto-libm-test-out: Regenerated.
13953         * sysdeps/i386/fpu/libm-test-ulps: Update.
13954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13955
13956         [BZ #16520]
13957         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13958         (__tanh): Force underflow exception for arguments with small
13959         absolute value.
13960         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13961         (__tanhf): Force underflow exception for arguments with small
13962         absolute value.
13963         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13964         (__tanhl): Force underflow exception for arguments with small
13965         absolute value.
13966         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13967         (__tanhl): Force underflow exception for arguments with small
13968         absolute value.
13969         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13970         (__tanhl): Force underflow exception for arguments with small
13971         absolute value.
13972         * math/auto-libm-test-in: Add more tests of tanh.
13973         * math/auto-libm-test-out: Regenerated.
13974         * sysdeps/i386/fpu/libm-test-ulps: Update.
13975
13976 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13977
13978         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13979         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13980
13981 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13982
13983         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13984         <cpuid.h>.
13985
13986 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13987
13988         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13989         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13990
13991 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13992
13993         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13994         Remove $(objpfx)init-arch.o.
13995         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13996         init-arch.
13997         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13998         (INIT_ARCH_EXT): Defined as empty.
13999         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
14000         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
14001         __init_cpu_features call.  Replace HAS_XXX with
14002         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14003         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
14004         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
14005         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
14006         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
14007         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14008         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
14009         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
14010         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14011         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
14012         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
14013         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14014         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
14015         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
14016         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14017         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
14018         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
14019         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14020         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14021         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
14022         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
14023         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14024         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
14025         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
14026         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14027         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
14028         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
14029         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14030         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
14031         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
14032         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14033         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
14034         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
14035         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14036         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
14037         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
14038
14039 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14040
14041         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
14042         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14043         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14044         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14045         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
14046         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
14047         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
14048         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
14049         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
14050         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
14051         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
14052         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
14053         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14054         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14055         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14056         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14057         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14058         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14059         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14060         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14061         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14062         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14063         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14064         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14065         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14066         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14067         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14068         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14069         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14070         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14071         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14072         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14073         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14074         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14075         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14076         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14077         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14078         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14079         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14080         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14081         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14082         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14083         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14084
14085 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14086
14087         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
14088         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14089         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14090         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14091         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14092         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
14093         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14094         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
14095         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14096         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14097         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14098         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
14099         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
14100         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
14101         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
14102         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
14103         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
14104         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
14105         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
14106         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
14107         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
14108         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
14109         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
14110         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14111         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14112         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
14113         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
14114         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
14115         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14116         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14117         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14118         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14119         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14120         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14121         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14122         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14123         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14124         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14125         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14126         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14127         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14128         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14129         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14130
14131 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14132
14133         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
14134         (dl_platform_init): Call init_cpu_features.
14135         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
14136         * sysdeps/i386/i686/cacheinfo.c
14137         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
14138         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
14139         * sysdeps/i386/i686/multiarch/Versions: Removed.
14140         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
14141         Removed.
14142         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
14143         * sysdeps/unix/sysv/linux/x86/Makefile
14144         (libpthread-sysdep_routines): Remove init-arch.
14145         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
14146         <sysdeps/x86_64/dl-procinfo.c> instead of
14147         sysdeps/generic/dl-procinfo.c>.
14148         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
14149         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
14150         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
14151         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
14152         [$(subdir) == elf] (tests-static): Add
14153         tst-get-cpu-features-static.
14154         * sysdeps/x86/Versions: New file.
14155         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
14156         * sysdeps/x86/cpu-features.c: Likewise.
14157         * sysdeps/x86/cpu-features.h: Likewise.
14158         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
14159         * sysdeps/x86/libc-start.c: Likewise.
14160         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
14161         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
14162         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
14163         * sysdeps/x86_64/dl-procinfo.c: Likewise.
14164         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
14165         Assume USE_MULTIARCH is defined and don't check it.
14166         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
14167         (is_amd): Likewise.
14168         (max_cpuid): Likewise.
14169         (intel_check_word): Likewise.
14170         (__cache_sysconf): Don't call __init_cpu_features.
14171         (__x86_preferred_memory_instruction): Removed.
14172         (init_cacheinfo): Don't call __init_cpu_features. Replace
14173         __cpu_features with GLRO(dl_x86_cpu_features).
14174         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
14175         (dl_platform_init): Call init_cpu_features.
14176         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
14177         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
14178         * sysdeps/x86_64/multiarch/Versions: Removed.
14179         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
14180         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
14181         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
14182         Removed.
14183         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
14184
14185 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14186
14187         [BZ #18820]
14188         * libio/Makefile (test-fmemopen-mem): New test.
14189         * libio/test-fmemopen.c (do_bz18820): New test.
14190         * libio/fmemopen.c (__fmemopen): Fix memory leak.
14191         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
14192
14193 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14194
14195         [BZ #16734]
14196         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
14197         (FREE_BUF): Delete.
14198         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
14199         * libio/genops.c (_IO_setb): Use malloc and free directly.
14200         (_IO_default_doallocate, _IO_default_finish): Likewise.
14201         ( _IO_unbuffer_all): Likewise.
14202         ( libc_freeres_fn): Likewise.
14203         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14204         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
14205         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
14206         (_IO_wdefault_doallocate): Likewise.
14207
14208 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14209
14210         [BZ #18086]
14211         * sysdeps/posix/nice.c (nice): Restore old errno.
14212         * posix/tst-nice.c (do_test): Add test for BZ #18086.
14213
14214 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
14215
14216         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
14217
14218 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14219
14220         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
14221         __bcopy and add a weak_alias to bcopy.
14222         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
14223         for static build.
14224
14225         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
14226         cleanup macro usage.
14227         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
14228         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
14229         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
14230         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
14231         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
14232         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
14233         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
14234         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14235         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14236         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
14237         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14238         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
14239         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14240         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
14241         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
14242         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
14243         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
14244         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
14245         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14246
14247         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
14248         libc_hidden_def.
14249         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
14250
14251         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
14252         (sysdep_routines): Add strstr-ppc64.
14253         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
14254
14255 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
14256
14257         [BZ #18778]
14258         * elf/Makefile (tests): Add Add tst-nodelete2.
14259         (modules-names): Add tst-nodelete2mod.
14260         (tst-nodelete2mod.so-no-z-defs): New.
14261         ($(objpfx)tst-nodelete2): Likewise.
14262         ($(objpfx)tst-nodelete2.out): Likewise.
14263         (LDFLAGS-tst-nodelete2): Likewise.
14264         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
14265         out of loop through all loaded libraries.
14266         * elf/tst-nodelete2.c: New file.
14267         * elf/tst-nodelete2mod.c: Likewise.
14268         * elf/tst-znodelete-zlib.cc: Delete.
14269
14270 2015-08-11  Andreas Schwab  <schwab@suse.de>
14271
14272         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
14273         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
14274         (__openat64_nocancel): Likewise.
14275
14276 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
14277
14278         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
14279         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
14280         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
14281         * math/auto-libm-test-out: Regenerated.
14282         * sysdeps/i386/fpu/libm-test-ulps: Update.
14283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14284
14285 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14286
14287         [BZ #18790]
14288         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
14289         threshold for returning +/- 1.
14290         * math/auto-libm-test-in: Add more tests of tanh.
14291         * math/auto-libm-test-out: Regenerated.
14292         * sysdeps/i386/fpu/libm-test-ulps: Update.
14293
14294 2015-08-10  Andreas Schwab  <schwab@suse.de>
14295
14296         [BZ #18781]
14297         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
14298         MORE_OFLAGS to oflag.
14299         * io/test-lfs.c (do_test): Test openat64.
14300
14301 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14302
14303         [BZ #18789]
14304         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
14305         smaller threshold for returning the argument.
14306         * math/auto-libm-test-in: Add more tests of sinh.
14307         * math/auto-libm-test-out: Regenerated.
14308         * sysdeps/i386/fpu/libm-test-ulps: Update.
14309
14310 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14311
14312         [BZ #18674]
14313         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
14314         break.
14315
14316 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
14317
14318         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
14319         (generated): Don't add $(addprefix z.,$(tzfiles)).
14320
14321 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14322
14323         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
14324         * scripts/sysd-rules.awk: Likewise.
14325
14326 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14327
14328         * iconvdata/tst-tables.sh: Change echo -n to printf.
14329         * nss/db-Makefile: Likewise.
14330         * posix/tst-getconf.sh: Likewise.
14331         * stdio-common/tst-unbputc.sh: Likewise.
14332
14333 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14334
14335         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
14336         MADV_*_PAGES defines behind this feature check.
14337
14338 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
14339
14340         [BZ #18480]
14341         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
14342         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
14343         Define.
14344         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
14345         LOAD_REGS_5, LOAD_REGS_6): Update.
14346         (INTERNAL_SYSCALL): Update using new LOAD defines.
14347         (INTERNAL_SYSCALL_NCS): Likewise.
14348         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
14349
14350 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14351
14352         [BZ #16734]
14353         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
14354
14355 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14356
14357         [BZ #17905]
14358         * catgets/Makefile (tst-catgets-mem): New test.
14359         * catgets/catgets.c (catopen): Don't use unbounded alloca.
14360         * catgets/open_catalog.c (__open_catalog): Likewise.
14361         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
14362
14363 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14364
14365         [BZ #18787]
14366         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14367         clobber registers.
14368         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14369         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14370         Cast return to __typeof (oldval).
14371
14372 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14373
14374         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14375         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14376         and delete sys/syscall.h include.
14377
14378 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14379
14380         [BZ #16517]
14381         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14382         (tan): Force underflow exception for arguments with small absolute
14383         value.
14384         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14385         (__kernel_tanf): Force underflow exception for arguments with
14386         small absolute value.
14387         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14388         (__kernel_tanl): Force underflow exception for arguments with
14389         small absolute value.
14390         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14391         (__kernel_tanl): Force underflow exception for arguments with
14392         small absolute value.
14393         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14394         (__kernel_tanl): Force underflow exception for arguments with
14395         small absolute value.
14396         * math/auto-libm-test-in: Add more tests of tan.
14397         * math/auto-libm-test-out: Regenerated.
14398
14399 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14400
14401         Fix sysdeps/i386/fpu/s_scalbn.S build
14402
14403         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14404
14405 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14406
14407         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14408
14409 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14410
14411         Fix gcrt0.o compilation
14412
14413         When static-start-installed-name is different from
14414         start-installed-name, we must not use the shared objects.
14415
14416         * csu/Makefile
14417         (extra-objs): Add gmon-start.o when building shared library and
14418         $(static-start-installed-name) is different from
14419         $(start-installed-name).
14420         $(objpfx)g$(static-start-installed-name): When building shared
14421         library and $(static-start-installed-name) is different from
14422         $(static-start-installed-name), revert to non-shared rule,
14423         i.e. using $(objpfx)% and gmon-start.o.
14424
14425 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14426
14427         [BZ #16519]
14428         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14429         (__ieee754_sinh): Force underflow exception for arguments with
14430         small absolute value.
14431         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14432         (__ieee754_sinhf): Force underflow exception for arguments with
14433         small absolute value.
14434         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14435         (__ieee754_sinhl): Force underflow exception for arguments with
14436         small absolute value.
14437         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14438         (__ieee754_sinhl): Force underflow exception for arguments with
14439         small absolute value.
14440         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14441         (__ieee754_sinhl): Force underflow exception for arguments with
14442         small absolute value.
14443         * math/auto-libm-test-in: Add more tests of sinh.
14444         * math/auto-libm-test-out: Regenerated.
14445         * sysdeps/i386/fpu/libm-test-ulps: Update.
14446
14447 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14448
14449         * libio/oldfileops.c: Include unistd.h.
14450
14451 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14452
14453         * stdlib/isomac.c: Include ctype.h.
14454
14455 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14456
14457         * dirent/tst-seekdir.c (main): Converted to ...
14458         (do_test): ... this.
14459         (TEST_FUNCTION): New macro.
14460         Include test-skeleton.c.
14461         * elf/tst-dlmodcount.c (main): Converted to ...
14462         (do_test): ... this.
14463         (TEST_FUNCTION): New macro.
14464         Include test-skeleton.c.
14465         * elf/tst-order-main.c (main): Converted to ...
14466         (do_test): ... this.
14467         (TEST_FUNCTION): New macro.
14468         Include test-skeleton.c.
14469         * elf/tst-pie2.c (main): Converted to ...
14470         (do_test): ... this.
14471         (TEST_FUNCTION): New macro.
14472         Include test-skeleton.c.
14473         * inet/tst-ether_aton.c (main): Converted to ...
14474         (do_test): ... this.
14475         (TEST_FUNCTION): New macro.
14476         Include test-skeleton.c.
14477         * misc/tst-mntent.c (main): Converted to ...
14478         (do_test): ... this.
14479         (TEST_FUNCTION): New macro.
14480         Include test-skeleton.c.
14481         * misc/tst-tsearch.c (main): Converted to ...
14482         (do_test): ... this.
14483         (TEST_FUNCTION): New macro.
14484         Include test-skeleton.c.
14485         * posix/tst-regexloc.c (main): Converted to ...
14486         (do_test): ... this.
14487         (TEST_FUNCTION): New macro.
14488         Include test-skeleton.c.
14489         * resolv/tst-aton.c (main): Converted to ...
14490         (do_test): ... this.
14491         (TEST_FUNCTION): New macro.
14492         Include test-skeleton.c.
14493         * stdio-common/test-fwrite.c (main): Converted to ...
14494         (do_test): ... this.
14495         (TEST_FUNCTION): New macro.
14496         Include test-skeleton.c.
14497         * stdio-common/tst-ferror.c (main): Converted to ...
14498         (do_test): ... this.
14499         (TEST_FUNCTION): New macro.
14500         Include test-skeleton.c.
14501         * stdio-common/tst-printf.c (main): Converted to ...
14502         (do_test): ... this.
14503         (TEST_FUNCTION): New macro.
14504         Include test-skeleton.c.
14505         * stdio-common/tst-printfsz.c (main): Converted to ...
14506         (do_test): ... this.
14507         (TEST_FUNCTION): New macro.
14508         Include test-skeleton.c.
14509         * stdlib/tst-strtod.c (main): Converted to ...
14510         (do_test): ... this.
14511         (TEST_FUNCTION): New macro.
14512         Include test-skeleton.c.
14513         * string/tst-strlen.c (main): Converted to ...
14514         (do_test): ... this.
14515         (TEST_FUNCTION): New macro.
14516         Include test-skeleton.c.
14517         * string/tst-svc.c (main): Converted to ...
14518         (do_test): ... this.
14519         (TEST_FUNCTION): New macro.
14520         Include test-skeleton.c.
14521         * time/tst-strptime.c (main): Converted to ...
14522         (do_test): ... this.
14523         (TEST_FUNCTION): New macro.
14524         Include test-skeleton.c.
14525         * timezone/tst-timezone.c (main): Converted to ...
14526         (do_test): ... this.
14527         (TEST_FUNCTION): New macro.
14528         Include test-skeleton.c.
14529
14530 2015-08-05  Zack Weinberg  <zackw@panix.com>
14531
14532         * misc/regexp.h: Update comments.
14533
14534 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14535
14536         [BZ #18635]
14537         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14538         before return label.
14539
14540 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14541
14542         [BZ #18661]
14543         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14544         when calling __errno_location.
14545         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14546         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14547
14548 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14549
14550         [BZ #18661]
14551         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14552         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14553         __gettimeofday.
14554
14555 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14556
14557         [BZ #18661]
14558         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14559         (__start_context): Don't use pop to restore %rdi so that stack
14560         is aligned to 16 bytes when calling __setcontext.
14561
14562 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14563
14564         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14565         only for libc.
14566         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14567
14568 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14569
14570         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14571         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14572         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14573
14574 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14575
14576         * string/memccpy.c (memccpy):
14577         Improve performance by using memchr/memcpy/__mempcpy.
14578
14579 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14580
14581         * string/strncpy.c (strncpy):
14582         Improve performance by using __strnlen/memcpy.
14583
14584 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14585
14586         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14587         Optimize to avoid an unnecessary FPCR read.
14588
14589 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14590
14591         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14592         Optimize to reduce FPCR/FPSR accesses.
14593
14594 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14595
14596         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14597         dead->data[category] != NULL.
14598
14599 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14600
14601         [BZ #18647]
14602         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14603         and |x| close to 1, use absolute value of x when computing log.
14604         * math/auto-libm-test-in: Add more tests of pow.
14605         * math/auto-libm-test-out: Regenerated.
14606
14607 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14608
14609         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14610         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14611         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14612
14613 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14614
14615         [BZ #18525]
14616         * locales/km_KH: Remove timezone definition.
14617         * locales/lo_LA: Likewise.
14618         * locales/my_MM: Likewise.
14619         * locales/nan_TW@latin: Likewise.
14620         * locales/th_TH: Likewise.
14621         * locales/uk_UA: Likewise.
14622
14623 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14624
14625         [BZ #18265]
14626         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14627         (wcsncat): Likewise.
14628         (wcscmp): Likewise.
14629         (wcsncmp): Likewise.
14630
14631 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14632
14633         * test-skeleton.c (usage): New function.
14634         (main): Call usage when opt is '?'.
14635
14636 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14637
14638         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14639         before first use.
14640
14641 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14642
14643         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14644         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14645         in there too.
14646
14647 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14648
14649         * version.h (RELEASE): Set to "development".
14650         (VERSION): Set to "2.22.90"
14651
14652         * version.h (RELEASE): Set to "stable".
14653         (VERSION): Set to "2.22"
14654         * include/features.h (__GLIBC_MINOR__): Set to 22.
14655
14656 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14657
14658         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14659         Restructure macro to avoid "value computed is not used" warning.
14660         (atomic_compare_and_exchange_val_acq): Likewise.
14661
14662 2015-08-04  Andreas Schwab  <schwab@suse.de>
14663
14664         [BZ #18635]
14665         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14666         ret.
14667         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14668
14669 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14670
14671         * po/pl.po: Updated translation.
14672         * po/uk.po: Likewise.
14673         * po/fi.po: Likewise.
14674         * po/ko.po: Likewise.
14675         * po/ru.po: Likewise.
14676         * po/vi.po: Likewise.
14677
14678 2015-07-31  Zack Weinberg  <zackw@panix.com>
14679
14680         [BZ #18681]
14681         * regexp.h: Add unconditional #warning stating that this header
14682         will be removed soon.  Revise banner comment to match.
14683         (compile): Consistently use ERROR instead of RETURN to report
14684         errors (partial fix for bz#18681).
14685         * regexp.c: Don't include regexp.h. Remove some unnecessary
14686         declarations.
14687
14688 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14689
14690         * po/libc.pot: Regenerated.
14691
14692 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14693
14694         [BZ #18740]
14695         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14696         float-vlen4-arch-ext-cflags): Removed.
14697         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14698         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14699
14700 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14701
14702         [BZ #14113]
14703         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14704         aligned to __aligned__.
14705         (pthread_cond_t, pthread_rwlock_t): Likewise.
14706
14707 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14708
14709         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14710
14711 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14712
14713         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14714         (struct sigaction): Change sa_flags from a long to an int, and add
14715         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14716
14717 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14718
14719         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14720         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14721         sysdeps/generic/sysdep.h include.
14722         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14723         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14724         sysdeps/hppa/sysdep.h.
14725         (ENTRY, PSEUDO): Undefine before defining.
14726
14727 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14728
14729         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14730         from scratch to use INTERNAL_SYSCALL.
14731
14732 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14733
14734         [BZ #18078]
14735         * scripts/check-localplt.awk: Support alternate relocations.
14736         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14737         sections.
14738         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14739         malloc entries with + REL R_386_GLOB_DAT.
14740         * sysdeps/x86_64/localplt.data: New file.
14741
14742 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14743
14744         [BZ #18731]
14745         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14746         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14747         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14748
14749 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14750
14751         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14752
14753 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14754
14755         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14756         directly in terms of __sync_fetch_and_add and delete (int) cast.
14757
14758 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14759
14760         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14761         the -D_ASM_IA64_CURRENT_H flag.
14762
14763 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14764
14765         [BZ #18641]
14766         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14767
14768 2015-07-27  Andreas Schwab  <schwab@suse.de>
14769
14770         * conform/conformtest.pl (checknamespace): Filter out string
14771         literals while tokenizing.
14772
14773 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14774
14775         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14776         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14777         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14778
14779 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14780
14781         * nptl/tst-join7mod.c: Add #include <string.h>.
14782
14783 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14784
14785         * sysdeps/nios2/libm-test-ulps: Update.
14786
14787 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14788
14789         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14790         Fix order of arguments to the rt_sigprocmask syscall.
14791         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14792         Likewise.
14793
14794 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14795
14796         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14797
14798 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14799
14800         [BZ #18457]
14801         * nptl/Makefile (tests): New test case tst-join7.
14802         (modules-names): New test case module tst-join7mod.
14803         * nptl/tst-join7.c: New file.
14804         * nptl/tst-join7mod.c: New file.
14805         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14806         all translation units in libc.so, libpthread.so and rtld.
14807
14808 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14809
14810         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14811
14812 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14813
14814         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14815         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14816         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14817         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14818         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14819         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14820         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14821         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14822         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14823         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14824         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14825         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14826         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14827         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14828         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14829         implementation.
14830
14831 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14832
14833         [BZ #17711]
14834         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14835         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14836         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14837         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14838         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14839         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14840
14841 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14842
14843         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14844         instead of just saying load lock in the comments.
14845
14846 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14847
14848         * sysdeps/unix/Subdirs: Moved ...
14849         * sysdeps/posix/Subdirs: ... here.
14850         * login/pty.h (struct termios, struct winsize): Add forward decls.
14851         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14852         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14853         * sysdeps/arm/nacl/libc.abilist: Updated.
14854         * sysdeps/nacl/libutil.abilist: New file.
14855
14856         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14857         (SIGWINCH): New macro.
14858
14859         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14860         * sysdeps/arm/nacl/libc.abilist: Add it.
14861
14862 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14863
14864         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14865
14866 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14867
14868         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14869         Swap __glibc_reserved0 and sa_flags order.
14870
14871 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14872
14873         [BZ #18657]
14874         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14875         are pending TLS destructor calls.
14876         * include/link.h (struct link_map): Add concurrency note for
14877         L_TLS_DTOR_COUNT.
14878         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14879         Don't touch the link map flag.  Atomically increment
14880         l_tls_dtor_count.
14881         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14882         Avoid taking the load lock and don't touch the link map flag.
14883         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14884         * stdlib/Makefile (tests): Use it.
14885         * stdlib/tst-tls-atexit.c (do_test): dlopen
14886         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14887         to allow tst-tls-atexit-nodelete test case to use it.
14888
14889 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14890
14891         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14892         to bits/types.h.
14893         (msgqnum_t): New typedef.
14894         (msglen_t): Likewise.
14895         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14896         and msg_qbytes type to msglen_t.
14897
14898 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14899
14900         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14901         pad0 to __glibc_reserved0.
14902         (struct stat64): Likewise.
14903
14904 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14905
14906         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14907         Change sa_flags from a long to an int and add __glibc_reserved0 before
14908         it for padding.
14909
14910 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14911
14912         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14913         anonymous by deleting "siginfo" name.
14914
14915 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14916
14917         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14918         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14919         rather than __nacl_irt_filename.
14920         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14921
14922         * NEWS: New item for arm-nacl port.
14923         * sysdeps/arm/nacl/libc.abilist: New file.
14924         * sysdeps/nacl/ld.abilist: New file.
14925         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14926         * sysdeps/nacl/libanl.abilist: New file.
14927         * sysdeps/nacl/libcrypt.abilist: New file.
14928         * sysdeps/nacl/libdl.abilist: New file.
14929         * sysdeps/nacl/libm.abilist: New file.
14930         * sysdeps/nacl/libpthread.abilist: New file.
14931         * sysdeps/nacl/libresolv.abilist: New file.
14932         * sysdeps/nacl/librt.abilist: New file.
14933
14934 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14935
14936         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14937         __startcontext to initialize the new context.
14938         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14939         up CFI directive to forbid further backtracing.
14940
14941 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14942
14943         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14944         reference.
14945         * charmaps/ANSI_X3.4-1968: Likewise.
14946         * charmaps/BS_4730: Likewise.
14947         * charmaps/BS_VIEWDATA: Likewise.
14948         * charmaps/CP1250: Likewise.
14949         * charmaps/CP1251: Likewise.
14950         * charmaps/CP1252: Likewise.
14951         * charmaps/CP1253: Likewise.
14952         * charmaps/CP1254: Likewise.
14953         * charmaps/CP1255: Likewise.
14954         * charmaps/CP1256: Likewise.
14955         * charmaps/CSN_369103: Likewise.
14956         * charmaps/EBCDIC-DK-NO: Likewise.
14957         * charmaps/GB_1988-80: Likewise.
14958         * charmaps/GREEK-CCITT: Likewise.
14959         * charmaps/GREEK7: Likewise.
14960         * charmaps/INIS-8: Likewise.
14961         * charmaps/ISIRI-3342: Likewise.
14962         * charmaps/ISO_2033-1983: Likewise.
14963         * charmaps/ISO_5427-EXT: Likewise.
14964         * locales/POSIX: Likewise.
14965         * locales/ar_SA: Likewise.
14966         * locales/be_BY: Likewise.
14967         * locales/be_BY@latin: Likewise.
14968         * locales/ca_ES: Likewise.
14969         * locales/cs_CZ: Likewise.
14970         * locales/da_DK: Likewise.
14971         * locales/de_BE: Likewise.
14972         * locales/de_CH: Likewise.
14973         * locales/de_LU: Likewise.
14974         * locales/en_AU: Likewise.
14975         * locales/en_BW: Likewise.
14976         * locales/en_CA: Likewise.
14977         * locales/en_DK: Likewise.
14978         * locales/en_GB: Likewise.
14979         * locales/en_IE: Likewise.
14980         * locales/en_NZ: Likewise.
14981         * locales/en_ZA: Likewise.
14982         * locales/en_ZW: Likewise.
14983         * locales/es_AR: Likewise.
14984         * locales/es_BO: Likewise.
14985         * locales/es_CL: Likewise.
14986         * locales/es_CO: Likewise.
14987         * locales/es_DO: Likewise.
14988         * locales/es_EC: Likewise.
14989         * locales/es_ES: Likewise.
14990         * locales/es_HN: Likewise.
14991         * locales/es_MX: Likewise.
14992         * locales/es_PA: Likewise.
14993         * locales/es_PE: Likewise.
14994         * locales/es_PY: Likewise.
14995         * locales/es_SV: Likewise.
14996         * locales/es_US: Likewise.
14997         * locales/es_UY: Likewise.
14998         * locales/es_VE: Likewise.
14999         * locales/et_EE: Likewise.
15000         * locales/fa_IR: Likewise.
15001         * locales/fo_FO: Likewise.
15002         * locales/fr_CA: Likewise.
15003         * locales/fr_CH: Likewise.
15004         * locales/gv_GB: Likewise.
15005         * locales/he_IL: Likewise.
15006         * locales/hr_HR: Likewise.
15007         * locales/id_ID: Likewise.
15008         * locales/is_IS: Likewise.
15009         * locales/it_CH: Likewise.
15010         * locales/iw_IL: Likewise.
15011         * locales/kl_GL: Likewise.
15012         * locales/ko_KR: Likewise.
15013         * locales/kw_GB: Likewise.
15014         * locales/lg_UG: Likewise.
15015         * locales/lt_LT: Likewise.
15016         * locales/lv_LV: Likewise.
15017         * locales/mi_NZ: Likewise.
15018         * locales/nhn_MX: Likewise.
15019         * locales/nl_BE: Likewise.
15020         * locales/pl_PL: Likewise.
15021         * locales/sk_SK: Likewise.
15022         * locales/sl_SI: Likewise.
15023         * locales/sv_FI: Likewise.
15024         * locales/tl_PH: Likewise.
15025         * locales/tr_TR: Likewise.
15026         * locales/vi_VN: Likewise.
15027
15028 2015-07-21  Khem Raj  <raj.khem@gmail.com>
15029
15030         [BZ #17475]
15031         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
15032         of tu_IN and bh_IN.
15033
15034 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
15035
15036         [BZ #18694]
15037         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
15038         bits/wordsize.h.
15039         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
15040
15041 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15042
15043         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
15044         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
15045         (spawn_thread): New function.
15046         (load): Rename to reg_dtor_and_close.  Move dlopen to...
15047         (do_test): ... here.  Use IS_LOADED to test for its
15048         availability.
15049
15050 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
15051
15052         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
15053
15054 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
15055
15056         [BZ #18696]
15057         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
15058         si_addr_bnd.
15059         (si_lower): New.
15060         (si_upper): Likewise.
15061
15062 2015-07-16  David S. Miller  <davem@davemloft.net>
15063
15064         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
15065
15066 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15067
15068         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
15069         buffer.
15070         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
15071         fail output information.
15072
15073 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15074
15075         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
15076         and strstr-ppc64..
15077         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
15078         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
15079         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
15080         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
15081         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
15082
15083 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15084
15085         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15086         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15087         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15088         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15089
15090 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15091
15092         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
15093         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
15094         rtld_hidden_proto.
15095         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
15096
15097 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15098
15099         * tst-nodelete-opened.c (do_test): Add comment to clarify how
15100         the test can fail.
15101
15102         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
15103
15104         [BZ #18676]
15105         * elf/tst-nodelete-opened.c: New test case.
15106         * elf/tst-nodelete-opened-lib.c: New test case module.
15107         * elf/Makefile (tests, modules-names): Use them.
15108         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
15109         early.
15110
15111 2015-07-15  David S. Miller  <davem@davemloft.net>
15112
15113         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
15114         futex-intenal.h
15115         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
15116         * sysdeps/sparc/sparc64/Makefile: Likewise.
15117         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15118         Remove space from macro define.
15119         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
15120
15121 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
15122
15123         [BZ #17475]
15124         * locale/iso-639.def: Update Bhili and Tulu language codes as
15125         per iso639-3.
15126
15127 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
15128
15129         * elf/tst-leaks1.c (main): Converted to ...
15130         (do_test): ... this.
15131         (TEST_FUNCTION): New macro.
15132         Include test-skeleton.c.
15133         * localedata/tst-langinfo.c (main): Converted to ...
15134         (do_test): ... this.
15135         (TEST_FUNCTION): New macro.
15136         Include test-skeleton.c.
15137         * math/test-fpucw.c (main): Converted to ...
15138         (do_test): ... this.
15139         (TEST_FUNCTION): New macro.
15140         Include test-skeleton.c.
15141         * math/test-tgmath.c (main): Converted to ...
15142         (do_test): ... this.
15143         (TEST_FUNCTION): New macro.
15144         Include test-skeleton.c.
15145         * math/test-tgmath2.c (main): Converted to ...
15146         (do_test): ... this.
15147         (TEST_FUNCTION): New macro.
15148         Include test-skeleton.c.
15149         * setjmp/tst-setjmp.c (main): Converted to ...
15150         (do_test): ... this.
15151         (TEST_FUNCTION): New macro.
15152         Include test-skeleton.c.
15153         * stdio-common/tst-sscanf.c (main): Converted to ...
15154         (do_test): ... this.
15155         (TEST_FUNCTION): New macro.
15156         Include test-skeleton.c.
15157         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
15158         (do_test): ... this.
15159         (TEST_FUNCTION): New macro.
15160         Include test-skeleton.c.
15161
15162         * elf/tst-audit9.c (main): Converted to ...
15163         (do_test): ... this.
15164         (TEST_FUNCTION): New macro.
15165         Include test-skeleton.c.
15166
15167 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
15168
15169         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
15170
15171 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15172
15173         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
15174         New variable.
15175
15176 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15177
15178         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15179
15180 2015-07-14  Roland McGrath  <roland@hack.frob.com>
15181
15182         * sysdeps/generic/dl-fileid.h: New file.
15183         * sysdeps/posix/dl-fileid.h: New file.
15184         * sysdeps/nacl/dl-fileid.h: New file.
15185         * include/link.h: Include <dl-fileid.h>.
15186         (struct link_map): Replace l_dev and l_ino with l_file_id.
15187         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
15188         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
15189         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
15190
15191 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15192
15193         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
15194
15195 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15196
15197         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
15198         Add iff $CXX is set.
15199         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
15200         Likewise.
15201         (tst-nodelete-zmodiff): Likewise.
15202         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
15203
15204 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15205
15206         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
15207
15208 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15209
15210         * sysdeps/aarch64/fpu/math_private.h
15211         (define math_opt_barrier): Add AArch64 version.
15212         (math_force_eval): Likewise.
15213
15214 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15215
15216         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
15217
15218 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15219
15220         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
15221         %ld with %jd and cast to intmax_t.
15222         (do_test_length_zero): Likewise.
15223
15224 2015-07-10  Roland McGrath  <roland@hack.frob.com>
15225
15226         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
15227
15228 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
15229
15230         * sysdeps/tile/libm-test-ulps: Regenerated.
15231
15232         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
15233         Comment out the whole function, not just its body.
15234
15235 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15236
15237         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
15238         locks.
15239
15240         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
15241
15242 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15243
15244         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
15245         (sem_assume_only_signals_cause_futex_EINTR): Remove.
15246
15247 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15248
15249         * sysdeps/nptl/futex-internal.h: New file.
15250         * sysdeps/nacl/futex-internal.h: New file.
15251         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
15252         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
15253         error checking.
15254         (setxid_unmark_thread): Likewise.
15255         (__nptl_setxid): Likewise.
15256         (__wait_lookup_done): Likewise.
15257         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15258         * nptl/nptl-init.c (sighandler_setxid): Likewise.
15259         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15260         * nptl/pthread_once.c (clear_once_control): Likewise.
15261         (__pthread_once_slow): Likewise.
15262         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15263         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
15264         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
15265         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15266         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
15267         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
15268         Likewise.
15269         (__pthread_rwlock_rdlock): Likewise.
15270         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15271         Likewise.
15272         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15273         Likewise.
15274         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
15275         Likewise.
15276         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
15277         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
15278         Likewise.
15279         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
15280         __ASSUME_PRIVATE_FUTEX check.
15281         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
15282         Check that shared futexes are supported.
15283         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
15284         wrappers with error checking.
15285         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
15286         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
15287         * nptl/pthread_barrierattr_setpshared.c
15288         (pthread_barrierattr_setpshared): Check that shared futexes are
15289         supported.
15290         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
15291         Likewise.
15292         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
15293         Likewise.
15294         * nptl/sem_init.c (futex_private_if_supported): Remove.
15295         (__new_sem_init): Adapt and check that shared futexes are supported.
15296         * nptl/sem_open.c (sem_open): Likewise.
15297         * nptl/sem_post.c (futex_wake): Remove.
15298         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
15299         (do_futex_wait): Use futex wrappers with error checking.
15300         * nptl/sem_wait.c: Include lowlevellock.h.
15301         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
15302         Use futex_supports_pshared.
15303         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
15304         Use futex wrappers with error checking.
15305         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
15306         Likewise.
15307         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
15308         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
15309         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
15310         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
15311         (futex_wake): Likewise.
15312         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
15313         (do_futex_wait): Use futex wrappers with error checking.
15314         (__new_sem_wait_slow): Update EINTR handling.
15315         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
15316
15317 2015-07-09  Martin Sebor  <msebor@redhat.com>
15318
15319         [BZ #18435]
15320         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15321         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
15322         * nptl/Makefile (test-xfail-tst-once5): Define.
15323
15324 2015-07-09  Roland McGrath  <roland@hack.frob.com>
15325
15326         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
15327         * elf/dl-minimal.c: For readability, reorder some definitions and
15328         introduce more page breaks.  Include <stdio.h>.
15329         (__libc_fatal): New function.
15330
15331         * include/unistd.h: Add rtld_hidden_proto for _exit.
15332         * posix/_exit.c: Add rtld_hidden_def.
15333         * sysdeps/mach/hurd/_exit.c: Likewise.
15334         * sysdeps/nacl/_exit.c: Likewise.
15335         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
15336         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
15337
15338 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15339
15340         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
15341         bndmov encoding with zero displacement.
15342
15343 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
15344             H.J. Lu  <hongjiu.lu@intel.com>
15345
15346         [BZ #18134]
15347         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
15348         * sysdeps/i386/configure: Regenerated.
15349         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
15350         (_dl_runtime_profile): Save and restore Intel MPX return bound
15351         registers when calling _dl_call_pltexit.  Add
15352         PRESERVE_BND_REGS_PREFIX before return.
15353         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
15354         (LRV_BND1_OFFSET): Likewise.
15355         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
15356         lrv_bnd1.
15357         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
15358         typo in bndmov encoding.
15359         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
15360         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
15361         branch instructions to preserve bounds.
15362
15363 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15364
15365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15366         [GLIBC_2.22]: Add fmemopen.
15367
15368 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15369
15370         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15371         returns an error, also try to use host port from __mach_host_self for
15372         the __vm_wire call.
15373         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15374
15375 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15376
15377         [BZ #18400]
15378         [BZ #18648]
15379         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15380         Fix pr_uid and pr_gid members.
15381         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15382         definition to elf_greg_t.
15383
15384 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15385
15386         [BZ #18383]
15387         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15388         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15389         * sysdeps/arm/configure: Regenerated.
15390         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15391         (test-xfail-tst-tlsalign-static): Variable removed.
15392
15393         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15394         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15395         rather than explicit 'ln -s'.
15396
15397         * resolv/rpc/netdb.h: New file.
15398         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15399
15400 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15401
15402         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15403         length buffers.
15404         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15405         test-skeleton.c.
15406
15407         [BZ #6544]
15408         [BZ #11216]
15409         [BZ #12836]
15410         [BZ #13151]
15411         [BZ #13152]
15412         [BZ #14292]
15413         * include/stdio.h (fmemopen): Remove hidden prototype.
15414         (__fmemopen): Add new hidden prototype.
15415         * libio/Makefile: Add oldfmemopen object.
15416         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15417         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15418         compliance.
15419         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15420         symbol compatibility.
15421         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15422         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15423         fmemopen.
15424         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15425         on append and read mode.
15426         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15427         fmemopen.
15428         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15429         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15430         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15431         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15432         Likewise.
15433         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15434         [GLIBC_2.22]: Likewise.
15435         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15436         Likewise.
15437         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15438         Likewise.
15439         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15440         [GLIBC_2.22]: Likewise.
15441         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15442         [GLIBC_2.22]: Likewise.
15443         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15444         [GLIBC_2.22]: Likewise.
15445         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15446         [GLIBC_2.22]: Likewise.
15447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15448         [GLIBC_2.22]: Likewise.
15449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15450         [GLIBC_2.22]: Likewise.
15451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15452         [GLIBC_2.22]: Likewise.
15453         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15454         Likewise.
15455         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15456         Likewise.
15457         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15458         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15459         [GLIBC_2.22]: Likewise.
15460         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15461         [GLIBC_2.22]: Likewise.
15462         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15463         [GLIBC_2.22]: Likewise.
15464         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15465         [GLIBC_2.22]: Likewise.
15466         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15467         Likewise.
15468         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15469         Likewise.
15470         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15471         Likewise.
15472         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15473         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15474
15475 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15476
15477         [BZ #18643]
15478         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15479         IPV6_PATHMTU, and IPV6_DONTFRAG.
15480
15481 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15482
15483         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15484         and _IO_UNBUFFERED.
15485         * libio/oldfileops.c: Likewise.
15486         * libio/wfileops.c: Likewise.
15487
15488 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15489
15490         * nscd/selinux.c: Delete selinux/flask.h include.
15491
15492 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15493
15494         [BZ #18641]
15495         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15496         (putpwent): Likewise.
15497         (getpwnam): Likewise.
15498         (getpwent_r): Likewise.
15499         (getpwuid_r): Likewise.
15500         (getpwnam_r): Likewise.
15501         (fgetpwent_r): Likewise.
15502
15503 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15504
15505         [BZ #18557]
15506         * inet/rcmd.c (__validuser2_sa): Check user first to
15507         short-circuit host check.
15508
15509 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15510             Mikhail Ilin  <m.ilin@samsung.com>
15511
15512         [BZ #17833]
15513         * elf/Makefile (tests): Add tst-nodelete.
15514         (modules-names): Add tst-nodelete-uniquemod.
15515         (tst-nodelete-uniquemod.so-no-z-defs): New.
15516         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15517         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15518         ($(objpfx)tst-nodelete): Likewise.
15519         ($(objpfx)tst-nodelete.out): Likewise.
15520         (LDFLAGS-tst-nodelete): Likewise.
15521         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15522         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15523         implement forced object deletion.
15524         (_dl_close): Pass false to _dl_close_worker.
15525         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15526         * elf/tst-nodelete.cc: New file.
15527         * elf/tst-nodeletelib.cc: Likewise.
15528         * elf/tst-znodeletelib.cc: Likewise.
15529         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15530
15531 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15532
15533         [BZ #18508]
15534         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15535         Depend on $(libdl).
15536         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15537         is not called infinitely times.
15538         (backtrace_helper): New function.
15539         (trace_arg): New struct.
15540         (st1): Enlarge stack size.
15541         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15542         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15543         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15544         Likewise.
15545
15546 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15547
15548         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15549
15550 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15551
15552         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15553         Include sys/types.h instead of bits/types.h.
15554         Remove inclusion of bits/wordsize.h.
15555
15556 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15557
15558         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15559         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15560         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15561         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15562         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15563         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15564
15565 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15566
15567         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15568         link-defines.sym.
15569         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15570         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15571         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15572         and LR_SIZE.
15573         * sysdeps/i386/link-defines.sym: New file.
15574
15575 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15576
15577         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15578         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15579         ($(objpfx)tst-audit3): New rule.
15580         ($(objpfx)tst-audit3.out): Likewise.
15581         * sysdeps/i386/tst-audit3.c: New file.
15582         * sysdeps/i386/tst-audit3.h: Likewise.
15583         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15584         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15585
15586 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15587
15588         [BZ #18633]
15589         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15590         pointer in C code.
15591         (__strcat_c): Likewise.
15592         (__strcat_g): Likewise.
15593
15594 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15595
15596         [BZ #18592]
15597         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15598
15599 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15600
15601         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15602         New function.  (__ieee754_sqrtf): New function.
15603         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15604         New function.
15605         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15606         New function.
15607
15608 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15609
15610         * sysdeps/ieee754/support.c: Remove unused file.
15611
15612 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15613
15614         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15615         registers instead of d ones so the layout is kernel abi compatible.
15616         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15617         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15618         Likewise.
15619
15620 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15621
15622         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15623
15624 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15625
15626         [BZ #18619]
15627         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15628         and return argument in case of subnormal argument.
15629
15630 2015-07-01  Martin Sebor  <msebor@redhat.com>
15631
15632         [BZ #18435]
15633         * nptl/Makefile: Add tst-once5.cc.
15634         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15635         Remove macro redefinitions.
15636         * nptl/tst-once5.cc: New test.
15637
15638 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15639
15640         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15641
15642         * sysdeps/arm/libm-test-ulps: Regenerated.
15643
15644         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15645         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15646
15647 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15648
15649         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15650         lll_lock_wait_private and lll_futex_wake probes.
15651
15652         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15653         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15654         Likewise.
15655         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15656         atomic_spin_nop.
15657         * sysdeps/x86_64/bits/atomic.h: Likewise.
15658         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15659         to atomic_spin_nop and move ...
15660         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15661         ... here and ...
15662         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15663         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15664         atomic_spin_nop instead of BUSY_WAIT_NOP.
15665         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15666         Likewise.
15667         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15668         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15669         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15670         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15671         instead of atomic_delay.
15672
15673 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15674
15675         [BZ #18613]
15676         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15677         X_ADJ not X when adjusting exponent.
15678         (__ieee754_gamma_r): Do intermediate computations in
15679         round-to-nearest then adjust overflowing and underflowing results
15680         as needed.
15681         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15682         of X_ADJ not X when adjusting exponent.
15683         (__ieee754_gammaf_r): Do intermediate computations in
15684         round-to-nearest then adjust overflowing and underflowing results
15685         as needed.
15686         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15687         log of X_ADJ not X when adjusting exponent.
15688         (__ieee754_gammal_r): Do intermediate computations in
15689         round-to-nearest then adjust overflowing and underflowing results
15690         as needed.  Use 1.0L not 1.0f as numerator of division.
15691         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15692         log of X_ADJ not X when adjusting exponent.
15693         (__ieee754_gammal_r): Do intermediate computations in
15694         round-to-nearest then adjust overflowing and underflowing results
15695         as needed.  Use 1.0L not 1.0f as numerator of division.
15696         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15697         of X_ADJ not X when adjusting exponent.
15698         (__ieee754_gammal_r): Do intermediate computations in
15699         round-to-nearest then adjust overflowing and underflowing results
15700         as needed.  Use 1.0L not 1.0f as numerator of division.
15701         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15702         to auto-libm-test-in.
15703         (tgamma_test): Use ALL_RM_TEST.
15704         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15705         tests of tgamma with spurious-overflow.
15706         * math/auto-libm-test-out: Regenerated.
15707         * math/gen-libm-have-vector-test.sh: Do not check for START.
15708         * sysdeps/i386/fpu/libm-test-ulps: Update.
15709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15710
15711         [BZ #18612]
15712         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15713         arguments, just return 0.5 times the argument, with underflow
15714         forced as needed.
15715         * math/auto-libm-test-in: Add more tests of j1.
15716         * math/auto-libm-test-out: Regenerated.
15717
15718         [BZ #16559]
15719         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15720         (__ieee754_j1): Force underflow exception for small results.
15721         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15722         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15723         (__ieee754_j1f): Force underflow exception for small results.
15724         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15725         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15726         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15727         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15728         (__ieee754_j1l): Force underflow exception for small results.
15729         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15730         * math/auto-libm-test-in: Add more tests of j1 and jn.
15731         * math/auto-libm-test-out: Regenerated.
15732
15733         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15734         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15735         (PF_MPLS): Likewise.
15736         (AF_IB): Likewise.
15737         (AF_MPLS): Likewise.
15738         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15739         value and macro.
15740         (MS_RMT_MASK): Include MS_LAZYTIME.
15741
15742 2015-06-26  Mel Gorman  <mgorman@suse.de>
15743
15744         [BZ #18502]
15745         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15746         already minimal.
15747
15748 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15749
15750         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15751         (DT_MIPS_NUM): Update.
15752         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15753         DT_MIPS_RLD_MAP_REL.
15754
15755 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15756
15757         [BZ #16559]
15758         [BZ #18602]
15759         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15760         round-to-nearest internally then recompute results that
15761         underflowed to zero in the original rounding mode.
15762         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15763         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15764         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15765         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15766         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15767         * sysdeps/i386/fpu/libm-test-ulps: Update.
15768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15769
15770 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15771
15772         * NEWS: Fixed description of link with vector math library.
15773
15774 2015-06-25  Andreas Schwab  <schwab@suse.de>
15775
15776         [BZ #18549]
15777         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15778         * libio/test-fmemopen.c (do_test): Add test for it.
15779
15780 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15781
15782         [BZ #17841]
15783         * Makeconfig (no-pie-ldflag): New.
15784         (+link): Set to $(+link-pie) if default to PIE.
15785         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15786         * config.make.in (build-pie-default): New.
15787         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15788         is default.  AC_SUBST.
15789         * configure: Regenerated.
15790         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15791
15792 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15793
15794         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15795         to 'unsigned int'.
15796
15797         * resolv/gai_misc.h (struct waitlist): Change type of field
15798         counterp to 'volatile unsigned int *'.
15799         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15800         FUTEXADDR and OLDVAL.
15801         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15802         Give local variable TOTAL type 'volatile unsigned int'.
15803         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15804         * resolv/gai_suspend.c (gai_suspend):
15805         Give local variable CNTR type 'unsigned int'.
15806
15807         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15808         counterp to 'volatile unsigned int *'.
15809         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15810         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15811         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15812         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15813         Give local variable TOTAL type 'volatile unsigned int'.
15814         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15815
15816 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15817
15818         [BZ #18383]
15819         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15820         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15821         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15822         comment for i386/x86-64.
15823         (test-xfail-tst-tlsalign-extern-static): Removed.
15824
15825 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15826
15827         * math/test-double.h: New file.
15828         * math/test-float.h: Likewise.
15829         * math/test-ldouble.h: Likewise.
15830         * math/test-math-inline.h: Likewise.
15831         * math/test-math-no-inline.h: Likewise.
15832         * math/test-math-scalar.h: Likewise.
15833         * math/test-math-vector.h: Likewise.
15834         * math/test-vec-loop.h: Remove file.  Contents moved into
15835         test-math-vector.h.
15836         * math/libm-test.inc (MATHCONST): Do not document macro.
15837         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15838         and test-math-scalar.h.
15839         (FUNC): Remove macro.
15840         (FUNC_TEST): Likewise.
15841         (FLOAT): Likewise.
15842         (MATHCONST): Likewise.
15843         (PRINTF_EXPR): Likewise.
15844         (PRINTF_XEXPR): Likewise.
15845         (PRINTF_NEXPR): Likewise.
15846         (TEST_DOUBLE): Likewise.
15847         (TEST_MATHVEC): Likewise.
15848         (__NO_MATH_INLINES): Likewise.
15849         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15850         and test-math-scalar.h.
15851         (FUNC): Remove macro.
15852         (FUNC_TEST): Likewise.
15853         (FLOAT): Likewise.
15854         (MATHCONST): Likewise.
15855         (PRINTF_EXPR): Likewise.
15856         (PRINTF_XEXPR): Likewise.
15857         (PRINTF_NEXPR): Likewise.
15858         (TEST_FLOAT): Likewise.
15859         (TEST_MATHVEC): Likewise.
15860         (__NO_MATH_INLINES): Likewise.
15861         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15862         and test-math-scalar.h.
15863         (FUNC): Remove macro.
15864         (FUNC_TEST): Likewise.
15865         (FLOAT): Likewise.
15866         (MATHCONST): Likewise.
15867         (PRINTF_EXPR): Likewise.
15868         (PRINTF_XEXPR): Likewise.
15869         (PRINTF_NEXPR): Likewise.
15870         (TEST_DOUBLE): Likewise.
15871         (TEST_MATHVEC): Likewise.
15872         (TEST_INLINE): Likewise.
15873         (__NO_MATH_INLINES): Likewise.
15874         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15875         test-math-scalar.h.
15876         (FUNC): Remove macro.
15877         (FUNC_TEST): Likewise.
15878         (FLOAT): Likewise.
15879         (MATHCONST): Likewise.
15880         (PRINTF_EXPR): Likewise.
15881         (PRINTF_XEXPR): Likewise.
15882         (PRINTF_NEXPR): Likewise.
15883         (TEST_FLOAT): Likewise.
15884         (TEST_MATHVEC): Likewise.
15885         (TEST_INLINE): Likewise.
15886         (__NO_MATH_INLINES): Likewise.
15887         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15888         and test-math-scalar.h.
15889         (FUNC): Remove macro.
15890         (FUNC_TEST): Likewise.
15891         (FLOAT): Likewise.
15892         (MATHCONST): Likewise.
15893         (PRINTF_EXPR): Likewise.
15894         (PRINTF_XEXPR): Likewise.
15895         (PRINTF_NEXPR): Likewise.
15896         (TEST_LDOUBLE): Likewise.
15897         (TEST_MATHVEC): Likewise.
15898         (TEST_INLINE): Likewise.
15899         (__NO_MATH_INLINES): Likewise.
15900         * math/test-ldouble.c: Include test-ldouble.h,
15901         test-math-no-inline.h and test-math-scalar.h.
15902         (FUNC): Remove macro.
15903         (FUNC_TEST): Likewise.
15904         (FLOAT): Likewise.
15905         (MATHCONST): Likewise.
15906         (PRINTF_EXPR): Likewise.
15907         (PRINTF_XEXPR): Likewise.
15908         (PRINTF_NEXPR): Likewise.
15909         (TEST_LDOUBLE): Likewise.
15910         (TEST_MATHVEC): Likewise.
15911         (__NO_MATH_INLINES): Likewise.
15912         * math/test-double-vlen2.h: Include test-double.h,
15913         test-math-no-inline.h and test-math-vector.h.
15914         (FLOAT): Remove macro.
15915         (FUNC): Likewise.
15916         (MATHCONST): Likewise.
15917         (PRINTF_EXPR): Likewise.
15918         (PRINTF_XEXPR): Likewise.
15919         (PRINTF_NEXPR): Likewise.
15920         (TEST_DOUBLE): Likewise.
15921         (TEST_MATHVEC): Likewise.
15922         (__NO_MATH_INLINES): Likewise.
15923         (CNCT): Likewise.
15924         (CONCAT): Likewise.
15925         (WRAPPER_NAME): Likewise.
15926         (WRAPPER_DECL): Likewise.
15927         (WRAPPER_DECL_ff): Likewise.
15928         (WRAPPER_DECL_fFF): Likewise.
15929         (VECTOR_WRAPPER): Likewise.
15930         (VECTOR_WRAPPER_ff): Likewise.
15931         (VECTOR_WRAPPER_fFF): Likewise.
15932         (VEC_LEN): New macro.
15933         * math/test-double-vlen4.h: Include test-double.h,
15934         test-math-no-inline.h and test-math-vector.h.
15935         (FLOAT): Remove macro.
15936         (FUNC): Likewise.
15937         (MATHCONST): Likewise.
15938         (PRINTF_EXPR): Likewise.
15939         (PRINTF_XEXPR): Likewise.
15940         (PRINTF_NEXPR): Likewise.
15941         (TEST_DOUBLE): Likewise.
15942         (TEST_MATHVEC): Likewise.
15943         (__NO_MATH_INLINES): Likewise.
15944         (CNCT): Likewise.
15945         (CONCAT): Likewise.
15946         (WRAPPER_NAME): Likewise.
15947         (WRAPPER_DECL): Likewise.
15948         (WRAPPER_DECL_ff): Likewise.
15949         (WRAPPER_DECL_fFF): Likewise.
15950         (VECTOR_WRAPPER): Likewise.
15951         (VECTOR_WRAPPER_ff): Likewise.
15952         (VECTOR_WRAPPER_fFF): Likewise.
15953         (VEC_LEN): New macro.
15954         * math/test-double-vlen8.h: Include test-double.h,
15955         test-math-no-inline.h and test-math-vector.h.
15956         (FLOAT): Remove macro.
15957         (FUNC): Likewise.
15958         (MATHCONST): Likewise.
15959         (PRINTF_EXPR): Likewise.
15960         (PRINTF_XEXPR): Likewise.
15961         (PRINTF_NEXPR): Likewise.
15962         (TEST_DOUBLE): Likewise.
15963         (TEST_MATHVEC): Likewise.
15964         (__NO_MATH_INLINES): Likewise.
15965         (CNCT): Likewise.
15966         (CONCAT): Likewise.
15967         (WRAPPER_NAME): Likewise.
15968         (WRAPPER_DECL): Likewise.
15969         (WRAPPER_DECL_ff): Likewise.
15970         (WRAPPER_DECL_fFF): Likewise.
15971         (VECTOR_WRAPPER): Likewise.
15972         (VECTOR_WRAPPER_ff): Likewise.
15973         (VECTOR_WRAPPER_fFF): Likewise.
15974         (VEC_LEN): New macro.
15975         * math/test-float-vlen4.h: Include test-float.h,
15976         test-math-no-inline.h and test-math-vector.h.
15977         (FLOAT): Remove macro.
15978         (FUNC): Likewise.
15979         (MATHCONST): Likewise.
15980         (PRINTF_EXPR): Likewise.
15981         (PRINTF_XEXPR): Likewise.
15982         (PRINTF_NEXPR): Likewise.
15983         (TEST_FLOAT): Likewise.
15984         (TEST_MATHVEC): Likewise.
15985         (__NO_MATH_INLINES): Likewise.
15986         (CNCT): Likewise.
15987         (CONCAT): Likewise.
15988         (WRAPPER_NAME): Likewise.
15989         (WRAPPER_DECL): Likewise.
15990         (WRAPPER_DECL_ff): Likewise.
15991         (WRAPPER_DECL_fFF): Likewise.
15992         (VECTOR_WRAPPER): Likewise.
15993         (VECTOR_WRAPPER_ff): Likewise.
15994         (VECTOR_WRAPPER_fFF): Likewise.
15995         (VEC_LEN): New macro.
15996         * math/test-float-vlen8.h: Include test-float.h,
15997         test-math-no-inline.h and test-math-vector.h.
15998         (FLOAT): Remove macro.
15999         (FUNC): Likewise.
16000         (MATHCONST): Likewise.
16001         (PRINTF_EXPR): Likewise.
16002         (PRINTF_XEXPR): Likewise.
16003         (PRINTF_NEXPR): Likewise.
16004         (TEST_FLOAT): Likewise.
16005         (TEST_MATHVEC): Likewise.
16006         (__NO_MATH_INLINES): Likewise.
16007         (CNCT): Likewise.
16008         (CONCAT): Likewise.
16009         (WRAPPER_NAME): Likewise.
16010         (WRAPPER_DECL): Likewise.
16011         (WRAPPER_DECL_ff): Likewise.
16012         (WRAPPER_DECL_fFF): Likewise.
16013         (VECTOR_WRAPPER): Likewise.
16014         (VECTOR_WRAPPER_ff): Likewise.
16015         (VECTOR_WRAPPER_fFF): Likewise.
16016         (VEC_LEN): New macro.
16017         * math/test-float-vlen16.h: Include test-float.h,
16018         test-math-no-inline.h and test-math-vector.h.
16019         (FLOAT): Remove macro.
16020         (FUNC): Likewise.
16021         (MATHCONST): Likewise.
16022         (PRINTF_EXPR): Likewise.
16023         (PRINTF_XEXPR): Likewise.
16024         (PRINTF_NEXPR): Likewise.
16025         (TEST_FLOAT): Likewise.
16026         (TEST_MATHVEC): Likewise.
16027         (__NO_MATH_INLINES): Likewise.
16028         (CNCT): Likewise.
16029         (CONCAT): Likewise.
16030         (WRAPPER_NAME): Likewise.
16031         (WRAPPER_DECL): Likewise.
16032         (WRAPPER_DECL_ff): Likewise.
16033         (WRAPPER_DECL_fFF): Likewise.
16034         (VECTOR_WRAPPER): Likewise.
16035         (VECTOR_WRAPPER_ff): Likewise.
16036         (VECTOR_WRAPPER_fFF): Likewise.
16037         (VEC_LEN): New macro.
16038         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
16039         test-vec-loop.h.
16040         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16041         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16042         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16043         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16044         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16045         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16046         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16047
16048 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16049
16050         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
16051         (__getlogin_r): ... this.
16052
16053 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16054
16055         [BZ #18594]
16056         * math/s_ccosh.c (__ccosh): Compare with least normal value
16057         instead of comparing class with FP_SUBNORMAL.
16058         * math/s_ccoshf.c (__ccoshf): Likewise.
16059         * math/s_ccoshl.c (__ccoshl): Likewise.
16060         * math/s_cexp.c (__cexp): Likewise.
16061         * math/s_cexpf.c (__cexpf): Likewise.
16062         * math/s_cexpl.c (__cexpl): Likewise.
16063         * math/s_csin.c (__csin): Likewise.
16064         * math/s_csinf.c (__csinf): Likewise.
16065         * math/s_csinh.c (__csinh): Likewise.
16066         * math/s_csinhf.c (__csinhf): Likewise.
16067         * math/s_csinhl.c (__csinhl): Likewise.
16068         * math/s_csinl.c (__csinl): Likewise.
16069         * math/s_ctan.c (__ctan): Likewise.
16070         * math/s_ctanf.c (__ctanf): Likewise.
16071         * math/s_ctanh.c (__ctanh): Likewise.
16072         * math/s_ctanhf.c (__ctanhf): Likewise.
16073         * math/s_ctanhl.c (__ctanhl): Likewise.
16074         * math/s_ctanl.c (__ctanl): Likewise.
16075         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
16076         csin, csinh, ctan and ctanh.
16077         * math/auto-libm-test-out: Regenerated.
16078         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
16079         * sysdeps/i386/fpu/libm-test-ulps: Update.
16080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16081
16082 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16083
16084         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
16085         return value is wrong, print the expected value too.
16086
16087 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16088
16089         [BZ #18585]
16090         * elf/readlib.c (is_gdb_python_file): New.
16091         (process_file): Don't issue errors on filenames with -gdb.py
16092         suffix.
16093
16094 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16095
16096         * math/auto-libm-test-in: Add more tests of csin and csinh.
16097         * math/auto-libm-test-out: Regenerated.
16098         * math/libm-test.inc (csin_test_data): Remove tests moved to
16099         auto-libm-test-in.
16100         (csinh_test_data): Likewise.
16101
16102         [BZ #18593]
16103         * math/s_csin.c (__csin): Negate before rather than after possibly
16104         overflowing multiplication.
16105         * math/s_csinf.c (__csinf): Likewise.
16106         * math/s_csinh.c (__csinh): Likewise.
16107         * math/s_csinhf.c (__csinhf): Likewise.
16108         * math/s_csinhl.c (__csinhl): Likewise.
16109         * math/s_csinl.c (__csinl): Likewise.
16110         * math/auto-libm-test-in: Add some tests of csin and csinh.
16111         * math/auto-libm-test-out: Regenerated.
16112         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
16113         (csinh_test_data): Likewise.
16114         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16115
16116         [BZ #18586]
16117         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
16118         underflow exception for small results.
16119
16120 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
16121
16122         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16123         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
16124         variable and included header.
16125         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
16126         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
16127         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
16128         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
16129         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
16130         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
16131         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
16132         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
16133         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
16134         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
16135         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
16136         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
16137         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
16138         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
16139         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
16140         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
16141
16142 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16143
16144         [BZ #16526]
16145         [BZ #16538]
16146         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
16147         (__sin): Force underflow exception for arguments with small
16148         absolute value.
16149         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
16150         (__kernel_sinf): Force underflow exception for arguments with
16151         small absolute value.
16152         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
16153         (__kernel_sincosl): Force underflow exception for arguments with
16154         small absolute value.
16155         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
16156         (__kernel_sinl): Force underflow exception for arguments with
16157         small absolute value.
16158         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
16159         (__kernel_sincosl): Force underflow exception for arguments with
16160         small absolute value.
16161         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
16162         (__kernel_sinl): Force underflow exception for arguments with
16163         small absolute value.
16164         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
16165         (__kernel_sinl): Force underflow exception for arguments with
16166         small absolute value.
16167         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
16168         (__kernel_sinf): Force underflow exception for arguments with
16169         small absolute value.
16170         * math/auto-libm-test-in: Add more tests of sin and sincos.
16171         * math/auto-libm-test-out: Regenerated.
16172
16173         [BZ #18245]
16174         [BZ #18583]
16175         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
16176         (__kernel_standard_l): Use feholdexcept and fesetenv around
16177         conversion to double instead of special-casing overflow and
16178         underflow.
16179         * math/libm-test.inc (fmod_test_data): Add more tests.
16180         (remainder_test_data): Likewise.
16181         (sqrt_test_data): Likewise.
16182
16183 2015-06-23  Torvald Riegel  <triegel@redhat.com>
16184
16185         [BZ #17403]
16186         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
16187         atomic_read_barrier, atomic_write_barrier): Define.
16188         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
16189         atomic_read_barrier, atomic_write_barrier): Define.
16190
16191 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16192
16193         * math/Makefile [$(PERL) != no]
16194         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
16195         dependency on libm-test.stmp below the inclusion of Rules.
16196
16197 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16198
16199         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16200         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
16201         and included header.
16202         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
16203         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
16204         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
16205         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
16206         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
16207         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
16208         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
16209         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
16210         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
16211         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
16212         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
16213         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
16214         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
16215         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
16216         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
16217         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
16218         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
16219         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
16220         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
16221
16222 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16223
16224         [BZ #18371]
16225         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
16226         intermediate but not final result might underflow.
16227         * math/s_csqrtf.c (__csqrtf): Likewise.
16228         * math/s_csqrtl.c (__csqrtl): Likewise.
16229         * math/auto-libm-test-in: Add more tests of csqrt.
16230         * math/auto-libm-test-out: Regenerated.
16231         * sysdeps/i386/fpu/libm-test-ulps: Update.
16232
16233         [BZ #18219]
16234         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
16235         threshold on absolute value of exponent for which scaling is used.
16236         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
16237         * math/auto-libm-test-in: Add more tests of exp2.
16238         * math/auto-libm-test-out: Regenerated.
16239
16240 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
16241
16242         [BZ #17977]
16243         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
16244         when initializing interface list, based on the bug analysis
16245         and the patch proposed by Eric Newton.
16246         * resolv/tst-res_hconf_reorder.c: New test.
16247         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
16248         tst-res_hconf_reorder.
16249         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
16250         and $(shared-thread-library).
16251         (tst-res_hconf_reorder-ENV): New variable.
16252
16253         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
16254         in comment.
16255
16256 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
16257
16258         [BZ #16353]
16259         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
16260         (__expm1): Force underflow exception for arguments with small
16261         absolute value.
16262         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
16263         (__expm1f): Force underflow exception for arguments with small
16264         absolute value.
16265         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
16266         (__expm1): Force underflow exception for arguments with small
16267         absolute value.
16268         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
16269         (__expm1f): Force underflow exception for arguments with small
16270         absolute value.
16271         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16272         Check for small arguments before calling __expm1.
16273         * math/auto-libm-test-in: Do not mark underflow exceptions as
16274         possibly missing for bug 16353.
16275         * math/auto-libm-test-out: Regenerated.
16276
16277 2015-06-22  Andreas Schwab  <schwab@suse.de>
16278
16279         [BZ #18513]
16280         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
16281         PTR queries.
16282
16283 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
16284
16285         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
16286
16287         * string/strcoll_l.c: Remove unused struct element idxnow.
16288
16289 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
16290
16291         [BZ #18569]
16292         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
16293         underflow and return argument in case of subnormal argument.
16294         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16295         Likewise.
16296         * math/auto-libm-test-in: Add more tests of expm1.
16297         * math/auto-libm-test-out: Regenerated.
16298
16299         [BZ #16361]
16300         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16301         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16302         tiny results.
16303         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16304         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16305         tiny results.
16306         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
16307         mark underflow exceptions as possibly missing for bug 16361.
16308         * math/auto-libm-test-out: Regenerated.
16309
16310 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
16311
16312         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
16313         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
16314         Remove variable.
16315         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
16316         (test-xfail-XOPEN2K8/utmpx.h/conform).
16317
16318         * conform/conformtest.pl ($xerrors): New variable.
16319         (note_error): New function.
16320         (compiletest): New argument $xfail.  Use not_error.
16321         (runtest): Likewise.
16322         (top level): Handle xfail- lines.  Update calls to compiletest and
16323         runtest.  Handle xfail- and optional- in headers listed with
16324         allow-header.
16325         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
16326         (O_EXEC): Likewise.
16327         (O_SEARCH): Likewise.
16328         * conform/data/stropts.h-data (ioctl): Likewise.
16329         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
16330         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
16331         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
16332         (msghdr.msg_controllen): Likewise.
16333         (cmsghdr.cmsg_len): Likewise.
16334         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
16335         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
16336         variable.
16337         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
16338         (test-xfail-XPG4/stropts.h/conform): Likewise.
16339         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
16340         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
16341         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
16342         (test-xfail-UNIX98/stropts.h/conform): Likewise.
16343         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
16344         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
16345         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
16346         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
16347         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
16348         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
16349         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
16350         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
16351         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
16352         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
16353         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
16354         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
16355         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
16356         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
16357         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
16358
16359 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16360
16361         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
16362         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
16363         definitions for proper unfolding of __MATHDECL_VEC.
16364
16365 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16366
16367         * benchtests/bench-strcoll.c:
16368         Include string.h.
16369         (main): Remove unused variable res.
16370
16371 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16372
16373         * timezone/Makefile (%/UTC %/Universal):
16374         Generate test-result files for UTC and Universal.
16375
16376 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16377
16378         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16379
16380 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16381
16382         [BZ #16350]
16383         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16384         for arguments with small absolute value.
16385         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16386         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16387         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16388         (__asinh): Force underflow exception for arguments with small
16389         absolute value.
16390         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16391         (__asinhf): Force underflow exception for arguments with small
16392         absolute value.
16393         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16394         (__asinhl): Force underflow exception for arguments with small
16395         absolute value.
16396         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16397         (__asinhl): Force underflow exception for arguments with small
16398         absolute value.
16399         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16400         (__asinhl): Force underflow exception for arguments with small
16401         absolute value.
16402         * math/auto-libm-test-in: Do not mark underflow exceptions as
16403         possibly missing for bug 16350.
16404         * math/auto-libm-test-out: Regenerated.
16405
16406         * include/bits/ipc.h: Remove file.
16407         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16408         variable.
16409         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16410         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16411         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16412         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16413         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16414         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16415         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16416         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16417         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16418
16419         * math/auto-libm-test-in: Remove spurious underflow allowance for
16420         tests of cexp.
16421         * math/auto-libm-test-out: Regenerated.
16422
16423         [BZ #18558]
16424         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16425         unconditional definition.
16426         (MCAST_BLOCK_SOURCE): Likewise.
16427         (MCAST_UNBLOCK_SOURCE): Likewise.
16428         (MCAST_LEAVE_GROUP): Likewise.
16429         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16430         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16431         (MCAST_MSFILTER): Likewise.
16432         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16433         Remove variable.
16434         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16435         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16436         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16437         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16438         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16439
16440 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16441
16442         * NEWS: Mention addition of x86_64 vector sincosf.
16443         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16444         * math/test-float-vlen4.h: Likewise.
16445         * math/test-float-vlen8.h: Likewise.
16446         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16447         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16448         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16449         * sysdeps/x86_64/fpu/Versions: New versions added.
16450         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16451         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16452         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16453         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16454         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16455         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16456         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16457         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16458         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16459         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16460         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16461         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16462         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16463         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16464         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16465         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16466         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16467         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16468         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16469         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16470         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16471         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16472         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16473         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16474
16475         * NEWS: Mention addition of x86_64 vector sincos.
16476         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16477         * math/math.h (__MATHDECL_VEC): New macro.
16478         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16479         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16480         declaration under condition.
16481         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16482         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16483         TEST_VEC_LOOP change.
16484         * math/test-double-vlen4.h: Likewise.
16485         * math/test-double-vlen8.h: Likewise.
16486         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16487         * math/test-float-vlen4.h: Likewise.
16488         * math/test-float-vlen8.h: Likewise.
16489         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16490         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16491         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16492         * sysdeps/x86_64/fpu/Versions: New versions added.
16493         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16494         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16495         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16496         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16497         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16498         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16499         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16500         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16501         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16502         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16503         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16504         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16505         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16506         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16507         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16508         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16509         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16510         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16511         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16512         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16513         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16514         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16515         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16516         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16517
16518         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16519         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16520         redirections for powf.
16521         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16522         * sysdeps/x86_64/fpu/Versions: New versions added.
16523         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16524         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16525         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16526         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16527         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16528         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16529         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16530         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16531         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16532         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16533         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16534         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16535         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16536         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16537         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16538         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16539         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16540         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16541         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16542         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16543         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16544         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16545         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16546         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16547         * math/test-float-vlen16.h: Fixed 2 argument macro.
16548         * math/test-float-vlen4.h: Likewise.
16549         * math/test-float-vlen8.h: Likewise.
16550         * NEWS: Mention addition of x86_64 vector powf.
16551
16552 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16553
16554         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16555         and redefine.
16556         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16557         and redefine.
16558         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16559         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16560         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16561
16562         [BZ #18553]
16563         * resource/getpriority.c (getpriority): Rename to __getpriority
16564         and define as weak alias of __getpriority.
16565         * resource/setpriority.c (setpriority): Rename to __setpriority
16566         and define as weak alias of __setpriority.
16567         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16568         __getpriority and define as weak alias of __getpriority.
16569         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16570         __setpriority and define as weak alias of __setpriority.
16571         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16572         strong name.
16573         (setpriority): Use __setpriority as strong name.
16574         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16575         __getpriority and define as weak alias of __getpriority.
16576         * include/sys/resource.h (__getpriority): Declare.  Use
16577         libc_hidden_proto.
16578         (__setpriority): Likewise.
16579         (getpriority): Don't use libc_hidden_proto.
16580         (setpriority): Likewise.
16581         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16582         getpriority.  Call __setpriority instead of setpriority.
16583         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16584         Remove variable.
16585
16586         [BZ #18547]
16587         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16588         as weak alias of __getttynam.  Use prototype function definition.
16589         Call __setttyent, __getttyent and __endttyent instead of
16590         setttyent, getttyent and endttyent.
16591         (getttyent): Rename to __getttyent and define as weak alias of
16592         __getttyent.  Call __setttyent instead of setttyent.  Call
16593         __fgets_unlocked instead of fgets_unlocked.
16594         (setttyent): Rename to __setttyent and define as weak alias of
16595         __setttyent.
16596         (endttyent): Rename to __endttyent and define as weak alias of
16597         __endttyent.
16598         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16599         (__setttyent): Likewise.
16600         (__endttyent): Likewise.
16601         (getttyent): Don't use libc_hidden_proto.
16602         (setttyent): Likewise.
16603         (endttyent): Likewise.
16604         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16605         __endttyent instead of setttyent, getttyent and endttyent.
16606         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16607         Remove variable.
16608
16609         [BZ #18546]
16610         * socket/recv.c (__recv): Use libc_hidden_def.
16611         * socket/socket.c (__socket): Likewise.
16612         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16613         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16614         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16615         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16616         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16617         libc_hidden_def.
16618         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16619         libc_hidden_weak.
16620         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16621         Use libc_hidden_proto.
16622         (__recv): Likewise.
16623         * socket/Versions (libc): Export __recv and __socket at version
16624         GLIBC_PRIVATE.
16625         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16626         instead of recv.
16627         (init_mq_netlink): Call __socket instead of socket.
16628         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16629         Remove variable.
16630
16631         [BZ #18545]
16632         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16633         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16634         hidden_weak.
16635         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16636         define as alias of __mq_timedsend.  Use hidden_weak.
16637         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16638         __mq_timedsend as strong name.
16639         (mq_timedreceive): Use __mq_timedreceive as strong name.
16640         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16641         (__mq_timedreceive): Likewise.
16642         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16643         __mq_timedreceive instead of mq_timedreceive.
16644         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16645         instead of mq_timedsend.
16646         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16647         Remove variable.
16648
16649         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16650         hidden_def and hidden_weak instead of libc_hidden_def and
16651         libc_hidden_weak.
16652         (top level): Refer to hidden_def in comment.
16653         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16654         macro.  Use it instead of libc_hidden_def.
16655         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16656         specify __GI_* name explicitly.
16657         (mq_timedreceive): Likewise.
16658         (mq_setattr): Likewise.
16659
16660         [BZ #18544]
16661         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16662         __pthread_barrier_init and define as weak alias of
16663         __pthread_barrier_init.
16664         * sysdeps/sparc/nptl/pthread_barrier_init.c
16665         (pthread_barrier_init): Likewise.
16666         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16667         __pthread_barrier_wait and define as weak alias of
16668         __pthread_barrier_wait.
16669         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16670         (pthread_barrier_wait): Likewise.
16671         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16672         (pthread_barrier_wait): Likewise.
16673         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16674         (pthread_barrier_wait): Likewise.
16675         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16676         (pthread_barrier_wait): Likewise.
16677         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16678         __pthread_barrier_wait at version GLIBC_PRIVATE.
16679         * include/pthread.h (__pthread_barrier_init): Declare.
16680         (__pthread_barrier_wait): Likewise.
16681         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16682         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16683         (helper_thread): Likewise.
16684         (init_mq_netlink): Call __pthread_barrier_init instead of
16685         pthread_barrier_init.
16686
16687         [BZ #18542]
16688         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16689         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16690         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16691         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16692         vswscanf.
16693         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16694         Remove variable.
16695
16696         [BZ #18540]
16697         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16698         strong alias of _IO_fflush.  Use libc_hidden_def.
16699         * libio/iofflush_u.c (fflush_unlocked): Rename to
16700         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16701         Use libc_hidden_weak.
16702         * include/stdio.h (__fflush_unlocked): Declare.  Use
16703         libc_hidden_proto.
16704         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16705         fflush_unlocked.
16706         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16707         Remove variable.
16708
16709         [BZ #18539]
16710         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16711         define as weak alias of __addseverity.
16712         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16713         Remove variable.
16714         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16715         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16716         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16717
16718         [BZ #18536]
16719         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16720         (__tfind): Likewise.
16721         (__tdelete): Likewise.
16722         (__twalk): Likewise.
16723         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16724         __twalk to GLIBC_PRIVATE.
16725         * include/search.h (__tsearch): Use libc_hidden_proto.
16726         (__tfind): Likewise.
16727         (__tdelete): Likewise.
16728         (__twalk): Likewise.
16729         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16730         Call __tdelete instead of tdelete.
16731         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16732         tfind.  Call __tsearch instead of tsearch.
16733         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16734         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16735         Remove variable.
16736         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16737
16738         [BZ #18534]
16739         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16740         (dprintf): Define as a weak alias of __dprintf, not a strong
16741         alias.
16742         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16743         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16744         dprintf.
16745         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16746         Remove variable.
16747         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16748         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16749
16750         [BZ #18533]
16751         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16752         not a strong alias.
16753         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16754         Remove variable.
16755
16756         [BZ #18532]
16757         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16758         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16759         (in6addr_loopback): Rename to __in6addr_loopback and define as
16760         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16761         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16762         libc_hidden_proto.
16763         (__in6addr_any): Likewise.
16764         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16765         in6addr_any.
16766         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16767         variable.
16768         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16769
16770 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16771
16772         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16773         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16774         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16775         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16776         redirections for pow.
16777         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16778         * sysdeps/x86_64/fpu/Versions: New versions added.
16779         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16780         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16781         build of SSE, AVX2 and AVX512 IFUNC versions.
16782         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16783         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16784         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16785         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16786         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16787         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16788         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16789         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16790         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16791         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16792         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16793         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16794         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16795         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16796         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16797         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16798         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16799         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16800         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16801         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16802         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16803         * NEWS: Mention addition of x86_64 vector pow.
16804
16805         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16806         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16807         redirections for expf.
16808         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16809         * sysdeps/x86_64/fpu/Versions: New versions added.
16810         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16811         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16812         build of SSE, AVX2 and AVX512 IFUNC versions.
16813         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16814         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16815         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16816         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16817         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16818         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16819         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16820         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16821         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16822         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16823         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16824         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16825         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16826         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16827         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16828         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16829         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16830         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16831         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16832         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16833         * NEWS: Mention addition of x86_64 vector expf.
16834
16835         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16836         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16837         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16838         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16839         redirections for exp.
16840         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16841         * sysdeps/x86_64/fpu/Versions: New versions added.
16842         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16843         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16844         build of SSE, AVX2 and AVX512 IFUNC versions.
16845         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16846         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16847         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16848         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16849         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16850         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16851         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16852         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16853         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16854         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16855         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16856         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16857         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16858         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16859         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16860         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16861         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16862         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16863         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16864         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16865         * NEWS: Mention addition of x86_64 vector exp.
16866
16867         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16868         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16869         redirections for logf.
16870         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16871         * sysdeps/x86_64/fpu/Versions: New versions added.
16872         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16873         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16874         build of SSE, AVX2 and AVX512 IFUNC versions.
16875         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16876         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16877         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16878         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16879         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16880         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16881         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16882         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16883         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16884         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16885         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16886         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16887         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16888         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16889         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16890         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16891         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16892         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16893         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16894         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16895         * NEWS: Mention addition of x86_64 vector logf.
16896
16897         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16898         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16899         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16900         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16901         redirections for log.
16902         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16903         * sysdeps/x86_64/fpu/Versions: New versions added.
16904         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16905         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16906         build of SSE, AVX2 and AVX512 IFUNC versions.
16907         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16908         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16909         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16910         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16911         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16912         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16913         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16914         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16915         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16916         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16917         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16918         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16919         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16920         test.
16921         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16922         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16923         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16924         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16925         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16926         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16927         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16928         * NEWS: Mention addition of x86_64 vector log.
16929
16930 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16931
16932         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16933         cfi_adjust_cfa_offset argument.
16934         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16935         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16936
16937         [BZ #18034]
16938         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16939         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16940         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16941         ordering using ldar.
16942         (_dl_tlsdesc_dynamic): Likewise.
16943         (_dl_tlsdesc_return_lazy): Likewise.
16944         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16945         relaxed atomics instead of volatile and synchronize with release store.
16946         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16947         volatile.
16948         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16949
16950 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16951
16952         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16953         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16954         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16955         * sysdeps/x86_64/fpu/Versions: New versions added.
16956         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16957         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16958         build of SSE, AVX2 and AVX512 IFUNC versions.
16959         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16960         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16961         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16962         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16963         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16964         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16965         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16966         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16967         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16968         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16969         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16970         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16971         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16972         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16973         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16974         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16975         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16976         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16977         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16978         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16979         * NEWS: Mention addition of x86_64 vector sinf.
16980
16981 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16982
16983         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16984         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16985         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16986         Remove variable.
16987         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16988         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16989
16990 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16991
16992         [BZ #18530]
16993         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16994         strong alias of _IO_fputs.  Use libc_hidden_def.
16995         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16996         and define as weak alias of __fputs_unlocked.  Use
16997         libc_hidden_weak.
16998         * include/stdio.h (__fputs_unlocked): Declare.  Use
16999         libc_hidden_proto.
17000         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
17001         fputs_unlocked.
17002
17003         [BZ #18529]
17004         * resolv/netdb.h [__USE_POSIX]: Change condition to
17005         [__USE_XOPEN2K].
17006         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
17007         not expect.
17008         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
17009         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
17010         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
17011         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
17012         [XPG4 || UNIX98] (AI_ALL): Likewise.
17013         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
17014         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
17015         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
17016         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
17017         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
17018         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
17019         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
17020         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
17021         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
17022         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
17023         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
17024         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
17025         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
17026         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
17027         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
17028         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17029         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17030         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
17031         [XPG4 || UNIX98] (gai_strerror): Likewise.
17032         [XPG4 || UNIX98] (getaddrinfo): Likewise.
17033         [XPG4 || UNIX98] (getnameinfo): Likewise.
17034
17035         [BZ #18528]
17036         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
17037         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
17038         __USE_XOPEN2K8].
17039         (getgrent): Likewise.
17040         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
17041         expect.
17042         [XPG3 || POSIX2008] (endgrent): Likewise.
17043         [XPG3] (setgrent): Likewise.
17044         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
17045         variable.
17046         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
17047
17048         [BZ #18527]
17049         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
17050         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
17051         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
17052         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
17053         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
17054         * include/unistd.h (__getlogin_r): Declare.  Use
17055         libc_hidden_proto.
17056         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
17057         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
17058         variable.
17059         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
17060         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
17061         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
17062
17063 2015-06-12  Martin Sebor  <msebor@redhat.com>
17064
17065         [BZ #18512]
17066         * Makerules (check-install-supported): New target.
17067         (install): Add check-install-supported as a dependency.
17068         * manual/install.texi (Installing the C Library): Document
17069         that overriding prefix and exec_prefix is not supported.
17070         Mention DESTDIR.
17071         * INSTALL: Regenerate from the above.
17072
17073 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17074
17075         [BZ #18519]
17076         * posix/Versions (libc): Export __libc_pread at version
17077         GLIBC_PRIVATE.
17078         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
17079         instead of pread.
17080         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
17081         variable.
17082
17083         [BZ #18522]
17084         * misc/efgcvt_r.c
17085         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
17086         (cvt_symbol): Use weak_alias instead of strong_alias.
17087         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
17088         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
17089         Remove variable.
17090         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
17091         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
17092
17093         [BZ #18520]
17094         * inet/herrno.c (h_errno): Rename to __h_errno.
17095         (__libc_h_errno): Define as alias of __h_errno not h_errno.
17096         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
17097         to __h_errno instead of h_errno.
17098         * nptl/herrno.c (h_errno): Rename to __h_errno.
17099         (__h_errno_location): Refer to __h_errno not h_errno.
17100         * resolv/Versions (h_errno): Rename to __h_errno.
17101         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
17102         Remove variable.
17103         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
17104
17105 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
17106
17107         * configure.ac: More strict check for AVX512 assembler support.
17108         * configure: Regenerated.
17109
17110         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
17111         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
17112         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17113         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
17114         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17115         * sysdeps/x86_64/fpu/Versions: New versions added.
17116         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17117         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17118         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17119         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
17120         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
17121         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
17122         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
17123         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
17124         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
17125         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
17126         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
17127         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
17128         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
17129         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
17130         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
17131         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
17132         test.
17133         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
17134         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17135         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17136         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17137         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17138         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17139         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17140         * NEWS: Mention addition of x86_64 vector sin.
17141
17142 2015-06-11  Florian Weimer  <fweimer@redhat.com>
17143
17144         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
17145         comment.
17146
17147 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
17148
17149         [BZ #18479]
17150         * nptl/pt-interp.c: New file.
17151         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
17152         Add pt-interp.
17153         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
17154         $(common-objpfx)runtime-linker.h.
17155
17156 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
17157
17158         * Makeconfig (+interp): Remove unused variable.
17159         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
17160         only.  Depend on $(common-objpfx)runtime-linker.h instead of
17161         $(elf-objpfx)runtime-linker.h.
17162         ($(elf-objpfx)runtime-linker.h): Rename to
17163         $(common-objpfx)runtime-linker.h and move ...
17164         * Makerules [$(build-shared) = yes]: ... here.
17165         * elf/interp.c: Include <runtime-linker.h> instead of
17166         <elf/runtime-linker.h>.
17167
17168 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17169
17170         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
17171         (__gettimeofday_syscall): Remove vsyscall fallback.
17172         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
17173         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
17174         Add syscall fallback function.
17175         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
17176         if vDSO is not present.
17177         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
17178         fallback function.
17179         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
17180         present.
17181         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
17182         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17183
17184 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
17185
17186         [BZ #18497]
17187         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
17188         of wcscmp.
17189         (wcscmp): Define as weak alias of WCSCMP.
17190         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
17191         wcscoll.
17192         (USE_HIDDEN_DEF): Define.
17193         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
17194         __wcscoll.  Don't use libc_hidden_weak.
17195         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
17196         wcscmp.
17197         * sysdeps/i386/i686/multiarch/wcscmp-c.c
17198         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
17199         __GI_wcscmp.
17200         (weak_alias): Undefine and redefine.
17201         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
17202         __wcscmp and define as weak alias of __wcscmp.
17203         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
17204         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
17205         (__wcscoll): Likewise.
17206         (wcscmp): Don't use libc_hidden_proto.
17207         (wcscoll): Likewise.
17208         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
17209         wcscoll.
17210         * posix/regexec.c (check_node_accept_bytes): Likewise.
17211         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
17212         variable.
17213         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
17214         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
17215
17216         [BZ #18507]
17217         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
17218         __fstatvfs and define as weak alias of __fstatvfs.  Use
17219         libc_hidden_weak.
17220         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
17221         and define as weak alias of __statvfs.  Use libc_hidden_weak.
17222         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
17223         Define as alias of __fstatvfs, not fstatvfs.
17224         (fstatvfs64): Likewise.
17225         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
17226         Define as alias of __statvfs, not statvfs.
17227         (statvfs64): Likewise.
17228         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
17229         Remove variable.
17230
17231 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17232
17233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17234         (HAVE_GETCPU_VSYSCALL): Define.
17235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17236         (HAVE_GETCPU_VSYSCALL): Likewise.
17237         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
17238         * sysdeps/unix/sysv/linux/sched_getcpu.c
17239         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
17240         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
17241         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
17242         prototype.
17243         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17244         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
17245         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
17246         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
17247         Define.
17248         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
17249         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17250         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
17251         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17252
17253 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
17254
17255         * sysdeps/x86_64/fpu/Makefile: New file.
17256         * sysdeps/x86_64/fpu/Versions: New file.
17257         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
17258         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
17259         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
17260         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
17261         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
17262         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
17263         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
17264         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
17265         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
17266         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
17267         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
17268         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
17269         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
17270         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17271         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17272         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
17273         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
17274         * sysdeps/x86_64/configure.ac: Options for libmvec build.
17275         * sysdeps/x86_64/configure: Regenerated.
17276         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
17277         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
17278         * manual/install.texi (Configuring and compiling): Document
17279         --disable-mathvec.
17280         * INSTALL: Regenerated.
17281         * NEWS: Mention addition of libmvec and x86_64 vector cos.
17282
17283         * math/Makefile: Added rules for vector tests.
17284         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
17285         declaration under condition.
17286         * math/test-double-vlen2.h: New file.
17287         * math/test-double-vlen4.h: New file.
17288         * math/test-double-vlen8.h: New file.
17289         * math/test-vec-loop.h: Added initialization macro.
17290         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
17291         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
17292         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
17293         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
17294         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
17295         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
17296         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
17297         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
17298         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
17299         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
17300         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
17301
17302         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17303         * sysdeps/x86_64/fpu/Versions: New versions added.
17304         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
17305         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
17306         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
17307         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
17308         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
17309         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
17310         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
17311         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
17312         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
17313         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
17314         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
17315         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
17316         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
17317         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17318         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17319         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17320         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
17321         * NEWS: Mention addition of x86_64 vector cosf.
17322
17323         * math/Makefile: Added CFLAGS for new tests.
17324         * math/test-float-vlen16.h: New file.
17325         * math/test-float-vlen4.h: New file.
17326         * math/test-float-vlen8.h: New file.
17327         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
17328         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
17329         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17330         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
17331         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
17332         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
17333         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
17334         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
17335         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
17336         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
17337         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
17338
17339 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
17340
17341         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
17342         * locale/programs/ld-ctype.c: Likewise.
17343
17344 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
17345
17346         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
17347         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
17348         bit_ZMM16_31_state): New macro.
17349         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17350         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
17351
17352 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
17353
17354         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
17355
17356 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
17357
17358         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
17359
17360 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
17361
17362         [BZ #18498]
17363         * libio/memstream.c (open_memstream): Rename to __open_memstream
17364         and define as weak alias of __open_memstream.
17365         * include/stdio.h (__open_memstream): Declare.  Use
17366         libc_hidden_proto.
17367         (open_memstream): Don't use libc_hidden_proto.
17368         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17369         open_memstream.
17370         * posix/getopt.c (_getopt_internal_r): Likewise.
17371         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17372         variable.
17373         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17374         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17375         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17376
17377         [BZ #18496]
17378         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17379         instead of wcrtomb.
17380
17381         [BZ #18483]
17382         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17383         [__USE_XOPEN2K8].  Remove redundant #endif.
17384         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17385         Remove redundant #if.
17386         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17387         Remove variable.
17388         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17389         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17390
17391         [BZ #18495]
17392         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17393         (__iswlower): Likewise.
17394         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17395         (__iswlower): Likewise.
17396         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17397         instead of towlower.
17398         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17399         instead of iswlower.  Call __towupper instead of towupper.
17400         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17401         instead of iswalnum.
17402
17403 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17404
17405         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17406         errors to stderr.
17407
17408 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17409
17410         [BZ #15661]
17411         [BZ #17322]
17412         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17413         Check for overflow properly.  Check for O_APPEND.  Ignore large
17414         file system block sizes.  Add comments about problems.
17415         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17416         * manual/filesys.texi (Storage Allocation): New node.
17417
17418 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17419
17420         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17421         cancellable syscalls.
17422         (SYS_ify): Add guard to no redefine it.
17423         (INLINE_SYSCALL): Likewise.
17424         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17425         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17426         SYSCALL_CANCEL instead.
17427         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17428         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17429         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17430         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17431         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17432         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17433         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17434         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17435         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17436         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17437         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17438         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17439         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17440         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17441         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17442         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17443         Likewise.
17444         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17445         (__libc_pread64): Likewise.
17446         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17447         (__libc_preadv): Likewise.
17448         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17449         (__libc_readv64): Likewise.
17450         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17451         (__libc_pwrite): Likewise.
17452         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17453         (__libc_pwrite64): Likewise.
17454         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17455         (__libc_pwritev): Likewise.
17456         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17457         (__libc_pwritev64): Likewise.
17458         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17459         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17460         (sync_file_range): Likewise.
17461         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17462         Likewise.
17463         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17464         Likewise.
17465         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17466         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17467         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17468         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17469         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17470         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17471         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17472         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17474         Likewise.
17475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17476         (__libc_read64): Likewise.
17477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17478         Likewise.
17479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17480         Likewise.
17481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17482         Likewise.
17483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17484         Likewise.
17485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17486         (__libc_pread64): Likewise.
17487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17488         Likewise.
17489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17490         (__libc_pwrite64): Likewise.
17491         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17492         (sync_file_range): Likewise.
17493         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17494         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17495         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17496         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17497         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17498         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17499         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17500         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17501         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17502         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17503         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17504         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17505         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17506         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17507         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17508         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17509         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17510         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17511         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17512         Likewise.
17513         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17514         Likewise.
17515         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17516         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17517         Likewise.
17518         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17519         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17520         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17521         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17522         Likewise.
17523         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17524         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17525         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17526         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17527         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17528
17529 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17530
17531         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17532         Include dl-vdso.
17533         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17534         Use VDSO routines for gettimeofday, clock_gettime if
17535         available.
17536         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17537         Declare VDSO symbols.
17538         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17539         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17540         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17541         * sysdeps/unix/sysv/linux/arm/Versions: Add
17542         __vdso_clock_gettime.
17543
17544 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17545
17546         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17547         be an inline implementation regardless of library is built within.
17548         (open_not_cancel_2): Likewise.
17549         (__read_nocancel): Likewise.
17550         (__write_nocancel): Likewise.
17551         (openat_not_cancel): Likewise.
17552         (openat_not_cancel_3): Likewise.
17553         (openat64_not_cancel): Likewise.
17554         (openat64_not_cancel_3): Likewise.
17555         (__close_nocancel): Likewise.
17556         (pause_not_cancel): Likewise.
17557         (nanosleep_not_cancel): Likewise.
17558         (sigsuspend_not_cancel): Likewise.
17559
17560 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17561
17562         [BZ #14958]
17563         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17564         wake-up.
17565         (__pthread_rwlock_rdlock_slow): Likewise.
17566         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17567         Likewise.
17568         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17569         Likewise.
17570         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17571         * nptl/tst-rwlock16.c: New file.
17572         * nptl/Makefile (tests): Add new test.
17573
17574 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17575
17576         [BZ #18324]
17577         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17578         missing wake-up of readers.
17579         * nptl/tst-rwlock15.c: New file.
17580         * nptl/Makefile (tests): Add new test.
17581
17582 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17583
17584         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17585         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17586         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17587         and __nacl_supply_interface_rtld.
17588         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17589         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17590         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17591         Add __nacl_supply_interface_rtld.
17592         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17593
17594 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17595
17596         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17597         isfinite.
17598         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17599         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17600
17601 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17602
17603         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17604         __signbit* with standard C99 macros.
17605         * math/e_exp10l.c: Likewise.
17606         * math/e_exp2l.c: Likewise.
17607         * math/e_scalb.c: Likewise.
17608         * math/e_scalbf.c: Likewise.
17609         * math/e_scalbl.c: Likewise.
17610         * math/s_ldexp.c: Likewise.
17611         * math/s_ldexpf.c: Likewise.
17612         * math/s_ldexpl.c: Likewise.
17613         * math/w_atan2.c: Likewise.
17614         * math/w_atan2f.c: Likewise.
17615         * math/w_atan2l.c: Likewise.
17616         * math/w_cosh.c: Likewise.
17617         * math/w_coshf.c: Likewise.
17618         * math/w_coshl.c: Likewise.
17619         * math/w_exp10.c: Likewise.
17620         * math/w_exp10f.c: Likewise.
17621         * math/w_exp10l.c: Likewise.
17622         * math/w_exp2.c: Likewise.
17623         * math/w_exp2f.c: Likewise.
17624         * math/w_exp2l.c: Likewise.
17625         * math/w_fmod.c: Likewise.
17626         * math/w_fmodf.c: Likewise.
17627         * math/w_fmodl.c: Likewise.
17628         * math/w_hypot.c: Likewise.
17629         * math/w_hypotf.c: Likewise.
17630         * math/w_hypotl.c: Likewise.
17631         * math/w_jnl.c: Likewise.
17632         * math/w_lgamma.c: Likewise.
17633         * math/w_lgamma_r.c: Likewise.
17634         * math/w_lgammaf.c: Likewise.
17635         * math/w_lgammaf_r.c: Likewise.
17636         * math/w_lgammal.c: Likewise.
17637         * math/w_lgammal_r.c: Likewise.
17638         * math/w_pow.c: Likewise.
17639         * math/w_powf.c: Likewise.
17640         * math/w_powl.c: Likewise.
17641         * math/w_remainder.c: Likewise.
17642         * math/w_remainderf.c: Likewise.
17643         * math/w_remainderl.c: Likewise.
17644         * math/w_scalb.c: Likewise.
17645         * math/w_scalbf.c: Likewise.
17646         * math/w_scalbl.c: Likewise.
17647         * math/w_scalbln.c: Likewise.
17648         * math/w_scalblnf.c: Likewise.
17649         * math/w_scalblnl.c: Likewise.
17650         * math/w_sinh.c: Likewise.
17651         * math/w_sinhf.c: Likewise.
17652         * math/w_sinhl.c: Likewise.
17653         * math/w_tgamma.c: Likewise.
17654         * math/w_tgammaf.c: Likewise.
17655         * math/w_tgammal.c: Likewise.
17656         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17657         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17658         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17659         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17660         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17661         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17662         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17663         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17664         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17665         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17666         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17667         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17668         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17669         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17670         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17671         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17672         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17673         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17674         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17675         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17676         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17677         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17678         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17679         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17680         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17681         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17682         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17683         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17684         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17685         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17686         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17687         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17688         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17689         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17690         * stdio-common/printf_fp.c: Likewise.
17691         * stdio-common/printf_fphex.c: Likewise.
17692         * stdio-common/printf_size.c: Likewise.
17693
17694 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17695
17696         [BZ #18470]
17697         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17698         strnlen.
17699         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17700         Remove variable.
17701         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17702         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17703         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17704         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17705         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17706         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17707         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17708         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17709         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17710         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17711
17712         [BZ #18468]
17713         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17714         weak alias of __wmemchr.  Use libc_hidden_weak.
17715         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17716         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17717         instead of wmemchr.
17718
17719 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17720
17721         [BZ #18383]
17722         * elf/tst-tlsalign-extern.c: New file.
17723         * elf/tst-tlsalign-extern-static.c: New file.
17724         * elf/tst-tlsalign-vars.c: New file.
17725         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17726         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17727         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17728         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17729         (test-xfail-tst-tlsalign-extern-static): New variable.
17730
17731 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17732
17733         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17734         Use variable name _sc_err instead of err.
17735         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17736         instead of ret.
17737         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17738         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17739         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17740         (INLINE_SYSCALL): Likewise.
17741
17742         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17743         * include/string.h (__strnlen): Use libc_hidden_proto.
17744         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17745         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17746         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17747         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17748         (libc_hidden_def): Undefine and redefine.
17749         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17750         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17751         __GI_strnlen.
17752         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17753         libc_hidden_def.
17754         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17755
17756         [BZ #18469]
17757         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17758         weak alias of __towlower.  Use libc_hidden_weak.
17759         (towupper): Rename to __towupper and define as weak alias of
17760         __towupper.  Use libc_hidden_weak.
17761         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17762         (__towupper): Likewise.
17763         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17764         __towlower instead of towlower.
17765
17766 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17767
17768         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17769         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17770
17771 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17772
17773         * sysdeps/aarch64/libm-test-ulps: Update.
17774
17775 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17776
17777         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17778         Define.
17779         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17780         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17781         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17782         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17783         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17784         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17785         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17786
17787 2015-06-01  Martin Sebor  <msebor@redhat.com>
17788
17789         [BZ #18116]
17790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17791         (__setcontext): Use extended four-operand version of mtsf whenever
17792         possible.
17793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17794         (__novec_swapcontext): Likewise.
17795
17796 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17797
17798         * benchtests/scripts/compare_bench.py: New file.
17799         * benchtests/scripts/import_bench.py (mean): New function.
17800         (split_list): Likewise.
17801         (do_for_all_timings): Likewise.
17802         (compress_timings): Likewise.
17803
17804         * benchtests/scripts/import_bench.py: New file.
17805         * benchtests/scripts/validate_benchout.py: Import import_bench
17806         instead of jsonschema.
17807         (validate_bench): Remove function.
17808         (main): Use import_bench.
17809
17810 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17811
17812         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17813         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17814
17815 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17816
17817         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17818
17819 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17820
17821         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17822         set THREAD_SELF->tid to a magic value and futex-wake it.
17823         Pass its address to the thread_exit system call.
17824         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17825         bit is clear.
17826         * sysdeps/nacl/lowlevellock.h: New file.
17827         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17828
17829         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17830         Add TIMEOUT to current time, don't subtract it.
17831
17832 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17833
17834         [BZ #2981]
17835         [BZ #18422]
17836         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17837         ($(objpfx)tst-audit2.out): Also depend on
17838         $(objpfx)tst-auditmod9b.so.
17839         * elf/tst-audit2.c: Include <dlfcn.h>.
17840         (calloc_called): New.
17841         (calloc): Allow to be called more than once.
17842         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17843
17844 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17845
17846         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17847         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17848
17849 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17850
17851         * stdlib/monetary.h: Fix comment.
17852
17853 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17854
17855         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17856         Avoid using variables in #defines that might cause shadowing.
17857         (INTERNAL_VSYSCALL_CALL): Likewise.
17858
17859 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17860
17861         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17862
17863         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17864         * nptl/lll_timedlock_wait.c: ... to this new file.
17865         * nptl/Makefile (libpthread-routines): Add it.
17866         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17867         * nptl/lll_timedwait_tid.c: ... to this new file.
17868         * nptl/Makefile (libpthread-routines): Add it.
17869         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17870         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17871         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17872         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17873         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17874         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17875         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17876         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17877         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17878         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17879
17880 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17881
17882         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17883         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17884         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17885         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17886         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17887         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17888         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17889         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17890         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17891         * sysdeps/unix/sysv/linux/tile/sysdep.h
17892         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17893         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17894         using vDSO syscall macro.
17895
17896 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17897
17898         [BZ #17293]
17899         * uk_UA: Fix sorting order for Ukrainian locale
17900
17901 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17902
17903         * stdlib/monetary.h: Fix comment.
17904
17905 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17906
17907         [BZ #18234]
17908         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17909         st_mtim and st_ctim members.
17910         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17911         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17912         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17913         (struct stat64): Likewise.
17914         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17915         (struct stat64): Likewise.
17916         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17917         (struct stat64): Likewise.
17918
17919 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17920
17921         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17922         Define and include sysdep-vdso.h.
17923         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17924         Likewise.
17925         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17926         Likewise.
17927         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17928         Define with VDSO_SYMBOL and use PTR_MANGLE.
17929         (__vdso_clock_gettime): Likewise.
17930         (__vdso_clock_getres): Likewise.
17931         (_libc_vdso_platform_setup): Likewise.
17932         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17933         Likewise.
17934         (_libc_vdso_platform_setup): Likewise.
17935         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17936         Likewise.
17937         (__vdso_clock_gettime): Likewise.
17938         (__vdso_clock_getres): Likewise.
17939         (__vdso_get_tbfreq): Likewise.
17940         (__vdso_getcpu): Likewise.
17941         (__vdso_time): Likewise.
17942         (__vdso_sigtramp_rt64): Likewise.
17943         (__vdso_signtramp32): Likewise.
17944         (__vdso_sigtramp_rt32): Likewise.
17945         (_libc_vdso_platform_setup): Likewise.
17946         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17947         Likewise.
17948         (__vdso_clock_gettime): Likewise.
17949         (__vdso_clock_getres): Likewise.
17950         (_libc_vdso_platform_setup): Likewise.
17951         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17952         Likewise.
17953         (__vdso_clock_gettime): Likewise.
17954         (_libc_vdso_platform_setup): Likewise.
17955         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17956         Likewise.
17957         (__vdso_getcpu): Likewise.
17958         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17959         Use VDSO_SYMBOL macro to define.
17960         (__vdso_clock_gettime): Likewise.
17961         (__vdso_clock_getres): Likewise.
17962         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17963         Likewise.
17964         (__vdso_clock_gettime): Likewise.
17965         (__vdso_clock_getres): Likewise.
17966         (__vdso_get_tbfreq): Likewise.
17967         (__vdso_getcpu): Likewise.
17968         (__vdso_time): Likewise.
17969         (__vdso_sigtramp_rt64): Likewise.
17970         (__vdso_signtramp32): Likewise.
17971         (__vdso_sigtramp_rt32): Likewise.
17972         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17973         Likewise.
17974         (__vdso_clock_gettime): Likewise.
17975         (__vdso_clock_getres): Likewise.
17976         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17977         Likewise.
17978         (__vdso_clock_gettime): Likewise.
17979         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17980         Likewise.
17981         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17982         macro.
17983         (INTERNAL_VSYSCALL): Likewise.
17984         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17985         Remove macro.
17986         (INTERNAL_VSYSCALL): Likewise.
17987         (INTERNAL_VSYSCALL_NCS): Likewise.
17988         (INTERNAL_VSYSCALL_CALL): New macro.
17989         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17990         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17991         Likewise.
17992         (INTERNAL_VSYSCALL): Likewise.
17993         (INTERNAL_VSYSCALL_NCS): Likewise.
17994         (INTERNAL_VSYSCALL_CALL): New macro.
17995         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17997         (INLINE_VSYSCALL): Remove macro.
17998         (INTERNAL_VSYSCALL): Remove macro.
17999         (INTERNAL_VSYSCALL_NCS): Remove macro.
18000         (INTERNAL_VSYSCALL_CALL): New macro.
18001         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
18002         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
18003         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18004         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
18005         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
18006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
18007         (INLINE_VSYSCALL): Remove macro.
18008         (INTERNAL_VSYSCALL): Likewise.
18009         (INTERNAL_VSYSCALL_NCS): Likewise.
18010         (INTERNAL_VSYSCALL_CALL): New macro.
18011         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
18012         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
18013         PTR_DEMANGLE on vDSO pointer.
18014         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18015         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
18016         macro.
18017         (INTERNAL_SYSCALL): Likewise.
18018         (INTERNAL_VSYSCALL_NCS): Remove macro.
18019         (INTERNAL_VSYSCALL_CALL): New macro.
18020         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
18021         Remove macro.
18022         (INTERNAL_VSYSCALL): Likewise.
18023         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
18024         sysdep-vdso.h instead of libc-vdso.h.
18025         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
18026         definition.
18027         (INLINE_VSYSCALL): Likewise.
18028         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
18029         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
18030         definition.
18031         (INLINE_VSYSCALL): Likewise.
18032         (INTERNAL_VSYSCALL): Likewise.
18033         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18034         * sysdeps/unix/sysv/linux/timespec_get.c
18035         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18036         (timespec_get): Use ANSI prototype.
18037         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
18038         and definition for Linux.
18039
18040 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
18041
18042         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
18043         * include/libc-symbols.h: libmvec_hidden_* macro series added.
18044
18045 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18046
18047         [BZ #2981]
18048         [BZ #18410]
18049         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
18050         for missing DT_PLTRELSZ.
18051
18052 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18053
18054         Remove obsolete aliases that broke 'locale -a'
18055         [BZ #18412]
18056         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
18057         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
18058         breaking some applications that use 'locale -a' output.
18059         Change the encoding of this file from Latin-1 to ASCII to avoid
18060         other potential problems with people grepping this file.
18061
18062 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18063
18064         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
18065         -fasynchronous-unwind-tables.
18066         (CFLAGS-sendto.c): Likewise.
18067         (CFLAGS-sendmsg.c): Likewise.
18068         (CFLAGS-connect.c): Likewise.
18069         (CFLAGS-recvmsg.c): Likewise.
18070         (CFLAGS-recvfrom.c): Likewise.
18071         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
18072         (SOCKETCALL): New macro: non-cancellable socketcall.
18073         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
18074         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
18075         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
18076         * sysdeps/unix/sysv/linux/accept.c: New file.
18077         * sysdeps/unix/sysv/linux/bind.c: Likewise.
18078         * sysdeps/unix/sysv/linux/connect.c: Likewise.
18079         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
18080         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
18081         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
18082         * sysdeps/unix/sysv/linux/listen.c: Likewise.
18083         * sysdeps/unix/sysv/linux/recv.c: Likewise.
18084         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
18085         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
18086         * sysdeps/unix/sysv/linux/send.c: Likewise.
18087         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
18088         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
18089         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
18090         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
18091         * sysdeps/unix/sysv/linux/socket.c: Likewise.
18092         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
18093         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
18094         prototype.
18095         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
18096         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18097         instead of __internal_xxx function.
18098         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
18099         prototype.
18100         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
18101         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18102         instead of __internal_xxx function.
18103         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
18104         prototype.
18105         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
18106         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18107         instead of __internal_xxx function.
18108         * sysdeps/unix/sysv/linux/accept.S: Remove file.
18109         * sysdeps/unix/sysv/linux/bind.S: Likewise.
18110         * sysdeps/unix/sysv/linux/connect.S: Likewise.
18111         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
18112         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
18113         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
18114         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
18115         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
18116         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
18117         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
18118         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
18119         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
18120         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
18121         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
18122         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
18123         * sysdeps/unix/sysv/linux/listen.S: Likewise.
18124         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
18125         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
18126         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
18127         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
18128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
18129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
18130         * sysdeps/unix/sysv/linux/recv.S: Likewise.
18131         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
18132         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
18133         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
18134         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
18135         * sysdeps/unix/sysv/linux/send.S: Likewise.
18136         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
18137         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
18138         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
18139         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
18140         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
18141         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
18142         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
18143         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
18144         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
18145         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
18146         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
18147         socketcall is implemented in GLIBC.
18148
18149 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18150
18151         * soft-fp/fmadf4.c: Include <libc-internal.h>.
18152         (__fma): Ignore uninitialized warnings around packing.
18153         * soft-fp/fmasf4.c: Include <libc-internal.h>.
18154         (__fmaf): Ignore uninitialized warnings around packing.
18155         * soft-fp/fmatf4.c: Include <libc-internal.h>.
18156         (__fmal): Ignore uninitialized warnings around packing.
18157
18158         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
18159         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18160         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
18161         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18162
18163         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
18164         switch statement into default case.
18165         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
18166
18167         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
18168         a conditional in forcing "inexact".
18169         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
18170         Likewise.
18171
18172 2015-05-22  Roland McGrath  <roland@hack.frob.com>
18173
18174         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18175         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
18176         for each INTERNAL_SYSCALL use.
18177
18178 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18179
18180         [BZ #438]
18181         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
18182         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
18183         variable.
18184
18185         [BZ #18444]
18186         * string/basename.c (basename): Rename to __basename and define as
18187         weak alias of __basename.  Use libc_hidden_weak.
18188         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
18189         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
18190         __basename instead of basename.
18191         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
18192         Remove variable.
18193         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
18194
18195 2015-05-18  Florian Weimer  <fweimer@redhat.com>
18196
18197         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
18198         (_IO_JUMPS_FILE_plus): New.
18199         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
18200         _IO_CAST_FIELD_ACCESS.
18201         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
18202         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
18203         * libio/freopen.c (freopen): Likewise.
18204         * libio/freopen64.c (freopen64): Likewise.
18205         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
18206         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
18207         * libio/iofwide.c (_IO_fwide): Likewise.
18208         * libio/memstream.c (open_memstream): Likewise.
18209         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18210         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
18211         * libio/oldiopopen.c (_IO_old_popen): Likewise.
18212
18213 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
18214
18215         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
18216         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
18217         NADJ.
18218         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
18219         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
18220         NADJ.
18221         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
18222         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
18223         NADJ.
18224
18225         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
18226         (p == 4) case.
18227
18228         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
18229         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
18230         Remove variable.
18231         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
18232         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
18233         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
18234
18235 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18236
18237         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
18238         Adjust jump table label generation macros.
18239
18240 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18241
18242         * stdio-common/vfprintf.c (vfprintf): Move local variables
18243         args_malloced, specs, specs_malloced, and the code after
18244         do_positional to the printf_positional function.
18245         (printf_positional): New function.
18246
18247 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18248
18249         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
18250         function.
18251         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
18252         STEP4_TABLE, process_arg): Move macro definitions
18253         out of the vfprintf function.  (Cosmetic change only.)
18254
18255 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
18256
18257         * benchtests/Makefile (stdio-common-bench): Define.
18258         (benchset): Add stdio-common-bench.
18259         * sprintf-inputs: New file.
18260         * sprintf-source.c: New file.
18261
18262 2015-05-21  Andreas Schwab  <schwab@suse.de>
18263
18264         [BZ #13028]
18265         [BZ #17053]
18266         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
18267         of struct __res_state.
18268         * resolv/res_send.c (__libc_res_nsend): Likewise.
18269         (get_nsaddr): New function.
18270         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
18271         statp directly.
18272
18273 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
18274
18275         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
18276         -D_POSIX_C_SOURCE=199506L.
18277
18278         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
18279
18280         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
18281         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
18282         Do not mention otherwise.
18283         [POSIX] (_XOPEN_VERSION): Do not expect.
18284         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
18285         [POSIX] (_POSIX2_C_BIND): Likewise.
18286         [POSIX] (_POSIX2_VERSION): Likewise.
18287         [POSIX] (_XOPEN_XPG2): Likewise.
18288         [POSIX] (_XOPEN_XPG3): Likewise.
18289         [POSIX] (_XOPEN_XPG4): Likewise.
18290         [POSIX] (_XOPEN_UNIX): Likewise.
18291         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
18292         [POSIX] (_POSIX_BARRIERS): Likewise.
18293         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
18294         [POSIX] (_POSIX_CPUTIME): Likewise.
18295         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
18296         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
18297         [POSIX] (_POSIX_SHELL): Likewise.
18298         [POSIX] (_POSIX_SPAWN): Likewise.
18299         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
18300         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
18301         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
18302         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
18303         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
18304         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
18305         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
18306         [POSIX] (_XBS5_LP64_OFF64): Likewise.
18307         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
18308         [POSIX] (_POSIX_TIMEOUTS): Likewise.
18309         [POSIX] (_POSIX2_PBS): Likewise.
18310         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
18311         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
18312         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
18313         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
18314         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
18315         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
18316         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
18317         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
18318         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
18319         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
18320         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
18321         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
18322         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
18323         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
18324         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
18325         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
18326         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
18327         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
18328         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
18329         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
18330         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
18331         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
18332         [POSIX] (_SC_2_C_BIND): Likewise.
18333         [POSIX] (_SC_2_C_VERSION): Likewise.
18334         [POSIX] (_SC_2_PBS): Likewise.
18335         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
18336         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
18337         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
18338         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
18339         [POSIX] (_SC_2_PBS_TRACK): Likewise.
18340         [POSIX] (_SC_ATEXIT_MAX): Likewise.
18341         [POSIX] (_SC_BARRIERS): Likewise.
18342         [POSIX] (_SC_BASE): Likewise.
18343         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
18344         [POSIX] (_SC_DEVICE_IO): Likewise.
18345         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
18346         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
18347         [POSIX] (_SC_FD_MGMT): Likewise.
18348         [POSIX] (_SC_FIFO): Likewise.
18349         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
18350         [POSIX] (_SC_FILE_LOCKING): Likewise.
18351         [POSIX] (_SC_FILE_SYSTEM): Likewise.
18352         [POSIX] (_SC_IOV_MAX): Likewise.
18353         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
18354         [POSIX] (_SC_NETWORKING): Likewise.
18355         [POSIX] (_SC_PAGE_SIZE): Likewise.
18356         [POSIX] (_SC_PASS_MAX): Likewise.
18357         [POSIX] (_SC_PIPE): Likewise.
18358         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
18359         [POSIX] (_SC_REGEXP): Likewise.
18360         [POSIX] (_SC_SHELL): Likewise.
18361         [POSIX] (_SC_SIGNALS): Likewise.
18362         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
18363         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18364         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18365         [POSIX] (_SC_USER_GROUPS): Likewise.
18366         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18367         [POSIX] (_SC_STREAMS): Likewise.
18368         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18369         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18370         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18371         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18372         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18373         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18374         [POSIX] (_PC_FILESIZEBITS): Likewise.
18375         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18376         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18377         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18378         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18379         [POSIX] (uid_t): Likewise.
18380         [POSIX] (gid_t): Likewise.
18381         [POSIX] (off_t): Likewise.
18382         [POSIX] (pid_t): Likewise.
18383         [POSIX] (cuserid): Allow.
18384         (_SC_2_CHAR_TERM): Require constant.
18385         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18386         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18387         variable.
18388
18389 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18390
18391         * sysdeps/nacl/pthread-pids.h: New file.
18392         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18393         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18394
18395         * nptl/pthread-pids.h: New file.
18396         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18397         * nptl/nptl-init.c: Include <pthread-pids.h>.
18398         (__pthread_initialize_minimal_internal):
18399         Call __pthread_initialize_pids instead of set_tid_address syscall.
18400
18401         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18402         * sysdeps/posix/usleep.c: ... here.
18403
18404 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18405
18406         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18407         call_pselect6 object.
18408         [$(subdir) = io]: Remove call_sync_file_range object.
18409         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18410         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18411         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18412         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18413
18414 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18415
18416         * math/s_cproj.c: Add include "math_private.h".
18417         * math/s_cprojf.c: Likewise.
18418         * math/s_cprojl.c: Likewise.
18419
18420 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18421
18422         [BZ #18244]
18423         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18424         high mantissa bit when testing whether P is a NaN.
18425         * math/libm-test.inc (remainder_test_data): Add more tests.
18426         (remquo_test_data): Likewise.
18427
18428         [BZ #18049]
18429         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18430         below -32, return the argument, with underflow if subnormal.
18431         * math/auto-libm-test-in: Add more tests of atanh.
18432         * math/auto-libm-test-out: Regenerated.
18433
18434 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18435
18436         [BZ #18434]
18437         * nptl/tst-sem15.c: New file.
18438         * nptl/Makefile (tests): Add it.
18439         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18440         s/<</>>/ to fix typo in EOVERFLOW check.
18441         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18442
18443 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18444
18445         * manual/strings.texi (envz_remove): Fix typo in safety
18446         annotations.
18447
18448 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18449             Steve Ellcey  <sellcey@imgtec.com>
18450
18451         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18452         in order to avoid strict alias warnings.
18453         (iruserok_af): Ditto for ra.
18454
18455 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18456
18457         [BZ #17581]
18458         * malloc/hooks.c
18459         (magicbyte): Convert to a function and avoid returning 0x01.
18460         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18461         (mem2chunk_check): Fix unsigned comparisons to zero.
18462         Hoist defs of sz and magic.
18463
18464 2015-05-19  Richard Henderson  <rth@redhat.com>
18465
18466         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18467
18468         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18469
18470 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18471
18472         [BZ #16159]
18473         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18474         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18475         (reused_arena): Find a non-corrupt arena.
18476         (heap_trim): Pass arena to unlink.
18477         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18478         malloc_printerr.
18479         (top_check): Likewise.
18480         (free_check): Likewise.
18481         (realloc_check): Likewise.
18482         * malloc/malloc.c (malloc_printerr): Add arena argument.
18483         (unlink): Likewise.
18484         (munmap_chunk): Adjust.
18485         (ARENA_CORRUPTION_BIT): New macro.
18486         (arena_is_corrupt): Likewise.
18487         (set_arena_corrupt): Likewise.
18488         (sysmalloc): Use mmap if there are no usable arenas.
18489         (_int_malloc): Likewise.
18490         (__libc_malloc): Don't fail if arena_get returns NULL.
18491         (_mid_memalign): Likewise.
18492         (__libc_calloc): Likewise.
18493         (__libc_realloc): Adjust for additional argument to
18494         malloc_printerr.
18495         (_int_free): Likewise.
18496         (malloc_consolidate): Likewise.
18497         (_int_realloc): Likewise.
18498         (_int_memalign): Don't touch corrupt arenas.
18499         * malloc/tst-malloc-backtrace.c: New test case.
18500
18501         * Makefile (summarize-tests): Fix return value on success.
18502
18503         * manual/string.texi (Envz Functions): Add envz_remove.
18504
18505 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18506
18507         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18508         (invalid_name): New function, broken out of ...
18509         (__opendirat): ... here.  Call it.
18510         (need_isdir_precheck): New function, broken out of ...
18511         (__opendirat): ... here.  Call it.
18512         Use __fxstatat64, not __xstatat64.
18513         (opendir_oflags): New function, broken out of ...
18514         (__opendirat): ... here.  Call it.
18515         (opendir_tail): New function, broken out of ...
18516         (__opendirat): ... here.  Call it.
18517         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18518         opendir_tail, rather than punting to __opendirat.
18519         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18520
18521 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18522
18523         * .gitignore: Ignore generated *.pyc.
18524
18525 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18526
18527         * include/stdio.h: Define __need_wint_t.
18528         * test-skeleton.c: Avoid `for' loop initial declaration.
18529         * nptl/tst-initializers1.c: Use test-skeleton.c.
18530
18531 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18532
18533         [BZ #18418]
18534         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18535
18536 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18537
18538         [BZ #16352]
18539         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18540         (__ieee754_atanh): Force underflow exception for results with
18541         small absolute value.
18542         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18543         (__ieee754_atanhf): Force underflow exception for results with
18544         small absolute value.
18545         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18546         (__ieee754_atanh): Force underflow exception for results with
18547         small absolute value.
18548         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18549         (__ieee754_atanhf): Force underflow exception for results with
18550         small absolute value.
18551         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18552         (__ieee754_atanhl): Force underflow exception for results with
18553         small absolute value.
18554         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18555         (__ieee754_atanhl): Force underflow exception for results with
18556         small absolute value.
18557         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18558         (__ieee754_atanhl): Force underflow exception for results with
18559         small absolute value.
18560         * math/auto-libm-test-in: Do not allow missing underflow
18561         exceptions from atanh.
18562         * math/auto-libm-test-out: Regenerated.
18563
18564         [BZ #18221]
18565         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18566         2**-28 as threshold for returning x or +/- 1/x.
18567         * math/auto-libm-test-in: Add more tests of tan.
18568         * math/auto-libm-test-out: Regenerated.
18569
18570         [BZ #18220]
18571         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18572         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18573         * math/auto-libm-test-in: Add another test of lgamma.
18574         * math/auto-libm-test-out: Regenerated.
18575
18576 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18577
18578         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18579         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18580         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18581         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18582         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18583         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18584         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18585         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18586         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18587         (log1): Use fabs.  (my_log2): Use fabs.
18588         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18589         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18590         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18591         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18592         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18593         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18594         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18595         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18596         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18597         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18598         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18599
18600 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18601
18602         [BZ #18217]
18603         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18604         as threshold for returning 1 - x.
18605         * math/auto-libm-test-in: Add more tests of erfc.
18606         * math/auto-libm-test-out: Regenerated.
18607
18608 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18609
18610         [BZ #18196]
18611         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18612         threshold for large arguments.
18613         * math/auto-libm-test-in: Add another test of atan.
18614         * math/auto-libm-test-out: Regenerated.
18615
18616         [BZ #16339]
18617         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18618         (__log1p): Force underflow exception for results with small
18619         absolute value.
18620         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18621         (__log1pf): Force underflow exception for results with small
18622         absolute value.
18623         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18624         (__log1p): Force underflow exception for results with small
18625         absolute value.
18626         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18627         (__log1pf): Force underflow exception for results with small
18628         absolute value.
18629         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18630         (__log1pl): Force underflow exception for results with small
18631         absolute value.
18632         * math/auto-libm-test-in: Do not allow missing underflow
18633         exceptions from log1p.
18634         * math/auto-libm-test-out: Regenerated.
18635
18636 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18637             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18638
18639         [BZ #16704]
18640         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18641
18642 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18643
18644         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18645         (libmvec): New variable.
18646         * configure.ac: Added option for mathvec build.
18647         * configure: Regenerated.
18648         * mathvec/Depend: New file.
18649         * mathvec/Makefile: New file.
18650         * shlib-versions: Added libmvec.
18651         * math/Makefile: Added rule for libm.so installation.
18652
18653         * bits/math-vector.h: New file.
18654         * bits/libm-simd-decl-stubs.h: New header.
18655         * math/Makefile (headers): Added new header
18656         libm-simd-decl-stubs.h.
18657         * math/math.h (__MATHCALL_VEC): New macro.
18658
18659         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18660         for conditions in testing functions.
18661         * math/Makefile: Added call of libm-have-vector-test.sh.
18662         * math/libm-test.inc (HAVE_VECTOR): New macros.
18663
18664         * math/libm-test.inc: START refactored.
18665         * math/test-double.c (TEST_MATHVEC): Add define.
18666         * math/test-float.c: Likewise.
18667         * math/test-idouble.c: Likewise.
18668         * math/test-ifloat.c: Likewise.
18669         * math/test-ildoubl.c: Likewise.
18670         * math/test-ldouble.c: Likewise.
18671         * sysdeps/generic/math-tests-arch.h
18672         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18673         architecture check.
18674
18675         * math/test-double.c (FUNC_TEST): New macro.
18676         * math/test-float.c: Likewise.
18677         * math/test-idouble.c: Likewise.
18678         * math/test-ifloat.c: Likewise.
18679         * math/test-ildoubl.c: Likewise.
18680         * math/test-ldouble.c: Likewise.
18681         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18682
18683 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18684
18685         * sysdeps/nacl/fdopendir.c: New file.
18686
18687         * dirent/scandir-tail.c: New file.
18688         * dirent/scandir64-tail.c: New file.
18689         * dirent/Makefile (routines): Add them.
18690         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18691         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18692         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18693         [!SCANDIR] (SCANDIR_TAIL): New macro.
18694         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18695         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18696         (SCANDIRAT): Macro removed.
18697         (SCANDIR_TAIL): New macro.
18698         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18699         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18700         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18701         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18702         (READDIR): Macro removed.
18703         (SCANDIR_TAIL): New macro.
18704         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18705         (SCANDIR_TAIL): New macro.
18706
18707         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18708         * dirent/scandir-cancel.c: ... to this new file.
18709         * dirent/Makefile (routines): Add it.
18710         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18711         * sysdeps/unix/sysv/linux/i386/scandir64.c
18712         (SKIP_SCANDIR_CANCEL): Macro removed.
18713         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18714
18715         * dirent/tst-scandir.c: New file.
18716         * dirent/tst-scandir64.c: New file.
18717         * dirent/Makefile (tests): Add them.
18718
18719 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18720
18721         [BZ #18409]
18722         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18723
18724 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18725
18726         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18727         list.
18728
18729 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18730
18731         * benchtests/bench-strcoll.c: New benchmark.
18732         * benchtests/Makefile: Generate locales and run benchmark.
18733         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18734         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18735         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18736         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18737         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18738         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18739         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18740         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18741         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18742         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18743         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18744         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18745         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18746         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18747         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18748         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18749         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18750         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18751         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18752         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18753         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18754         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18755         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18756         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18757
18758 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18759
18760         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18761         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18762
18763 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18764
18765         * posix/uname-values.h: New file.
18766         * posix/uname.c: Include that instead of <config-name.h>.
18767         * sysdeps/nacl/uname-values.h: New file.
18768         * sysdeps/arm/nacl/uname-values.h: New file.
18769
18770 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18771
18772         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18773         splitting into fields.
18774
18775 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18776
18777         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18778         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18779         * locale/localeinfo.h: Add enum collation_encoding_type.
18780         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18781         * programs/ld-collate.c (collate_output): Add encoding type info.
18782         * string/strcoll_l.c (STRDIFF): New function.
18783         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18784         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18785
18786 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18787
18788         [BZ #18397]
18789         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18790         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18791         <fpu_control.h> instead of <math/fpu_control.c>.
18792         * sysdeps/mips/mips32/fpu/Makefile: New file.
18793
18794 2015-05-11  Andreas Schwab  <schwab@suse.de>
18795
18796         [BZ #18007]
18797         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18798         nss_endgrent.
18799         (_nss_compat_endgrent): Call nss_endgrent.
18800         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18801         nss_endpwent.
18802         (_nss_compat_endpwent): Call nss_endpwent.
18803         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18804         needent, call nss_setspent only if non-zero.
18805         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18806         (internal_endspent): Don't call nss_endspent.
18807         (_nss_compat_endspent): Call nss_endspent.
18808         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18809         Remove.  All uses removed.
18810         (internal_setent): Remove parameter stayopen, add parameter
18811         stream.  Use it instead of global variable.
18812         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18813         (internal_endent, internal_getent): Add parameter stream.  Use it
18814         instead of global variable.
18815         (CONCAT(_nss_files_end,ENTNAME))
18816         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18817         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18818         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18819         uses removed.
18820         (internal_setent, internal_endent): Add parameter stream.  Use it
18821         instead of global variable.
18822         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18823         stream.
18824         (get_next_alias): Add parameter stream.
18825         (_nss_files_getaliasent_r): Pass global stream.
18826         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18827         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18828         (_nss_files_gethostbyname4_r): Pass local stream to
18829         internal_setent, internal_getent and internal_endent.  Remove
18830         locking.
18831
18832 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18833
18834         * tst-strfmon1.c (tests): Update expected currency symbol.
18835
18836 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18837
18838         * sysdeps/nacl/gethostname.c: New file.
18839
18840 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18841
18842         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18843         and sinh.
18844         * math/auto-libm-test-out: Regenerated.
18845         * sysdeps/i386/fpu/libm-test-ulps: Update.
18846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18847
18848 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18849
18850         [BZ #18125]
18851         * stdlib/tst-setcontext3.c: New file.
18852         * stdlib/tst-setcontext3.sh: New file.
18853         * stdlib/Makefile (tests): Add tst-setcontext3.
18854         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18855         to verify test program created output file.
18856         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18857         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18858         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18859         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18860
18861 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18862
18863         [BZ #18383]
18864         * elf/tst-tlsalign.c: New file.
18865         * elf/tst-tlsalign-static.c: New file.
18866         * elf/tst-tlsalign-lib.c: New file.
18867         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18868         (tests-static): Add tst-tlsalign-static.
18869         (modules-names): Add tst-tlsalign-lib.
18870         (test-xfail-tst-tlsalign): New variable.
18871         (test-xfail-tst-tlsalign-static): New variable.
18872
18873         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18874         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18875
18876 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18877
18878         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18879         csqrt, erfc, sin and sincos.
18880         * math/auto-libm-test-out: Regenerated.
18881         * sysdeps/i386/fpu/libm-test-ulps: Update.
18882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18883
18884 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18885
18886         * sysdeps/aarch64/libm-test-ulps: Update.
18887
18888 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18889
18890         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18891         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18892         * math/auto-libm-test-out: Regenerated.
18893         * sysdeps/i386/fpu/libm-test-ulps: Update.
18894         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18895
18896 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18897
18898         [BZ #18265]
18899         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18900         (wcsncpy): Likewise.
18901
18902 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18903
18904         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18905         Assume __ASSUME_FALLOCATE is always true.
18906         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18907         (__posix_fallocate64_l64): Likweise.
18908         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18909         (posix_fallocate): Likewise.
18910         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18911         (__posix_fallocate64_l64): Likewise.
18912         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18913         [!__ASSUME_FALLOCATE]: Add comment.
18914
18915 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18916
18917         * sysdeps/unix/sysv/linux/i386/Makefile
18918         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18919         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18920         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18921         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18922         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18923         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18924         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18925
18926 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18927
18928         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18929         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18930         tgamma.
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 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18936
18937         * math/auto-libm-test-in: Add more tests of tgamma.
18938         * math/auto-libm-test-out: Regenerated.
18939         * sysdeps/i386/fpu/libm-test-ulps: Update.
18940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18941
18942         * math/auto-libm-test-in: Add more tests of tanh.
18943         * math/auto-libm-test-out: Regenerated.
18944         * sysdeps/i386/fpu/libm-test-ulps: Update.
18945         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18946
18947         * math/auto-libm-test-in: Add more tests of tan.
18948         * math/auto-libm-test-out: Regenerated.
18949         * sysdeps/i386/fpu/libm-test-ulps: Update.
18950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18951
18952         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18953         * math/auto-libm-test-out: Regenerated.
18954         * sysdeps/i386/fpu/libm-test-ulps: Update.
18955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18956
18957         * math/auto-libm-test-in: Add another test of pow.
18958         * math/auto-libm-test-out: Regenerated.
18959         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18960
18961         * math/auto-libm-test-in: Add more tests of lgamma.
18962         * math/auto-libm-test-out: Regenerated.
18963         * sysdeps/i386/fpu/libm-test-ulps: Update.
18964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18965
18966         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18967         log1p.
18968         * math/auto-libm-test-out: Regenerated.
18969         * sysdeps/i386/fpu/libm-test-ulps: Update.
18970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18971
18972 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18973
18974         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18975         Elf64_Chdr structs and ELFCOMPRESS constants.
18976
18977 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18978
18979         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18980         expm1.
18981         * math/auto-libm-test-out: Regenerated.
18982         * sysdeps/i386/fpu/libm-test-ulps: Update.
18983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18984
18985         * math/auto-libm-test-in: Add more tests of erf and erfc.
18986         * math/auto-libm-test-out: Regenerated.
18987         * sysdeps/i386/fpu/libm-test-ulps: Update.
18988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18989
18990 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18991
18992         * config.h.in (HAVE_AARCH64_BE): Add.
18993
18994 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18995
18996         * math/auto-libm-test-in: Add more tests of csqrt.
18997         * math/auto-libm-test-out: Regenerated.
18998         * sysdeps/i386/fpu/libm-test-ulps: Update.
18999         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19000
19001         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19002         * math/auto-libm-test-out: Regenerated.
19003         * sysdeps/i386/fpu/libm-test-ulps: Update.
19004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19005
19006         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
19007
19008 2015-04-29  Roland McGrath  <roland@hack.frob.com>
19009
19010         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
19011         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
19012
19013         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
19014         (euidaccess, eaccess): Define as weak aliases.
19015
19016         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
19017         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
19018         but __suseconds_t is often 'long int' so some sources assume that
19019         type is being used (e.g. they use %ld to print tv_usec).
19020
19021 2015-04-29  Florian Weimer  <fweimer@redhat.com>
19022
19023         [BZ #18007]
19024         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
19025         (CVE-2014-8121)
19026         * nss/tst-nss-getpwent.c: New file.
19027         * nss/Makefile (tests): Add new test.
19028
19029 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
19030
19031         [BZ #18346]
19032         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
19033         exponents less than 48 as cases where high part of mantissa needs
19034         examining to determine whether argument is integral.
19035         * math/libm-test.inc (round_test_data): Add more tests.
19036
19037 2015-04-28  Mark Wielaard  <mjw@redhat.com>
19038
19039         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
19040
19041 2015-04-27  David S. Miller  <davem@davemloft.net>
19042
19043         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
19044         __tls_get_addr.
19045         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
19046
19047 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19048
19049         [BZ#18333]
19050         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
19051
19052 2015-04-27  Florian Weimer  <fweimer@redhat.com>
19053
19054         [BZ#18333]
19055         * time/tzset.c (parse_tzname): Return error on memory allocation
19056         failure.
19057         * test-skeleton.c (struct temp_name_list): Change type of name
19058         member to non-const.
19059         (add_temp_file): Create a copy of the file name.
19060         (delete_temp_files): Deallocate memory.
19061         (create_temp_file): Add comment.
19062
19063 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19064
19065         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
19066         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
19067
19068 2015-04-24  Roland McGrath  <roland@hack.frob.com>
19069
19070         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
19071         * sysdeps/arm/configure: Regenerated.
19072
19073 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19074
19075         [BZ #17715]
19076         * time/tzfile.c (__tzfile_read): Check for large values of
19077         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
19078         * time/tzset.c (__tzstring_len): New function, based on the old
19079         __tzstring function.
19080         (__tzstring): Call __tzstring_len.
19081         (parse_tzname): New helper function extracted from
19082         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
19083         the input string.
19084         (parse_offset): New helper function extracted from
19085         __tzset_parse_tz.  Replace switch with fallthrough with
19086         initialization before sscanf.
19087         (parse_rule): Likewise.
19088         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
19089         new-style function definition.
19090         * timezone/Makefile (tests): Add tst-tzset.
19091         (tst-tzset.out): Dependencies on time zone files.
19092         (tst-tzset-ENV): Set TZDIR.
19093         (testdata/XT%): Copy crafted time zone files.
19094         * timezone/README: Mention crafted time zone files.
19095         * timezone/testdata/XT1, timezone/testdata/XT2,
19096         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
19097         files.
19098         * timezone/tst-tzset.c: New test.
19099
19100 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19101
19102         * Makeconfig (+gccwarn): Remove -Winline.
19103
19104 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19105
19106         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
19107
19108 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19109
19110         * NEWS: Mention sysconf() cache information support for s390.
19111         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
19112
19113 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
19114
19115         * math/k_casinh.c (__kernel_casinh): Use __copysign.
19116         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
19117         (__nearbyint): Likewise.
19118         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
19119         (copysignl): Likewise.
19120
19121 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
19122
19123         [BZ #18287]
19124         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
19125         based on padding.  (CVE-2015-1781)
19126
19127 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19128
19129         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
19130         libc-vdso.h.
19131         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
19132         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
19133         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
19134         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
19135         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
19136         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
19137         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
19138         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19139         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
19140         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
19141         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
19142         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19143         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
19144         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
19145         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
19146         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
19147         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
19148         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
19149         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
19150         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
19151         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
19152         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
19153         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
19154
19155 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
19156
19157         * stdlib/setenv.c (__add_to_environ):
19158         Dump core quickly if setenv (..., NULL, ...) is called.
19159         This time, do it the right way, and pacify GCC with a pragma.
19160
19161 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19162
19163         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
19164         IMAP->l_prev cannot be null, and #if out the code for the contrary
19165         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
19166         believe that NS (&_dl_ns[NSID]) could point outside the array.
19167
19168         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
19169         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
19170         before using NSID as an index.
19171
19172 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
19173
19174         [BZ #17825]
19175         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
19176         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
19177         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
19178
19179 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19180
19181         Add preliminary port to Google Native Client on ARM.
19182         * abi-tags (.*-.*-nacl.*): New entry.
19183         * sysdeps/arm/nacl: New directory.
19184         * sysdeps/nacl: New directory.
19185
19186 2015-04-16  David S. Miller  <davem@davemloft.net>
19187
19188         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
19189         lowlevellock-futex.h
19190
19191 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
19192
19193         * sysdeps/tile/configure.ac: New file.
19194         * sysdeps/tile/configure: Regenerated.
19195
19196 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19197
19198         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
19199         conditionals for weak_alias and libc_hidden_weak.
19200         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
19201         libc_hidden_weak and weak_alias.
19202         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
19203         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
19204         and weak_alias for static one.
19205
19206 2015-04-15  David S. Miller  <davem@davemloft.net>
19207
19208         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
19209
19210 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19211
19212         [BZ #18206]
19213         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
19214           Use signed comparision instead of substraction to avoid
19215           overflow bug.
19216         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
19217           Take the sign of ret.
19218         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
19219           Do not expect precise return values. Only the sign matters.
19220         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
19221         * wcsmbs/test-wcsncmp.c: New File.
19222         * string/test-strncmp.c: Add wcsncmp support.
19223
19224 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19225
19226         [BZ #6792]
19227         * math/w_log1p.c: New file.
19228         * math/w_log1pf.c: Likewise.
19229         * math/w_log1pl.c: Likewise.
19230         * math/Makefile (libm-calls): Add w_log1p.
19231         * math/s_log1pl.c (log1pl): Remove weak_alias.
19232         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
19233         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
19234         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
19235         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
19236         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
19237         [NO_LONG_DOUBLE] (log1pl): Likewise.
19238         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
19239         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
19240         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
19241         (log1p): Remove long_double_symbol.
19242         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
19243         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
19244         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
19245         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
19246         remove weak_alias for corresponding log1p function.
19247         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
19248         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
19249         * sysdeps/ia64/fpu/w_log1p.c: New file.
19250         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
19251         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
19252         * math/libm-test.inc (log1p_test_data): Add errno expectations.
19253
19254 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
19255
19256         [BZ #18247]
19257         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
19258         decimal exponent by 1.
19259         * stdlib/tst-strtod-round-data: Add more tests.
19260         * stdlib/tst-strtod-round.c (tests): Regenerated.
19261
19262 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
19263
19264         * math/auto-libm-test-in: Add more tests of clog and clog10.
19265         * math/auto-libm-test-out: Regenerated.
19266         * sysdeps/i386/fpu/libm-test-ulps: Update.
19267         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19268
19269 2015-04-09  Roland McGrath  <roland@hack.frob.com>
19270
19271         * Makeconfig (module-cppflags): Exclude all .v.i files.
19272         (skip-module-cppflags): Variable removed.
19273
19274         * configure.ac (libc_config_ok): Initialize before reading
19275         preconfigure scripts, not after.
19276         * configure: Regenerated.
19277
19278         * test-skeleton.c (TIMEOUT): Move #define to top level.
19279         (main): Grok environment variable TEST_DIRECT.  If set, print
19280         test expectation details into that file and then behave as if
19281         given --direct.
19282
19283 2015-04-09  Florian Weimer  <fweimer@redhat.com>
19284
19285         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
19286         warning on 32-bit.
19287
19288 2015-04-08  David S. Miller  <davem@davemloft.net>
19289
19290         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19291
19292 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19293
19294         * math/auto-libm-test-in: Add more tests of atanh.
19295         * math/auto-libm-test-out: Regenerated.
19296         * sysdeps/i386/fpu/libm-test-ulps: Update.
19297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19298
19299         * math/auto-libm-test-in: Add more tests of atan.
19300         * math/auto-libm-test-out: Regenerated.
19301         * sysdeps/i386/fpu/libm-test-ulps: Update.
19302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19303
19304 2015-04-08  Florian Weimer  <fweimer@redhat.com>
19305
19306         * elf/pldd.c (main): Rewrite to use struct
19307         scratch_buffer instead of extend_alloca.
19308         * elf/pldd-xx.c (find_maps): Likewise.
19309         * grp/initgroups.c: Include <scratch_buffer.h> instead of
19310         <alloca.h>.
19311         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
19312         scratch_buffer instead of extend_alloca.
19313         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
19314         grp/compat-initgroups.c.
19315         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
19316         Rewrite to use struct scratch_buffer instead of extend_alloca.
19317         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
19318         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
19319
19320 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19321
19322         * math/auto-libm-test-in: Add more tests of cbrt.
19323         * math/auto-libm-test-out: Regenerated.
19324         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19325
19326         * math/auto-libm-test-in: Add more tests of cabs.
19327         * math/auto-libm-test-out: Regenerated.
19328         * sysdeps/i386/fpu/libm-test-ulps: Update.
19329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19330
19331         [BZ #18210]
19332         [BZ #18211]
19333         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
19334         (__ieee754_atan2): Set FE_TONEAREST mode for internal
19335         computations.
19336         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
19337         clog10.
19338         * math/auto-libm-test-out: Regenerated.
19339         * sysdeps/i386/fpu/libm-test-ulps: Update.
19340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19341
19342         [BZ #18197]
19343         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
19344         (atan): Set FE_TONEAREST mode for internal computations.
19345         * math/auto-libm-test-in: Add more tests of atan.
19346         * math/auto-libm-test-out: Regenerated.
19347
19348 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
19349
19350         [BZ #17930]
19351         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
19352
19353 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19354
19355         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
19356
19357 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19358
19359         * include/scratch_buffer.h: New file.
19360         * malloc/scratch_buffer_grow.c: Likewise.
19361         * malloc/scratch_buffer_grow_preserve.c: Likewise.
19362         * malloc/scratch_buffer_set_array_size.c: Likewise.
19363         * malloc/tst-scratch_buffer.c: Likewise.
19364         * malloc/Makefile (routines): Add scratch_buffer_grow.
19365         (tests): Add test case.
19366         * malloc/Versions (GLIBC_PRIVATE): Export
19367         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19368         __libc_scratch_buffer_set_array_size.
19369
19370 2015-04-06  Richard Henderson  <rth@redhat.com>
19371
19372         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19373         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19374
19375         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19376         unsigned int before printing.
19377
19378 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19379
19380         [BZ #17596]
19381         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19382         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19383
19384 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19385
19386         * include/libc-internal.h (libc_max_align_t): Define.
19387
19388 2015-04-02  Andreas Schwab  <schwab@suse.de>
19389
19390         [BZ #16850]
19391         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19392
19393 2015-04-02  Mel Gorman  <mgorman@suse.de>
19394
19395         [BZ #17195]
19396         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19397         as well as the main arena.
19398
19399 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19400
19401         [BZ #18185]
19402         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19403         sharing L2 cache to 2 for Silvermont/Knights Landing.
19404
19405 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19406
19407         [BZ #17711]
19408         * config.make.in (have-protected-data): New.
19409         * configure.ac: Check linker support for protected data symbol.
19410         * configure: Regenerated.
19411         * elf/Makefile (modules-names): Add tst-protected1moda and
19412         tst-protected1modb if $(have-protected-data) is yes.
19413         (tests): Add tst-protected1a and tst-protected1b if
19414         $(have-protected-data) is yes.
19415         ($(objpfx)tst-protected1a): New.
19416         ($(objpfx)tst-protected1b): Likewise.
19417         (tst-protected1modb.so-no-z-defs): Likewise.
19418         * elf/tst-protected1a.c: New file.
19419         * elf/tst-protected1b.c: Likewise.
19420         * elf/tst-protected1mod.h: Likewise.
19421         * elf/tst-protected1moda.c: Likewise.
19422         * elf/tst-protected1modb.c: Likewise.
19423
19424 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19425
19426         [BZ #17711]
19427         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19428         indicates it is called from do_lookup_x on relocation against
19429         protected data, skip the data definion in the executable from
19430         copy reloc.
19431         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19432         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19433         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19434         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19435         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19436         otherwise to 0.
19437         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19438         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19439         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19440         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19441         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19442         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19443
19444 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19445
19446         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19447         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19448
19449 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19450
19451         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19452         THREAD_SETMEM_NC.
19453         * sysdeps/x86_64/nptl/tls.h: Ditto.
19454
19455 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19456
19457         * dlfcn/tststatic.c (main): Converted to ...
19458         (do_test): ... this.
19459         (TEST_FUNCTION): New macro.
19460         Include test-skeleton.c.
19461
19462 2015-03-26  Alan Modra  <amodra@gmail.com>
19463
19464         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19465         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19466         zero for undefined weak.
19467         (elf_machine_plt_conflict): Similarly.
19468
19469 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19470
19471         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19472         atanh.
19473         * math/auto-libm-test-out: Regenerated.
19474         * sysdeps/i386/fpu/libm-test-ulps: Update.
19475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19476
19477         * math/auto-libm-test-in: Add another test of asin.
19478         * math/auto-libm-test-out: Regenerated.
19479         * sysdeps/i386/fpu/libm-test-ulps: Update.
19480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19481
19482         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19483         Remove macro.
19484         (LLL_EBX_REG): Likewise.
19485         (LLL_ENTER_KERNEL): Likewise.
19486
19487         * math/auto-libm-test-in: Add more tests of asin.
19488         * math/auto-libm-test-out: Regenerated.
19489         * sysdeps/i386/fpu/libm-test-ulps: Update.
19490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19491
19492         [BZ #18138]
19493         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19494         libc_do_syscall_args): New structure.
19495         (INTERNAL_SYSCALL_MAIN_0): New macro.
19496         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19497         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19498         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19499         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19500         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19501         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19502         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19503         Replace conditional definitions by conditional definitions of ....
19504         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19505         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19506         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19507         (libpthread-sysdep_routines): Add libc-do-syscall.
19508         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19509         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19510         to __NR_futex not 240.
19511
19512 2015-03-25  Alan Modra  <amodra@gmail.com>
19513
19514         * NEWS: Advertise TLS optimization.
19515         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19516         (DT_PPC_NUM): Increment.
19517         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19518         (CHECK_STATIC_TLS): Use here.
19519         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19520         TLS descriptors.
19521         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19522         * sysdeps/powerpc/dl-tls.c: New file.
19523         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19524         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19525         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19526         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19530
19531 2015-03-25  Alan Modra  <amodra@gmail.com>
19532
19533         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19534         for overlapping .opd entries" to "support...".
19535         * sysdeps/powerpc/powerpc64/configure: Regenerate
19536
19537 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19538
19539         * math/auto-libm-test-in: Add more tests of acos.
19540         * math/auto-libm-test-out: Regenerated.
19541         * sysdeps/i386/fpu/libm-test-ulps: Update.
19542         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19543
19544         * math/auto-libm-test-in: Add more tests of expm1.
19545         * math/auto-libm-test-out: Regenerated.
19546         * sysdeps/i386/fpu/libm-test-ulps: Update.
19547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19548
19549 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19550
19551         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19552         * math/auto-libm-test-out: Regenerated.
19553         * sysdeps/i386/fpu/libm-test-ulps: Update.
19554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19555
19556         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19558
19559         * math/auto-libm-test-in: Add more tests of log2.
19560         * math/auto-libm-test-out: Regenerated.
19561         * sysdeps/i386/fpu/libm-test-ulps: Update.
19562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19563
19564 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19565
19566         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19567         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19568         _IO_IS_APPENDING bit in READ_WRITE instead.
19569
19570 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19571
19572         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19573         (__determine_cpumask_size): Replace extend_alloca with a
19574         variable-length array.  Do not treat res == 0 as an error.
19575
19576 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19577
19578         [BZ #18100]
19579         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19580         and integer overflow.
19581         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19582         (main): Add integer overflow tests.
19583         * manual/pattern.texi (Calling Wordexp): Document additional use
19584         for WRDE_SYNTAX.
19585
19586 2015-03-23  Alan Modra  <amodra@gmail.com>
19587
19588         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19589         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19590         and false branch of conditional.
19591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19592         Likewise.
19593
19594 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19595
19596         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19597         libc-modules.h
19598         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19599         unused declaration of _hurd_intr_rpc_msg_in_trap.
19600         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19601         defined instead of whether it is non-zero.
19602         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19603         input constraint instead of both input and output constraint.  Use ecx
19604         clobber instead of %ecx.
19605         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19606         mutex_unlock): Use a statement expression instead of an expression list.
19607         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19608         type to vm_size_t instead of vm_address_t.
19609         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19610         defined instead of whether it is non-zero.
19611         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19612         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19613         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19614         comparisons with mapaddr.
19615         * nscd/nscd-client.h: Include <time.h>.
19616         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19617         9th parameter to __vm_region instead of int.
19618         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19619         * scripts/check-local-headers.sh (exclude): Add device/,
19620         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19621         cthreads.h.
19622
19623 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19624
19625         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19626         to account for alignment padding.
19627         * sysdeps/arm/memmove.S: Likewise.
19628
19629 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19630
19631         * sysdeps/unix/sysv/linux/generic/README: New file.
19632
19633 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19634
19635         [BZ #18138]
19636         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19637         (futex_abstimed_wait)
19638         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19639         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19640         of lll_futex_timed_wait.
19641
19642 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19643
19644         [BZ #17542]
19645         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19646
19647 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19648
19649         [BZ #17090]
19650         [BZ #17620]
19651         [BZ #17621]
19652         [BZ #17628]
19653         * NEWS: Update.
19654         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19655         entries with Static TLS too.  Skip entries past the end of the
19656         allocated DTV, from Alan Modra.
19657         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19658         Static TLS DTV entry set up from...
19659         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19660         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19661         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19662         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19663         for Static TLS.
19664         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19665         that the slot we find is associated with the given map before
19666         using its generation count.
19667         * nptl_db/db_info.c: Include ldsodefs.h.
19668         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19669         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19670         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19671         (link_map::l_tls_offset): New struct field.
19672         (dtv_t::counter): Likewise.
19673         (rtld_global): New struct.
19674         (_rtld_global): New rtld variable.
19675         (dl_tls_dtv_slotinfo_list): New rtld global field.
19676         (dtv_slotinfo_list): New struct.
19677         (dtv_slotinfo): Likewise.
19678         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19679         (td_lookup): Rename to...
19680         (td_mod_lookup): ... this.  Use new mod parameter instead of
19681         LIBPTHREAD_SO.
19682         * nptl_db/td_thr_tlsbase.c: Include link.h.
19683         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19684         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19685         addresses even if the DTV is out of date or missing them.
19686         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19687         index zero-length arrays.
19688         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19689         (td_lookup): Make it a macro implemented in terms of...
19690         (td_mod_lookup): ... this declaration.
19691         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19692         (DB_MAIN_VARIABLE): Likewise.
19693
19694 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19695
19696         [BZ #18134]
19697         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19698
19699 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19700
19701         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19702
19703 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19704
19705         [BZ #18128]
19706         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19707         (atomic_add, atomic_increment_and_test)
19708         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19709
19710 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19711
19712         * stdlib/setenv.c (__add_to_environ):
19713         Dump core quickly if setenv (..., NULL, ...) is called.
19714
19715 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19716
19717         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19718         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19719         all the necessary asm magic in one place.
19720         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19721         using those.
19722
19723 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19724
19725         [BZ #14906]
19726         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19727         traced file mtime. Use consistent log message.
19728         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19729         (register_traced_file): Call install_watches. Always set mtime.
19730         (invalidate_cache): Iterate over all trace files. Call install_watches.
19731         (inotify_check_files): Don't inline. Handle watching parent
19732         directories and configuration file movement in and out.
19733         (handle_inotify_events): New function.
19734         (main_loop_poll): Call handle_inotify_events.
19735         (main_loop_epoll): Likewise.
19736         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19737         (struct traced_file): Use array of inotify fds. Add parent directory,
19738         and basename.
19739         (struct database_dyn): Remove unused file_mtime.
19740         (init_traced_file): New inline function.
19741         (define_traced_file): New macro.
19742         * nss/nss_db/db-init.c: Use define_traced_file.
19743         (_nss_db_init): Use init_traced_file.
19744         * nss/nss_files/files-init.c: Use define_traced_file.
19745         (_nss_files_init): Use init_traced_file.
19746
19747 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19748
19749         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19750         [_LIBC]: Do not include <stdlib.h>.
19751         [!_LIBC] (abort): Remove declaration.
19752         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19753         _FP_STATIC_ASSERT instead of conditionally calling abort.
19754         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19755         (_FP_EXTEND_CNAN): Likewise.
19756         (FP_TRUNC): Likewise.
19757         (__FP_CLZ): Likewise.
19758         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19759
19760 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19761
19762         * manual/string.texi (XPG basename): Fix prototype.
19763
19764 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19765
19766         [BZ #18080]
19767         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19768         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19769         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19770         (__setcontext): Likewise.
19771         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19772         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19773         Call rt_sigprocmask syscall one time to set new signal mask
19774         and retrieve the current signal mask instead of two calls.
19775         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19776         (__swapcontext): Likewise.
19777         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19778         * stdlib/tst-setcontext2.c: New file.
19779
19780 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19781
19782         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19783
19784 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19785
19786         [BZ #18093]
19787         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19788         the wrong size.
19789
19790 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19791
19792         [BZ #18043]
19793         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19794
19795 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19796
19797         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19798         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19799         Remove define.
19800         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19801         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19802         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19803         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19804         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19805         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19806         define.
19807         * nptl_db/td_symbol_list.c (td_lookup): Remove
19808         HAVE_ASM_GLOBAL_DOT_NAME code.
19809         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19810         HAVE_ASM_GLOBAL_DOT_NAME check.
19811         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19812         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19813         (DOT_LABEL): Remove define.
19814         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19815         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19816         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19817         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19818         (__TLS_GET_ADDR): Likewise.
19819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19820         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19821
19822 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19823
19824         [BZ #18111]
19825         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19826         (_FPU_SETCW): Initialize cw from fpsr before storing.
19827         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19828         (fesetexceptflag): Rewrite using fpu_control.h.
19829         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19830
19831 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19832
19833         [BZ #18110]
19834         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19835         asms.
19836         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19837
19838 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19839
19840         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19841         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19842         abort.
19843         (_FP_FMA): Likewise.
19844         (_FP_DIV): Likewise.
19845
19846 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19847
19848         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19849         with 0 in that case.
19850         * Makefile (summarize-tests): New canned sequence, factored out of
19851         commands for targets tests and xtests.  Display summary lines that
19852         don't start with PASS: or XFAIL: rather than ones that do start with
19853         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19854         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19855         do start with ERROR: or FAIL:.
19856         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19857         (except for [$(build-shared) = yes]).
19858         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19859         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19860         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19861         * nptl/Makefile: Revert 2015-03-04 changes.
19862         [$(CXX) empty] (tests-unsupported): New variable.
19863         * debug/Makefile: Likewise.
19864
19865         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19866         gnulib file.  Replace __attribute with __attribute__ throughout.
19867
19868 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19869
19870         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19871
19872 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19873
19874         [BZ #18104]
19875         * math/auto-libm-test-in: Add another test of pow.
19876         * math/auto-libm-test-out: Regenerated.
19877
19878 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19879
19880         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19881         $(config-cflags-nofma).
19882
19883 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19884
19885         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19886         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19887         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19888         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19889         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19890         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19891         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19892         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19893         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19894         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19895         Add comment on closing #endif.
19896
19897 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19898
19899         * posix/wordexp.c (CHAR_IN_SET): New macro.
19900         (parse_param): Use it.
19901
19902 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19903
19904         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19905
19906 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19907
19908         [BZ #18043]
19909         * posix/wordexp.c (parse_param): Fix buffer overflow.
19910         * posix/wordexp-test.c (test_case): Add test case.
19911
19912 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19913
19914         [BZ #18042]
19915         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19916         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19917
19918 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19919
19920         [BZ #18043]
19921         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19922         (do_bz18043): Delete.
19923         (at_page_end): New.
19924         (testit): Refactor to have words at the edge of unreadable page.
19925
19926 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19927
19928         [BZ #16734]
19929         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19930         Cleanup read-only streams as well.
19931         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19932
19933 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19934
19935         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19936         <bits/libc-lockP.h>
19937
19938 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19939
19940         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19941         on [__KERNEL__].
19942         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19943         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19944         * soft-fp/op-common.h (_FP_DECL): Likewise.
19945
19946 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19947
19948         * elf/ifuncdep2.c (global): Replace
19949         __attribute__((visibility("protected"))) with
19950         asm (".protected global").
19951         * elf/ifuncmod1.c (global): Likewise.
19952         * elf/ifuncmod5.c (global): Likewise.
19953
19954 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19955
19956         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19957         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19958
19959 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19960
19961         * manual/install.texi (Configuring and compiling):
19962         Document test-wrapper-env-only.
19963         * INSTALL: Regenerated.
19964
19965 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19966
19967         [BZ #18043]
19968         * posix/wordexp.c (parse_param): Fix buffer overflow.
19969         * posix/wordexp-test.c (do_bz18043): Add test case.
19970
19971 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19972
19973         * time/tst-strptime2.c (do_test): Ensure failing tests are
19974         reported correctly.
19975         * time/tst-strptime3.c (do_test): Likewise.
19976
19977 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19978
19979         Fix aio_error thread-safety.
19980         * sysdeps/pthread/aio_error.c: New file
19981         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19982         synchronization.
19983
19984 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19985
19986         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19987         (group_number, vfprintf): Use it.
19988         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19989         (JUMP, REF): Use it.
19990         (WORK_BUFFER_SIZE): New enum constant.
19991         (process_arg, vfprintf): Use it.
19992
19993 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19994
19995         * manual/errno.texi (Error Messages): Complete example function
19996         by adding missing #define.
19997         (program_invocation_name): Add statement indicating GNU
19998         extension and reference which header file declares the variable.
19999         (program_invocation_short_name): Likewise.
20000
20001 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
20002
20003         * manual/errno.texi (Error Messages): Delete strerror ISO C89
20004         compatibility note.
20005
20006 2015-03-05  Roland McGrath  <roland@hack.frob.com>
20007
20008         * Makeconfig (test-wrapper-env-only): New variable.
20009         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
20010         then use that with $(test-wrapper-env-only) rather than using
20011         $(test-wrapper-env) $(run-program-env) $($*-ENV).
20012
20013 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20014
20015         [BZ #18082]
20016         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
20017         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
20018         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
20019         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
20020         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
20021         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
20022         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
20023         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
20024         Likewise.
20025         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
20026         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
20027         Likewise.
20028         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
20029         Likewise.
20030         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
20031         Likewise.
20032         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
20033         Likewise.
20034         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
20035         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
20036         Likewise.
20037         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
20038         Likewise.
20039         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
20040         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
20041
20042 2015-03-04  Roland McGrath  <roland@hack.frob.com>
20043
20044         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
20045         (ETH_ALEN): New macro.
20046         (struct ether_addr): Use it for length of ether_addr_octet.
20047
20048         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
20049         (setdb): Don't call __nss_configure_lookup for "rpc".
20050         (do_test): Don't call test_rpc.
20051         (output_rpcent, test_rpc): Functions moved ...
20052         * sunrpc/test-rpcent.c: ... to this new file.
20053         * sunrpc/Makefile (tests): Add it.
20054
20055         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
20056         __xpg_sigpause.
20057         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
20058         * nptl/tst-signal6.c: Likewise.
20059         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
20060         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
20061
20062         * configure.ac (libc_cv_cxx_link_ok): New check.
20063         Reset CXX to empty if it fails to link.
20064         * configure: Regenerated.
20065         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
20066         bug-atexit3-lib only if $(CXX) is nonempty.
20067         * nptl/Makefile (tests): Likewise for tst-cancel24.
20068         (tests, tests-static): Likewise for tst-cancel24-static.
20069         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
20070         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
20071         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
20072         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
20073
20074 2015-03-04  Andreas Schwab  <schwab@suse.de>
20075
20076         [BZ #17631]
20077         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
20078         for non-GCC compilers.
20079         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
20080         Likewise.
20081
20082 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20083
20084         [BZ #17776]
20085         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
20086         integer before bitwise and assembly operations.
20087         (feclearexcept): Likewise.
20088         * math/test-fenvinline.c: New file.
20089         * math/Makefile: Add test-fenvinline test.
20090
20091 2015-03-03  Alan Modra  <amodra@gmail.com>
20092
20093         [BZ #16512]
20094         * scripts/localplt.awk: Strip off symbol version.
20095         * NEWS: Mention bug fix.
20096
20097 2015-03-02  Roland McGrath  <roland@hack.frob.com>
20098
20099         * sysdeps/pthread/timer_routines.c
20100         (timer_free_list, thread_free_list, thread_active_list): Make static.
20101
20102 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
20103
20104         [BZ #17779]
20105         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20106         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20107         Undefine.
20108         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20109         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20110         Likewise.
20111         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20112         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20113         Likewise.
20114
20115 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
20116
20117         [BZ #18036]
20118         * posix/fnmatch_loop.c (END): Detect invalid pattern.
20119         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
20120
20121 2015-03-02  Andreas Schwab  <schwab@suse.de>
20122
20123         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
20124         variable name.
20125
20126 2015-03-02  Florian Weimer  <fweimer@redhat.com>
20127
20128         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
20129         Return error status.
20130
20131 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
20132
20133         [BZ #15969]
20134         * locale/findlocale.c (_nl_find_locale): Introduce const
20135         version of loc_name and drop unsafe type casts.
20136
20137 2015-02-27  Roland McGrath  <roland@hack.frob.com>
20138
20139         * dlfcn/tststatic2.c (main): Converted to ...
20140         (do_test): ... this.
20141         (TEST_FUNCTION): New macro.
20142         Include test-skeleton.c.
20143
20144 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20145
20146         [BZ #17711]
20147         * elf/Makefile (tests): Add vismain only if PIE is enabled.
20148         (tests-pie): Add vismain.
20149         (CFLAGS-vismain.c): New.
20150         * elf/vismain.c: Add comments for PIE requirement.
20151
20152 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20153
20154         [BZ #18046]
20155         [BZ #18047]
20156         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
20157         0x1p-56L as threshold for just returning the argument.
20158         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
20159         0x1p-32L as threshold for just returning the argument.
20160         * math/auto-libm-test-in: Add more tests of atanh.
20161         * math/auto-libm-test-out: Regenerated.
20162         * sysdeps/i386/fpu/libm-test-ulps: Update.
20163         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
20164
20165 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20166
20167         * string/bcopy.c (bcopy): Call memmove for performance.
20168
20169 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20170
20171         * string/bzero.c (__bzero): Call memset for performance.
20172
20173 2015-02-27  John David Anglin  <dave.anglin@bell.net>
20174
20175         [BZ #18068]
20176         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
20177         to 00100000.
20178
20179 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20180
20181         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
20182
20183 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20184
20185         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
20186         (__kernel_standard): Use CSTR macro when setting exc.name.
20187         * sysdeps/ieee754/Makefile [$(subdir) = math]
20188         (CFLAGS-k_standard.c): Remove variable.
20189
20190         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
20191         setting p and q from "else if" to "else".
20192         (qzero): Likewise.
20193         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
20194         (qone): Likewise.
20195         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
20196         (qzerof): Likewise.
20197         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
20198         (qonef): Likewise.
20199         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
20200         (qzero): Likewise.
20201         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
20202         (qone): Likewise.
20203
20204         [BZ #18038]
20205         [BZ #18039]
20206         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
20207         return pi/2 for arguments below 0x1p-113L.
20208         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
20209         return pi/2 for arguments below 0x1p-106L.
20210         * math/auto-libm-test-in: Add more tests of acos.
20211         * math/auto-libm-test-out: Regenerated.
20212
20213         [BZ #16351]
20214         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
20215         (MO): New macro.
20216         (__ieee754_asin): Force underflow exception for results with small
20217         absolute value.
20218         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
20219         (MO): New macro.
20220         (__ieee754_asinf): Force underflow exception for results with
20221         small absolute value.
20222         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
20223         (__ieee754_asin): Force underflow exception for results with small
20224         absolute value.
20225         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
20226         (__ieee754_asinf): Force underflow exception for results with
20227         small absolute value.
20228         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
20229         (__ieee754_asinl): Force underflow exception for results with
20230         small absolute value.
20231         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
20232         (__ieee754_asinl): Force underflow exception for results with
20233         small absolute value.
20234         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
20235         (__ieee754_asinl): Force underflow exception for results with
20236         small absolute value.
20237         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
20238         Include <math.h>.
20239         * math/auto-libm-test-in: Do not mark underflow exceptions as
20240         possibly missing for bug 16351.
20241         * math/auto-libm-test-out: Regenerated.
20242
20243         [BZ #18030]
20244         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
20245         of power of 2 down when low part has opposite sign.
20246         * math/libm-test.inc (logb_test_data): Add more tests.
20247
20248 2015-02-26  Andreas Schwab  <schwab@suse.de>
20249
20250         [BZ #18032]
20251         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
20252         over collating symbol inside a bracket expression.  Minor cleanup.
20253         * posix/tst-fnmatch3.c (do_test): Add test case.
20254
20255 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20256
20257         [BZ #18029]
20258         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
20259         Adjust exponent of power of 2 down when low part has opposite
20260         sign.
20261         * math/libm-test.inc (ilogb_test_data): Add more tests.
20262
20263 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
20264
20265         [BZ #15969]
20266         * locale/findlocale.c (_nl_find_locale): Fix constness error in
20267         the previous change.
20268
20269         [BZ #15969]
20270         * locale/findlocale.c (_nl_find_locale): Retry archive search
20271         after alias expansion.
20272
20273 2015-02-25  Roland McGrath  <roland@hack.frob.com>
20274
20275         * iconv/tst-iconv3.c (main): Converted to ...
20276         (do_test): ... this.
20277         (TEST_FUNCTION): New macro.
20278         Include test-skeleton.c.
20279
20280         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
20281         (convert): Make function static.
20282         (test_unalign): Likewise.  Add const to argument pointee types.
20283         (main): Replace with static function do_test.
20284         Print "Succeeded." only if RET is zero.
20285         (TEST_FUNCTION): New macro.
20286         Include test-skeleton.c.
20287
20288         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
20289         returns a null pointer.
20290
20291 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20292
20293         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
20294         to __memcpy_ppc only for static builds.
20295
20296 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
20297
20298         [BZ #18020]
20299         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
20300         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
20301         * math/auto-libm-test-in: Add more tests of asinh.
20302         * math/auto-libm-test-out: Regenerated.
20303         * sysdeps/i386/fpu/libm-test-ulps: Update.
20304         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20305
20306 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
20307
20308         [BZ #15850]
20309         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
20310         and ip6_mtuinfo definitions here.
20311         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
20312         in this define too.  Update comment.
20313
20314 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
20315
20316         * elf/sprof.c (load_shobj): Tweak error message to match others.
20317
20318 2015-02-24  Kevin Easton  <kevin@guarana.org>
20319
20320         [BZ #16145] (partial fix)
20321         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
20322         to reduce lock contention.
20323
20324 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
20325
20326         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
20327         (struct timex): Update time comment.
20328         (ADJ_SETOFFSET): Define.
20329
20330 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20331
20332         [BZ #18019]
20333         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20334         2**56 not 2**28 as threshold for log (2x) formula.
20335         * math/auto-libm-test-in: Add more tests of acosh.
20336         * math/auto-libm-test-out: Regenerated.
20337         * sysdeps/i386/fpu/libm-test-ulps: Update.
20338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20339
20340 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20341
20342         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
20343         parenthesis around the buf assignment.
20344         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
20345
20346 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20347
20348         [BZ #16783]
20349         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
20350         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
20351         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
20352         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20353         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20354         * math/libm-test.inc (scalb_test_data): Add more tests.
20355
20356 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
20357
20358         [BZ #17916]
20359         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
20360         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
20361
20362 2015-02-24  Eric Rannaud  <e@nanocritical.com>
20363
20364         [BZ #17523]
20365         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20366         * io/bits/fcntl2.h (open): Use it.
20367         (openat): Likewise.
20368         * io/open.c (__libc_open): Likewise.
20369         * io/open64.c (__libc_open64): Likewise.
20370         * io/open64_2.c (__open64_2): Likewise.
20371         * io/open_2.c (__open_2): Likewise.
20372         * io/openat.c (__openat): Likewise.
20373         * io/openat64.c (__openat64): Likewise.
20374         * io/openat64_2.c (__openat64_2): Likewise.
20375         * io/openat_2.c (__openat_2): Likewise.
20376         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20377         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20378         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20379         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20380         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20381         (__open_nocancel): Likewise.
20382         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20383         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20384         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20385
20386 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20387
20388         [BZ #14841]
20389         * resolv/gethnamaddr.c (getanswer): Skip logging if
20390         RES_USE_DNSSEC is set.
20391         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20392
20393 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20394
20395         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20396
20397 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20398
20399         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20400         201304L, for Unicode 7.
20401
20402 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20403
20404         [BZ #17836]
20405         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20406         shared library.  Add gmon-start.os otherwise.
20407         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20408         $(objpfx)gmon-start.os if builing shared library.
20409         ($(objpfx)g$(static-start-installed-name)): Likewise.
20410
20411 2015-02-23  Andreas Schwab  <schwab@suse.de>
20412
20413         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20414
20415 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20416
20417         [BZ #17269]
20418         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20419         (enlarge_userbuf): Likewise.
20420
20421 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20422
20423         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20424         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20425         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20426         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20427
20428 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20429
20430         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20431         expression inside statement expression.
20432
20433 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20434
20435         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20436         <sysdeps/nptl/lowlevellock.h> and remove macros and
20437         functions that are now defined there.
20438         (SYS_futex): Remove.
20439         (lll_compare_and_swap): Remove.
20440         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20441
20442 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20443
20444         [BZ #17999]
20445         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20446         instead of scandirat.
20447         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20448         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20449         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20450         __scandirat.
20451         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20452         (__scandirat): Declare.  Use libc_hidden_proto.
20453         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20454         Remove variable.
20455         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20456
20457 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20458
20459         [BZ #15319]
20460         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20461         (MO): New macro.
20462         (__ieee754_atan2): For results with small absolute value, force
20463         underflow exception and remove excess range and precision from
20464         return value.
20465         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20466         (MO): New macro.
20467         (__ieee754_atan2f): For results with small absolute value, force
20468         underflow exception and remove excess range and precision from
20469         return value.
20470         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20471         (MO): New macro.
20472         (__atan): For results with small absolute value, force underflow
20473         exception and remove excess range and precision from return value.
20474         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20475         (MO): New macro.
20476         (__atanf): For results with small absolute value, force underflow
20477         exception and remove excess range and precision from return value.
20478         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20479         <math.h>.
20480         (__ieee754_atan2): Force underflow exception for results with
20481         small absolute value.
20482         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20483         <math_private.h>.
20484         (atan): Force underflow exception for results with small absolute
20485         value.
20486         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20487         (__atanf): Force underflow exception for results with small
20488         absolute value.
20489         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20490         <math.h>.
20491         (__atanl): Force underflow exception for results with small
20492         absolute value.
20493         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20494         (__atanl): Force underflow exception for results with small
20495         absolute value.
20496         * sysdeps/x86/fpu/bits/mathinline.h
20497         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20498         (__ieee754_atan2): Only define inline for long double.
20499         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20500         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20501         * math/auto-libm-test-in: Do not mark underflow exceptions as
20502         possibly missing for bug 15319.  Add more tests of atan2.
20503         * math/auto-libm-test-out: Regenerated.
20504         * math/libm-test.inc (casin_test_data): Do not mark underflow
20505         exceptions as possibly missing for bug 15319.
20506         (casinh_test_data): Likewise.
20507         * sysdeps/i386/fpu/libm-test-ulps: Update.
20508
20509 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20510
20511         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20512         * sysdeps/mips/bits/endian.h: Fix comments.
20513
20514 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20515
20516         [BZ #17996]
20517         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20518         (hdestroy_r): Likewise.
20519         (hsearch_r): Likewise.
20520         (__hcreate_r): Declare and use libc_hidden_proto.
20521         (__hdestroy_r): Likewise.
20522         (__hsearch_r): Likewise.
20523         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20524         (hcreate): Call __hcreate_r instead of hcreate_r.
20525         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20526         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20527         as weak alias of __hcreate_r.
20528         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20529         __hdestroy_r.
20530         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20531         __hsearch_r.
20532         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20533         Remove variable.
20534         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20535         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20536         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20537         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20538
20539 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20540
20541         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20542         arena_lock into a single arena_get.
20543
20544 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20545
20546         * dl-reloc.c: Inlucde libc-internal.h.
20547         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20548         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20549         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20550         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20551         (grow_heap): Likewise.
20552         * malloc/malloc.c: Include libc-internal.h.
20553         (do_check_malloc): Call powerof2.
20554         (sysmalloc): Use pagesize. Call ALIGN_UP.
20555         (systrim): Use pagesize.
20556         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20557         (__libc_valloc): Use pagesize.
20558         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20559
20560 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20561
20562         [BZ #17991]
20563         * include/sys/resource.h (__getrlimit64): Declare.  Use
20564         libc_hidden_proto.
20565         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20566         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20567         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20568         getrlimit64.
20569         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20570         __getrlimit64.
20571         [!getrlimit64] (getrlimit64): Define as weak alias of
20572         __getrlimit64.  Use libc_hidden_weak.
20573         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20574         using __getrlimit64 not __new_getrlimit64.
20575         (__GI_getrlimit64): Likewise.
20576         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20577         Likewise.
20578         (__GI_getrlimit64): Likewise.
20579         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20581         (getrlimit): Add __getrlimit64 alias.
20582         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20583         Likewise.
20584         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20585         Remove variable.
20586         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20587         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20588
20589 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20590
20591         * libio/fileops.c: Add missing sys/mman.h
20592         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20593
20594 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20595
20596         * manual/math.texi (Errors in Math Functions): Clarify goals
20597         regarding inexact and underflow exceptions.
20598
20599 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20600
20601         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20602         * sysdeps/mips/memset.S: Ditto.
20603
20604 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20605
20606         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20607
20608 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20609
20610         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20611         (__v1longjmp): Remove versioned symbol.
20612         (__v1siglongjmp): Remove alias and versioned symbol.
20613         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20614         (__v2siglongjmp): Likewise.
20615
20616 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20617
20618         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20619
20620 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20621
20622         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20623
20624 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20625
20626         [BZ #17987]
20627         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20628         zero result does not depend on the sign resulting from
20629         subtraction.
20630         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20631         Likewise.
20632         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20633         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20634         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20635         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20636         * math/libm-test.inc (remquo_test_data): Add more tests.
20637
20638 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20639
20640         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20641         Problem reported by J William Piggott.
20642
20643 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20644
20645         [BZ #17978]
20646         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20647         products 4 * y and 2 * y where those would overflow.
20648         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20649         Likewise.
20650         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20651         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20652         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20653         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20654         * math/libm-test.inc (remquo_test_data): Add more tests.
20655
20656         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20657
20658         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20659         [defined _COMPILING_NEWLIB].
20660         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20661         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20662
20663         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20664         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20665
20666 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20667
20668         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20669         acquired.
20670
20671 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20672
20673         [BZ #17792]
20674         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20675         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20676         HOST_STACK_END_ADDR): Likewise.
20677
20678 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20679
20680         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20681         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20682         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20683
20684 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20685
20686         * sysdeps/generic/c++-types.data: New file.
20687         * sysdeps/generic/ld.abilist: New file.
20688         * sysdeps/generic/libBrokenLocale.abilist: New file.
20689         * sysdeps/generic/libanl.abilist: New file.
20690         * sysdeps/generic/libc.abilist: New file.
20691         * sysdeps/generic/libcrypt.abilist: New file.
20692         * sysdeps/generic/libdl.abilist: New file.
20693         * sysdeps/generic/libm.abilist: New file.
20694         * sysdeps/generic/libpthread.abilist: New file.
20695         * sysdeps/generic/libresolv.abilist: New file.
20696         * sysdeps/generic/librt.abilist: New file.
20697
20698 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20699
20700         [BZ #17569]
20701         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20702         Compute absolute value of x as modified by fmod, not original
20703         value of x.
20704         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20705         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20706         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20707         RUN_TEST_ffI_f1_mod8.
20708         (remquo_test_data): Add more tests.
20709
20710 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20711
20712         * sysdeps/init_array/pt-crti.S: New file.
20713
20714 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20715
20716         [BZ #17967]
20717         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20718         __builtin_fmaf instead of relying on contraction of a * b + c.
20719
20720 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20721
20722         [BZ #17969]
20723         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20724         node.
20725
20726 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20727
20728         [BZ #17964]
20729         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20730         __builtin_fma instead of relying on contraction of a * b + c.
20731
20732 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20733
20734         * Makeconfig (ASFLAGS): Add -Werror=undef.
20735         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20736         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20737         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20738
20739         * Makeconfig (after-link): New variable.
20740         (+link-pie, +link-pie-tests): Use it.
20741         (+link-static, +link-static-tests): Likewise.
20742         (+link, +link-tests): Likewise.
20743         * Makerules (build-module, build-module-asneeded): Likewise.
20744         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20745         Likewise.
20746         * elf/Makefile ($(objpfx)ld.so): Likewise.
20747
20748 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20749
20750         [BZ #17965]
20751         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20752         both struct timeval and struct timespec.
20753
20754 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20755
20756         [BZ #16560]
20757         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20758         and redefine.
20759         (__ieee754_exp2l): Do not multiply small fractional parts by
20760         M_LN2l.
20761         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20762         small argument.
20763         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20764         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20765         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20766         * math/auto-libm-test-in: Add more tests of exp2.
20767         * math/auto-libm-test-out: Regenerated.
20768
20769 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20770
20771         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20772         unaligned path.
20773
20774 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20775
20776         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20777         little endian.
20778
20779 2015-02-12  Andreas Schwab  <schwab@suse.de>
20780
20781         [BZ #15790]
20782         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20783         Filter out elision flags from value returned in kind.
20784         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20785         * nptl/tst-pthread-mutexattr.c: New file.
20786
20787 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20788
20789         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20790         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20791         into gnu-gnu, and update comment to refer to abi-tags.
20792
20793 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20794
20795         [BZ #15467]
20796         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20797         (__sincos): Set errno to EDOM for infinite argument.
20798         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20799         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20800         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20801         (__sincosl): Set errno to EDOM for infinite argument.
20802         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20803         (__sincosl): Set errno to EDOM for infinite argument.
20804         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20805         (__sincosl): Set errno to EDOM for infinite argument.
20806         * math/libm-test.inc (sincos_test_data): Test errno setting.
20807
20808 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20809
20810         * string/strxfrm_l.c: Remove #define STRCMP.
20811         * string/strcoll_l.c: Remove #define STRLEN.
20812         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20813         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20814
20815 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20816
20817         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20818         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20819         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20820         * sysdeps/mips/mips64/Makefile: ... here.
20821         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20822         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20823         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20824         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20825         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20826         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20827         * sysdeps/mips/mips64/n64/Implies: Likewise.
20828
20829 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20830
20831         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20832         <sys/time.h>, <string.h>, and <errno.h>.
20833         (dest_offset, dest_address, value, zero): Remove unused variables.
20834         (ldouble): Remove typedef.
20835         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20836         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20837         1).  Fix code style.
20838         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20839         (check): Function removed.
20840         (CHECK): New macro.
20841         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20842         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20843         Don't call set_sigaction_FP and remove_sigaction_FP here.
20844         (ldouble_test): Just use 'long double' as macro argument, no need for
20845         the 'ldouble' typedef.
20846         (do_test): Set up SIGFPE handler at start, using plain signal rather
20847         than sigaction.  Fix code style.
20848
20849 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20850
20851         [BZ #17949]
20852         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20853         jump label.
20854
20855 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20856
20857         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20858         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20859
20860         * sysdeps/powerpc/configure.ac: Remove file.
20861         * sysdeps/powerpc/configure: Likewise.
20862
20863         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20864         [sysdep_routines]: Remove wordcopy-power6 object.
20865         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20866         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20867         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20868         (__memmove_ppc32): Likewise.
20869         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20870         file.
20871         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20872         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20873         Remove preprocessor.
20874
20875         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20876         [sysdep_routines]: Remove wide chars objects.
20877         [wcsmbs]: New rule for wide char objects.
20878
20879         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20880         Remove wordcopy-power6 obejct.
20881         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20882         Use local call for wordcopy and memcpy symbols.
20883         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20884         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20885         implementation for loader.
20886         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20887
20888         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20889         Remove wordcopy-power7 object.
20890         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20891         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20892         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20893         (_wordcopy_fwd_dest_aligned): Likewise.
20894         (_wordcopy_bwd_aligned): Likewise.
20895         (_wordcopy_bwd_dest_aligned): Likewise.
20896
20897         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20898         Rewrite to call __memmove_ppc instead of include default
20899         implementation.
20900
20901         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20902         Remove wide chars objects.
20903         [wcsmbs]: New rule for wide char objects.
20904
20905 2015-02-09  Andreas Schwab  <schwab@suse.de>
20906
20907         [BZ #17912]
20908         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20909         in terms of __O_DIRECTORY.
20910
20911 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20912
20913         * time/getdate.c: Include <stdbool.h>.
20914         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20915         call PTR_MANGLE.
20916         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20917         PTR_DEMANGLE.
20918
20919 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20920
20921         Add ersatz _Static_assert on older C hosts
20922         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20923         pre-C11 C platform that is not known to support _Static_assert.
20924
20925 2015-02-07  Richard Braun  <rbraun@sceen.net>
20926
20927         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20928         sigstate.
20929         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20930
20931 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20932
20933         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20934         priority against unexistent AIO_PRIO_DELTA_MAX.
20935         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20936         instead of int.
20937         * misc/fchflags.c (fchflags): Likewise.
20938         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20939         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20940         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20941         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20942         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20943         Declare macros.
20944         [__USE_MISC] (chflags, fchflags): Declare functions.
20945         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20946         EINVAL when nfds is greater than FD_SETSIZE.
20947         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20948         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20949         45.
20950         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20951         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20952         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20953         MACH_RCV_TIMED_OUT.
20954         * hurd/hurd/signal.h (_hurd_self_sigstate,
20955         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20956         Explicit casts from void *.
20957         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20958         * abi-tags: Rename gnu-gnu os into gnu.
20959
20960         [BZ #4719]
20961         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20962         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20963         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20964         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20965         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20966         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20967
20968         [BZ #17944]
20969         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20970         duplicates ADDR->sun_path with sockaddr LEN limitation.
20971         * sysdeps/mach/hurd/connect.c: Include <string.h>
20972         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20973         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20974         * sysdeps/mach/hurd/sendto.c: Likewise.
20975         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20976         implementing it by hand.
20977
20978 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20979
20980         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20981         Use sfi_breg on ldr.
20982         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20983         Likewise.
20984
20985         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20986         it's defined.
20987         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20988         Test SIGSETXID only if it's defined.
20989
20990         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20991
20992         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20993         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20994
20995         * nptl/tst-align2.c: Moved ...
20996         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20997         * nptl/Makefile (tests): Remove tst-align2.
20998         * sysdeps/unix/sysv/linux/Makefile
20999         [$(subdir) = nptl] (tests): Add tst-align-clone.
21000         * nptl/tst-getpid1.c: Moved ...
21001         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
21002         * nptl/tst-getpid2.c: Moved ...
21003         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
21004         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
21005         * sysdeps/unix/sysv/linux/Makefile
21006         [$(subdir) = nptl] (tests): ... here.
21007         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
21008         * sysdeps/unix/sysv/linux/Makefile
21009         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
21010
21011         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
21012         Drop trailing \n from perror argument.  Use return rather than exit.
21013
21014         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
21015         on [SA_SIGINFO].
21016         * nptl/tst-cancel21.c (do_test): Likewise.
21017         * debug/tst-backtrace6.c: Include <signal.h> first thing.
21018         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
21019         [!SA_SIGINFO]: Make it a stub test.
21020
21021         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
21022         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
21023
21024         * posix/tst-getlogin.c: Move to ...
21025         * login/tst-getlogin.c: ... here.
21026         * posix/Makefile (tests): Move tst-getlogin to ...
21027         * login/Makefile (tests): ... here.
21028
21029         * libio/tst-atime.c (do_test): Move local variables SV and E
21030         inside [ST_NOATIME] conditional.
21031
21032         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
21033
21034         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
21035
21036         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
21037         (wait_code): New function replaces macro.
21038         Call nanosleep rather than syscall.
21039
21040         * nptl/pt-system.c: Rewritten.  Put everything under
21041         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21042         Use IFUNC to redirect when possible.
21043
21044         * nptl/pt-longjmp.c: Rewritten.  Put everything under
21045         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21046         Use IFUNC to redirect when possible.
21047
21048         * nptl/pt-fork.c: Rewritten.  Put everything under
21049         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21050         Use IFUNC to redirect when possible.
21051         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
21052
21053         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
21054         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
21055         unconditionally nowadays.  This included the only reference to
21056         __vdso_clock_gettime that appears outside libc proper.
21057         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
21058         Remove version set (containing only __vdso_clock_gettime).
21059         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
21060         Add attribute_hidden.
21061         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
21062         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
21063         libc_hidden_data_def.
21064         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
21065         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
21066
21067         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
21068         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
21069         setrpcent, and getrpcport to ...
21070         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
21071         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
21072         getrpcbynumber_r, and getrpcent_r to ...
21073         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
21074         * inet/getrpcbyname.c: Moved ...
21075         * sunrpc/getrpcbyname.c: ... here.
21076         * inet/getrpcbyname_r.c: Moved ...
21077         * sunrpc/getrpcbyname_r.c: ... here.
21078         * inet/getrpcbynumber.c: Moved ...
21079         * sunrpc/getrpcbynumber.c: ... here.
21080         * inet/getrpcbynumber_r.c: Moved ...
21081         * sunrpc/getrpcbynumber_r.c: ... here.
21082         * inet/getrpcent.c: Moved ...
21083         * sunrpc/getrpcent.c: ... here.
21084         * inet/getrpcent_r.c: Moved ...
21085         * sunrpc/getrpcent_r.c: ... here.
21086         * inet/Makefile (routines): Move those to ...
21087         * sunrpc/Makefile (routines): ... here.
21088         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
21089         the $(subdirs) list.
21090         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
21091         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
21092         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
21093         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
21094
21095         * elf/Makefile (routines): Include $(all-dl-routines), not just
21096         $(dl-routines).
21097         (rtld-routines): Likewise.  Use = rather than :=.
21098         * sysdeps/aarch64/Makefile [$(subdir) = elf]
21099         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
21100         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
21101         * sysdeps/arm/Makefile: Likewise.
21102         * sysdeps/i386/Makefile: Likewise.
21103         * sysdeps/x86_64/Makefile: Likewise.
21104         * sysdeps/hppa/Makefile [$(subdir) = elf]
21105         (sysdep_routines, sysdep-rtld-routines): Don't add
21106         $(sysdep-dl-routines) to these.
21107         * sysdeps/ia64/Makefile: Likewise.
21108         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
21109         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
21110         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
21111         Don't add dl-static to these; sysdep-dl-routines alone is enough.
21112         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
21113         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
21114         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
21115         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
21116         * sysdeps/powerpc/Makefile [$(subdir) = elf]
21117         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
21118         these; sysdep-dl-routines alone is enough.
21119
21120 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
21121
21122         [BZ #17932]
21123         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
21124         where multiplication results in zero and third argument is finite
21125         and nonzero.
21126         * math/auto-libm-test-in: Add more tests of fma.
21127         * math/auto-libm-test-out: Regenerated.
21128
21129         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
21130         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
21131         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
21132         (_FP_CMP_EQ): Likewise.
21133         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
21134
21135         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
21136         extra argument CHECK_NAN.  Redefine as wrapper around
21137         _FP_EXTEND_CNAN.
21138
21139 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
21140
21141         * version.h (RELEASE): Set to "stable".
21142         (VERSION): Set to "2.21"
21143         * include/features.h (__GLIBC_MINOR__): Set to 21.
21144
21145         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
21146
21147 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21148             Paul Eggert  <eggert@cs.ucla.edu>
21149
21150         [BZ #16618]
21151         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
21152         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
21153         size in bytes. Store needed elements in wpmax. Use needed size
21154         in bytes for extend_alloca.
21155
21156 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
21157
21158         * manual/install.texi: Latest tested versions are GCC 4.9.2,
21159         binutls 2.25, and texinfo 5.2.
21160         * INSTALL: Regenerate.
21161         * sysdeps/nios2/configure: Regenerate.
21162         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
21163         * manual/contrib.texi: Update.
21164         * po/be.po: Update.
21165         * po/bg.po: Update.
21166         * po/ca.po: Update.
21167         * po/cs.po: Update.
21168         * po/da.po: Update.
21169         * po/de.po: Update.
21170         * po/el.po: Update.
21171         * po/eo.po: Update.
21172         * po/es.po: Update.
21173         * po/fi.po: Update.
21174         * po/fr.po: Update.
21175         * po/gl.po: Update.
21176         * po/hr.po: Update.
21177         * po/hu.po: Update.
21178         * po/ia.po: Update.
21179         * po/id.po: Update.
21180         * po/it.po: Update.
21181         * po/ja.po: Update.
21182         * po/ko.po: Update.
21183         * po/lt.po: Update.
21184         * po/nb.po: Update.
21185         * po/nl.po: Update.
21186         * po/pl.po: Update.
21187         * po/pt_BR.po: Update.
21188         * po/ru.po: Update.
21189         * po/rw.po: Update.
21190         * po/sk.po: Update.
21191         * po/sl.po: Update.
21192         * po/sv.po: Update.
21193         * po/tr.po: Update.
21194         * po/uk.po: Update.
21195         * po/vi.po: Update.
21196         * po/zh_CN.po: Update.
21197         * po/zh_TW.po: Update.
21198
21199         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
21200         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
21201         * sysdeps/hppa/dl-irel.h: Remove #warning.
21202         * sysdeps/hppa/entry.h: Provide prototype for
21203         __canonicalize_funcptr_for_compare and cast argument.
21204         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
21205         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
21206         * sysdeps/hppa/sotruss-lib.c: New file.
21207         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
21208         (atomic_compare_and_exchange_val_acq): Use __typeof__.
21209         (atomic_compare_and_exchange_bool_acq): Likewise.
21210         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
21211         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
21212
21213         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
21214         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
21215         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
21216
21217 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
21218
21219         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
21220         called function in non-PIC case.
21221
21222 2015-01-31  David S. Miller  <davem@davemloft.net>
21223
21224         * sysdeps/sparc/sparc32/bits/atomic.h
21225         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
21226         unlock not after it.
21227         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
21228         volatile register usage warnings from the compiler.
21229
21230         * sysdeps/sparc/nptl/sem_init.c: Delete.
21231         * sysdeps/sparc/nptl/sem_post.c: Delete.
21232         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
21233         * sysdeps/sparc/nptl/sem_wait.c: Delete.
21234         * sysdeps/sparc/sparc32/sem_init.c: New file.
21235         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
21236         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
21237         padding explicitly initialized.
21238         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
21239         padding for in-semaphore spinlock.
21240         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
21241         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
21242         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
21243         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
21244         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
21245         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
21246         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
21247         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
21248         version.
21249         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
21250         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
21251
21252 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
21253
21254         [BZ #17801]
21255         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21256         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
21257         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
21258         New.
21259         (index_AVX_Fast_Unaligned_Load): Likewise.
21260         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
21261         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
21262         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
21263         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
21264         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
21265         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
21266         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
21267         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
21268         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
21269
21270 2015-01-29  Andreas Schwab  <schwab@suse.de>
21271
21272         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
21273
21274 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
21275
21276         [BZ #17892]
21277         * nscd/nscd_stat.c (send_stats): Initialize DATA.
21278
21279 2015-01-28  Martin Sebor  <msebor@redhat.com>
21280
21281         * math/README.libm-test: Clarify. Add "How to read the test output."
21282
21283 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
21284
21285         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
21286         Define to 0.
21287
21288 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
21289
21290         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
21291         (__HAVE_64B_ATOMICS): Define to 0.
21292
21293 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21294
21295         [BZ #17885]
21296         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
21297         value to set as new flag.
21298
21299         [BZ #16576]
21300         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
21301         and use _ARCH_PPCSQ instead.
21302         (__ieee754_sqrt): Likewise.
21303         (__ieee754_sqrtf): Likewise.
21304         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
21305         _ARCH_PPCSQ is defined.
21306         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
21307         fsqrt instruction.
21308         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
21309         _ARCH_PPCSQ is defined.
21310         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
21311         fsqrts instruction.
21312         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
21313
21314 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21315
21316         * iconv/loop.c: Suppress array out of bound warning caused by GCC
21317         bug (GCC BZ #64739).
21318
21319 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
21320
21321         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
21322         Mark _retval as used.
21323         (lll_futex_wake_unlock): Likewise.
21324         (lll_futex_timed_wait_requeue_pi): Likewise.
21325
21326         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
21327         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
21328         register variables.
21329
21330         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
21331         libm_hidden_def.
21332
21333         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
21334         (__bswap_64): Mark as __always_inline.
21335
21336 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
21337
21338         [BZ #15378]
21339         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
21340         when none of the search directories exist.
21341
21342 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21343
21344         [BZ #17869]
21345         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
21346         power8 in .machine directive.
21347
21348         [BZ #17868]
21349         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
21350         set dependency from opd value.
21351
21352 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21353
21354         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21355         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
21356         architecture.
21357
21358 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21359
21360         [BZ #17870]
21361         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
21362         with uint64_t.
21363         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21364         (uint64_t) 1.
21365         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21366         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21367         Replace 1UL with (uint64_t) 1.
21368         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21369         int with uint64_t.
21370
21371 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21372
21373         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21374         (if_freenameindex): Likewise.
21375
21376         * resource/getrlimit64.c: Add missing libc_hidden_def.
21377
21378 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21379
21380         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21381         __label__.
21382         (_FP_FMA): Likewise.
21383         (_FP_TO_INT_ROUND): Likewise.
21384         (_FP_FROM_INT): Likewise.
21385
21386 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21387
21388         [BZ #16418]
21389         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21390         Make code racy and cancel safe.
21391
21392 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21393
21394         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21395         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21396         attribution.
21397
21398         * pwd/tst-getpw.c: Rewrite.
21399
21400         [BZ #17702]
21401         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21402         (modules-names): Add moddummy1 and moddummy2.
21403         ($(objpfx)tst-rec-dlopen): Define.
21404         * dlfcn/moddummy1.c: New file.
21405         * dlfcn/moddummy2.c: New file.
21406         * dlfcn/tst-rec-dlopen.c: New file.
21407         * elf/dl-cache.c (_dl_load_cache_lookup):
21408         Return char*. Copy result with alloca/strcpy/strdup.
21409         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21410         returns char*. Free cached. If not saving realname
21411         free cached.
21412         * elf/dl-open.c (dl_open_worker): Do not assert that
21413         _r_debug->r_state is RT_CONSISTENT.
21414         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21415         returns char*.
21416
21417 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21418             Carlos O'Donell  <carlos@redhat.com>
21419
21420         [BZ #12674]
21421         * nptl/sem_waitcommon.c: New file.
21422         * nptl/sem_wait.c: Include sem_waitcommon.c.
21423         (__sem_wait_cleanup, do_futex_wait): Remove.
21424         (__new_sem_wait): Adapt.
21425         (__new_sem_trywait): New function.
21426         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21427         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21428         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21429         (sem_timedwait): Adapt.
21430         * nptl/sem_post.c (__new_sem_post): Adapt.
21431         (futex_wake): New function.
21432         (__old_sem_post): Add release MO fence.
21433         * nptl/sem_open.c (sem_open): Adapt.
21434         * nptl/sem_init.c (__new_sem_init): Adapt.
21435         (futex_private_if_supported): New function.
21436         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21437         (__old_sem_getvalue): Add using previous code.
21438         * sysdeps/nptl/internaltypes.h: Adapt.
21439         * nptl/tst-sem13.c (do_test): Adapt.
21440         * nptl/tst-sem11.c (main): Adapt.
21441         * nptl/sem_trywait.c: Remove.
21442         * nptl/DESIGN-sem.txt: Remove.
21443         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21444         (gen-as-const-headers): Remove structsem.sym.
21445         * nptl/structsem.sym: Remove.
21446         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21447         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21448         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21449         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21450         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21451         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21452         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21453         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21454         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21455         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21456         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21457         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21458         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21459         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21460         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21461         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21462         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21463         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21464         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21465         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21466         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21467         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21468
21469 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21470
21471         * INSTALL: Regenerated.
21472
21473         * po/libc.pot: Regenerated.
21474
21475 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21476             Sandra Loosemore  <sandra@codesourcery.com>
21477             Andrew Jenner  <andrew@codesourcery.com>
21478             Joseph Myers  <joseph@codesourcery.com>
21479             Nathan Sidwell  <nathan@codesourcery.com>
21480
21481         * NEWS: Mention new Nios II port.
21482         * sysdeps/nios2/Implies: New file.
21483         * sysdeps/nios2/Makefile: New file.
21484         * sysdeps/nios2/Subdirs: New file.
21485         * sysdeps/nios2/Versions: New file.
21486         * sysdeps/nios2/__longjmp.S: New file.
21487         * sysdeps/nios2/abort-instr.h: New file.
21488         * sysdeps/nios2/backtrace.c: New file.
21489         * sysdeps/nios2/bits/endian.h: New file.
21490         * sysdeps/nios2/bits/fenv.h: New file.
21491         * sysdeps/nios2/bits/link.h: New file.
21492         * sysdeps/nios2/bits/setjmp.h: New file.
21493         * sysdeps/nios2/bsd-_setjmp.S: New file.
21494         * sysdeps/nios2/bsd-setjmp.S: New file.
21495         * sysdeps/nios2/configure: New generated file.
21496         * sysdeps/nios2/configure.ac: New file.
21497         * sysdeps/nios2/crti.S: New file.
21498         * sysdeps/nios2/crtn.S: New file.
21499         * sysdeps/nios2/dl-init.c: New file.
21500         * sysdeps/nios2/dl-machine.h: New file.
21501         * sysdeps/nios2/dl-sysdep.h: New file.
21502         * sysdeps/nios2/dl-tls.h: New file.
21503         * sysdeps/nios2/dl-trampoline.S: New file.
21504         * sysdeps/nios2/gccframe.h: New file.
21505         * sysdeps/nios2/gmp-mparam.h: New file.
21506         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21507         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21508         * sysdeps/nios2/ldsodefs.h: New file.
21509         * sysdeps/nios2/libc-tls.c: New file.
21510         * sysdeps/nios2/libm-test-ulps: New file.
21511         * sysdeps/nios2/machine-gmon.h: New file.
21512         * sysdeps/nios2/math-tests.h: New file.
21513         * sysdeps/nios2/math_private.h: New file.
21514         * sysdeps/nios2/memusage.h: New file.
21515         * sysdeps/nios2/nptl/Makefile: New file.
21516         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21517         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21518         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21519         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21520         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21521         * sysdeps/nios2/nptl/tls.h: New file.
21522         * sysdeps/nios2/preconfigure: New file.
21523         * sysdeps/nios2/s_fma.c: New file.
21524         * sysdeps/nios2/s_fmaf.c: New file.
21525         * sysdeps/nios2/setjmp.S: New file.
21526         * sysdeps/nios2/sfp-machine.h: New file.
21527         * sysdeps/nios2/sotruss-lib.c: New file.
21528         * sysdeps/nios2/stackguard-macros.h: New file.
21529         * sysdeps/nios2/stackinfo.h: New file.
21530         * sysdeps/nios2/start.S: New file.
21531         * sysdeps/nios2/sysdep.h: New file.
21532         * sysdeps/nios2/tls-macros.h: New file.
21533         * sysdeps/nios2/tst-audit.h: New file.
21534         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21535         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21536         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21537         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21538         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21539         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21540         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21541         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21542         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21543         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21544         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21545         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21546         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21547         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21548         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21549         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21550         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21551         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21552         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21553         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21554         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21555         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21556         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21557         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21558         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21559         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21560         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21561         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21562         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21563         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21564         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21565         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21566         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21567         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21568         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21569         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21570         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21571         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21572         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21573         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21574         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21575         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21576         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21577         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21578
21579 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21580
21581         [BZ #17844]
21582         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21583         (getutent): Use weak_alias in non SHARED case
21584         and default_symbol_version in SHARED case.
21585         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21586         (getutent_r, pututline): Likewise.
21587         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21588         (getutid): Likewise.
21589         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21590         (getutid_r): Likewise.
21591         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21592         (getutline): Likewise.
21593         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21594         (getutline_r): Likewise.
21595         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21596         (updwtmp): Likewise.
21597
21598 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21599
21600         [BZ #17848]
21601         * sysdeps/s390/s390-32/memcmp.S
21602         (memcmp_g5): Rename to __memcmp_g5.
21603         * sysdeps/s390/s390-32/memcpy.S
21604         (memcpy_g5): Rename to __memcpy_g5.
21605         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21606         (memcpy_mvcle) Rename to __memcpy_mvcle.
21607         * sysdeps/s390/s390-32/memset.S
21608         (memset_g5): Rename to __memset_g5.
21609         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21610         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21611         and use prefixed functions.
21612         * sysdeps/s390/s390-32/multiarch/memcmp.S
21613         (memcmp_z196): Rename to __memcmp_z196.
21614         (memcmp_z10): Rename to __memcmp_z10.
21615         (memcmp): Set alias to __memcmp_g5.
21616         (bcmp): Set alias to __memcmp_g5.
21617         * sysdeps/s390/s390-32/multiarch/memcpy.S
21618         (memcpy_z196): Rename to __memcpy_z196.
21619         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21620         (memcpy_z10): Rename to __memcpy_z10.
21621         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21622         (memcpy): Set alias to __memcpy_g5.
21623         * sysdeps/s390/s390-32/multiarch/memset.S
21624         (memset_z196): Rename to __memset_z196.
21625         Jump to __memset_mvcle instead of memset_mvcle.
21626         (memset_z10): Rename to __memset_z10.
21627         Jump to __memset_mvcle instead of memset_mvcle.
21628         (memset_mvcle) Rename to __memset_mvcle.
21629         (memset): Set alias to __memset_g5.
21630         * sysdeps/s390/s390-64/memcmp.S
21631         (memcmp_z900): Rename to __memcmp_z900.
21632         * sysdeps/s390/s390-64/memcpy.S
21633         (memcpy_z900): Rename to __memcpy_z900.
21634         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21635         (memcpy_mvcle) Rename to __memcpy_mvcle.
21636         * sysdeps/s390/s390-64/memset.S
21637         (memset_z900): Rename to __memset_z900.
21638         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21639         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21640         and use prefixed functions.
21641         * sysdeps/s390/s390-64/multiarch/memcmp.S
21642         (memcmp_z196): Rename to __memcmp_z196.
21643         (memcmp_z10): Rename to __memcmp_z10.
21644         (memcmp): Set alias to __memcmp_z900.
21645         (bcmp): Set alias to __memcmp_z900.
21646         * sysdeps/s390/s390-64/multiarch/memcpy.S
21647         (memcpy_z196): Rename to __memcpy_z196.
21648         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21649         (memcpy_z10): Rename to __memcpy_z10.
21650         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21651         (memcpy): Set alias to __memcpy_z900.
21652         * sysdeps/s390/s390-64/multiarch/memset.S
21653         (memset_z196): Rename to __memset_z196.
21654         Jump to __memset_mvcle instead of memset_mvcle.
21655         (memset_z10): Rename to __memset_z10.
21656         Jump to __memset_mvcle instead of memset_mvcle.
21657         (memset_mvcle) Rename to __memset_mvcle.
21658         (memset): Set alias to __memset_z900.
21659
21660 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21661
21662         [BZ #17748]
21663         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21664         __fesetenv instead of fesetenv.
21665
21666 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21667
21668         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21669         macro.
21670
21671 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21672
21673         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21674         regression on LE.
21675
21676         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21677         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21678         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21679         strncmp-power8 object.
21680         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21681         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21682         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21683         * NEWS: Update.
21684
21685 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21686             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21687
21688         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21689         trailing byte check.
21690
21691 2015-01-13  David S. Miller  <davem@davemloft.net>
21692
21693         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21694
21695 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21696
21697         * login/logout.c (logout): Use memset rather than bzero.
21698         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21699         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21700         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21701         (_gethtbyaddr): Likewise.
21702         * locale/programs/simple-hash.c (bcopy): Macro removed.
21703
21704 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21705
21706         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21707         Add strcmp-power8 object.
21708         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21709         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21710         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21711         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21712         __strcmp_power8 implementation.
21713         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21714         * NEWS: Update.
21715
21716         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21717         Add strncpy-power8 and stpncpy-power8 objects.
21718         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21719         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21720         implementations.
21721         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21722         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21723         __stpncpy_power8 implementation.
21724         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21725         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21726         __strncpy_power8 implementation.
21727         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21728         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21729         * NEWS: Update.
21730
21731         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21732         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21733         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21734
21735         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21736         strncat-power8 object.
21737         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21738         __strcat_power8 implementation.
21739         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21740         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21741         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21742         optimized strcat for power8.
21743
21744         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21745         strcpy-power8 and stpcpy-power8 objects.
21746         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21747         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21748         implementations.
21749         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21750         multiarch stpcpy implementation for POWER8.
21751         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21752         multiarch strcpy implementation for POWER8.
21753         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21754         __strcpy_power8 function.
21755         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21756         stpcpy for POWER8.
21757         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21758         strcpy for POWER8.
21759         * NEWS: Update.
21760
21761 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21762
21763         [BZ #16009]
21764         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21765         weights and rules. Use do_xfrm_cached if data fits in cache,
21766         do_xfrm otherwise.  Moved former main loop to...
21767         * (do_xfrm_cached): New function.
21768         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21769         find_idx, find_position and stack_push.
21770         * (find_idx): New function.
21771         * (find_position): Likewise.
21772         * localedata/sort-test.sh: Added test run for do_xfrm.
21773         * localedata/xfrm-test.c (main): Added command line option
21774         -nocache to run the test with strings that are too large for
21775         the STRXFRM cache.
21776
21777 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21778
21779         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21780         variable to lll_futex_wake call, not the value itself.
21781
21782 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21783
21784         [BZ #17803]
21785         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21786         twom64.  Adjust value to 0x1p-64L.
21787         (__scalblnl): Only return standard underflowing result for K <=
21788         -64 not K <= -63; adjust exponent for underflowing result by 64
21789         not 63.
21790         * math/libm-test.inc (scalbn_test_data): Add more tests.
21791         (scalbln_test_data): Likewise.
21792
21793         [BZ #17834]
21794         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21795         0x1p63L.
21796         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21797         not HX.
21798         * math/libm-test.inc (scalbn_test_data): Add more tests.
21799         (scalbln_test_data): Likewise.
21800
21801 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21802             Stefani Seibold  <stefani@seibold.net>
21803
21804         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21805         (sysdep_routines): Add dl-vdso here, ...
21806         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21807         (sysdep_routines): ... not here.
21808         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21809         fallback when vDSO is not presented.
21810         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21811         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21812         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21813         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21814         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21815         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21816         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21817         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21818         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21819         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21820         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21821         fallback configurable symbol when vDSO is not available.
21822         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21823         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21824         be able to redefine fallback symbol when vDSO is not available.
21825         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21826         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21827
21828 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21829
21830         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21831         (TLS_INIT_TP): Add tm_capable initialization.
21832         (TLS_DEFINE_INIT_TP): Likewise.
21833         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21834         TCB.
21835         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21836         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21837         calculation.
21838         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21839         transactoion is lock elision is built and TCB tm_capable is set.
21840         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21842         (INTERNAL_SYSCALL_NCS): Likewise.
21843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21844         (INTERNAL_SYSCALL_NCS): Likewise.
21845         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21846
21847         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21848         for powerpc.
21849         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21850         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21851         and remove it for 32 bits case.
21852         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21853         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21854         initialization.
21855         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21856         Disable lock elision with rdlocks if elision is not available.
21857
21858         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21859         (sysdep_routines): Add lock elision objects.
21860         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21861         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21862         [pthread_mutex_t] (__elision): Add field.
21863         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21864         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21865         elision definitions for powerpc.
21866         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21867         implementation of lock elision for powerpc.
21868         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21869         implementation of timed lock elision for powerpc.
21870         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21871         implementation of trylock with lock elision for powerpc.
21872         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21873         implementaion of unlock for lock elision for powerpc.
21874         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21875         automatic enable lock elision for mutexes.
21876         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21877         transaction execution definitions for powerpc.
21878         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21879         definitions.
21880         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21881         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21882         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21883         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21884         * NEWS: Update.
21885
21886 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21887
21888         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21889         for #include of <shm-directory.h>.
21890
21891 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21892
21893         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21894         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21895
21896 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21897
21898         [BZ #17791]
21899         * NEWS: Mention bug fix.
21900         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21901         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21902         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21903
21904 2015-01-09  Torvald Riegel <triegel@redhat.com>
21905
21906         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21907
21908 2015-01-09  Torvald Riegel <triegel@redhat.com>
21909
21910         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21911
21912 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21913
21914         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21915         pointer and cast to uintptr_t.
21916
21917 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21918
21919         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21920         removed.
21921         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21922
21923 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21924
21925         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21926         of 0.
21927
21928 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21929
21930         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21931         <nptl/pthreadP.h> instead.
21932         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21933
21934         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21935         already defined.
21936         [__SIGRTMIN] (init): Function removed.
21937         [__SIGRTMIN] (initialized): Variable removed.
21938         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21939         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21940         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21941         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21942         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21943         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21944         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21945         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21946         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21947         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21948         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21949         * sysdeps/nptl/allocrtsig.c: New file.
21950         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21951         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21952         * sysdeps/generic/testrtsig.h: File removed.
21953
21954         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21955         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21956
21957         * nptl/nptl-init.c (pthread_functions): Conditionalize
21958         .ptr__nptl_setxid initialization on [SIGSETXID].
21959
21960         * sysdeps/nptl/sys/procfs.h: New file.
21961         * nptl_db/Makefile (headers): Add it.
21962         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21963
21964         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21965         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21966         * nptl/pthread_attr_setaffinity.c: Include it.
21967         * nptl/pthread_setattr_default_np.c: Likewise.
21968         * nptl/check-cpuset.h: New file.
21969
21970 2015-01-08  Richard Henderson  <rth@redhat.com>
21971
21972         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21973         (CFLAGS-tst-execstack-prog.c): Likewise.
21974         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21975
21976 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21977             Sandra Loosemore  <sandra@codesourcery.com>
21978             Andrew Jenner  <andrew@codesourcery.com>
21979             Joseph Myers  <joseph@codesourcery.com>
21980             Nathan Sidwell  <nathan@codesourcery.com>
21981
21982         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21983         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21984         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21985         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21986         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21987         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21988         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21989         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21990         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21991         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21992         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21993         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21994         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21995         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21996         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21997         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21998         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21999
22000 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22001
22002         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
22003         timespec struct member in syscall macro.
22004         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
22005         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
22006         first timeval struct member in syscall macro.
22007         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
22008
22009 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
22010
22011         [BZ #17748]
22012         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
22013         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
22014         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
22015         __feupdateenv and define as weak alias of __feupdateenv.  Use
22016         libm_hidden_weak.
22017         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
22018         libm_hidden_def.
22019         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
22020         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
22021         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22022         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
22023         libm_hidden_def.
22024         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
22025         __feupdateenv and define as weak alias of __feupdateenv.  Use
22026         libm_hidden_weak.
22027         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
22028         libm_hidden_def.
22029         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
22030         __feupdateenv and define as weak alias of __feupdateenv.  Use
22031         libm_hidden_weak.
22032         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
22033         libm_hidden_def.
22034         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22035         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22036         (__feupdateenv): Likewise.
22037         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
22038         __feupdateenv and define as weak alias of __feupdateenv.  Use
22039         libm_hidden_weak.
22040         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22041         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
22042         libm_hidden_def.
22043         * sysdeps/tile/math_private.h (__feupdateenv): New inline
22044         function.
22045         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
22046         libm_hidden_def.
22047         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
22048         __feupdateenv instead of feupdateenv.
22049         (default_libc_feupdateenv_test): Likewise.
22050         (libc_feresetround_ctx): Likewise.
22051
22052 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22053
22054         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
22055         prototype.
22056
22057 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
22058
22059         * posix/regcomp.c (parse_bracket_exp): Initialize type to
22060         COLL_SYM in a couple of places to avoid uninitialized variable
22061         wanings on tilegx gcc 4.8.2.
22062
22063 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22064
22065         * sysdeps/aarch64/strcpy.S: New file.
22066         * sysdeps/aarch64/stpcpy.S: New file.
22067         * NEWS: Updated.
22068
22069 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22070
22071         * sysdeps/aarch64/strrchr.S: New file.
22072         * NEWS: Updated.
22073
22074 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
22075
22076         [BZ #17658]
22077         * stdlib/setenv.c: Fix memory leak when setting large,
22078         duplicate string.
22079
22080 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
22081
22082         [BZ #17273]
22083         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
22084         and tabs from buffer before parsing fstab entry.
22085         * misc/tst-mntent.c (main): Add test for mount entry with
22086         trailing spaces and tabs.
22087
22088 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
22089
22090         [BZ #17748]
22091         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
22092         * math/fesetround.c (fesetround): Rename to __fesetround and
22093         define as weak alias of __fesetround.  Use libm_hidden_weak.
22094         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
22095         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
22096         * sysdeps/arm/fesetround.c (fesetround): Likewise.
22097         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
22098         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
22099         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
22100         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
22101         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
22102         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
22103         __fesetround_inline.
22104         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
22105         __fesetround_inline instead of __fesetround.
22106         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
22107         __fesetround and define as weak alias of __fesetround.  Use
22108         libm_hidden_weak.  Call __fesetround_inline instead of
22109         __fesetround.
22110         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
22111         __fesetround and define as weak alias of __fesetround.  Use
22112         libm_hidden_weak.
22113         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
22114         Likewise.
22115         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
22116         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22117         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
22118         * sysdeps/tile/math_private.h (__fesetround): New inline function.
22119         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
22120         __fesetround and define as weak alias of __fesetround.  Use
22121         libm_hidden_weak.
22122         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
22123         __fesetround instead of fesetround.
22124         (default_libc_feholdexcept_setround): Likewise.
22125         (libc_feholdsetround_ctx): Likewise.
22126         (libc_feholdsetround_noex_ctx): Likewise.
22127
22128         [BZ #17748]
22129         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
22130         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
22131         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22132         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22133         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22134         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
22135         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22136         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
22137         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22138         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22139         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22140         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22141         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22142         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22143         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
22144         libm_hidden_def.
22145         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
22146         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
22147         Likewise.
22148         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22149         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22150         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22151         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22152         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
22153         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22154         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22155         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
22156         __fesetenv instead of fesetenv.
22157         (libc_feresetround_noex_ctx): Likewise.
22158         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22159         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22160         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
22161         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22162         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22163         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22164         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22165         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22166         (__feupdateenv): Likewise.
22167         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22168         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22169         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22170         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
22171
22172 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22173
22174         [BZ #17806]
22175         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
22176         addresses have been freed.
22177
22178 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22179
22180         * resolv/res_init.c (__res_vinit): Improve comments about nserv
22181         and nservall.
22182
22183 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
22184
22185         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
22186         Clean up check_pf allocation pattern. addresses
22187
22188 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22189
22190         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
22191         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
22192         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
22193         * nptl/pthread_exit.c (__pthread_exit): Likewise.
22194         * nptl/pthread_join.c (pthread_join): Likewise.
22195         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22196         * sysdeps/posix/waitid.c (__waitid): Likewise.
22197         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
22198         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
22199         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
22200         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
22201         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
22202         Likewise.
22203         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
22204         (__libc_pread64): Likewise.
22205         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
22206         (__libc_pwrite): Likewise.
22207         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
22208         (__libc_pwrite64): Likewsie.
22209         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
22210         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
22211         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
22212         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
22213         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
22214         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
22215         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
22216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
22217         Likewise.
22218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22219         (__libc_pread64): Likewise.
22220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
22221         Likewise.
22222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22223         (__libc_pwrite64): Likewise.
22224         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
22225         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
22226         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
22227         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
22228         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
22229         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
22230         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
22231         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
22232         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
22233         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
22234         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
22235         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
22236         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
22237         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
22238         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22239         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
22240         Likewise.
22241
22242 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
22243
22244         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
22245         (CFLAGS-test-double.c): Likewise.
22246         (CFLAGS-test-ldouble.c): Likewise.
22247         (CPPFLAGS-test-ifloat.c): Likewise.
22248         (CPPFLAGS-test-idouble.c): Likewise.
22249         (CPPFLAGS-test-ildoubl.c): Likewise.
22250         (CFLAGS-test-test-fenv.c): Remove variable.
22251         (CFLAGS-test-misc.c): Likewise.
22252
22253 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
22254
22255         [BZ #17797]
22256         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
22257         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
22258         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
22259         CLOCKS_PER_SEC == 1000000.
22260         * time/clocktest.c (main): Replace %ld with %jd and cast to
22261         intmax_t.
22262
22263 2015-01-05  Roland McGrath  <roland@hack.frob.com>
22264
22265         * sysdeps/generic/unwind-resume.h: New file.
22266         * sysdeps/gnu/unwind-resume.c: Include it.
22267         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
22268         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
22269         argument list.
22270         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
22271         global rather than static.
22272         (_Unwind_Resume): Update user.
22273         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
22274         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
22275         rather than static.  Add __attribute__ ((cold)).
22276         (_Unwind_Resume, __gcc_personality_v0): Update callers.
22277         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
22278         * sysdeps/arm/arm-unwind-resume.S: New file.
22279         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
22280         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
22281         * sysdeps/arm/Makefile [$(subdir) = csu]
22282         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
22283         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
22284         Add rt-arm-unwind-resume.
22285         [$(subdir) = nptl]
22286         (libpthread-sysdep_routines, libpthread-shared-only-routines):
22287         Add pt-arm-unwind-resume.
22288         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
22289         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
22290
22291 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22292
22293         [BZ #17748]
22294         * include/fenv.h (__feholdexcept): Declare.  Use
22295         libm_hidden_proto.
22296         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
22297         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
22298         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22299         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
22300         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
22301         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
22302         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
22303         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22304         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
22305         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
22306         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22307         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
22308         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
22309         (feholdexcept): Likewise.
22310         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
22311         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22312         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22313         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22314         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
22315         __feholdexcept instead of feholdexcept.
22316         (default_libc_feholdexcept_setround): Likewise.
22317
22318 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22319
22320         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
22321         to avoid using stl/str to align destination.
22322
22323 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22324
22325         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
22326
22327 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22328
22329         [BZ #17796]
22330         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
22331         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
22332         Define as weak alias not strong alias.
22333
22334 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22335
22336         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
22337         bltzal with addiupc.
22338         (RTLD_START): Ditto.
22339
22340 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
22341
22342         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
22343         for __vdso_* functions in declarations.
22344         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
22345         definitions.
22346         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
22347         INTERNAL_VSYSCALL): Use struct return types to check for error.
22348
22349         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
22350         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
22351         function with cast from llround().
22352         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
22353         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
22354         Define.
22355
22356 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22357
22358         [BZ #17793]
22359         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
22360         Define as weak alias not strong alias.
22361
22362         [BZ #17635]
22363         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22364         ...
22365         * ctype/ctype-extn.c: ... here.
22366         (__isblank_l): Move to ...
22367         * ctype/ctype-c99_l.c: ... here.  New file.
22368         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22369         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22370         Remove variable.
22371         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22372         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22373         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22374         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22375         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22376
22377         [BZ #17777]
22378         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22379         (posix_fadvise64): Define as weak alias not strong alias.
22380         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22381         (posix_fallocate64): Likewise.
22382         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22383         Remove variable.
22384         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22385         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22386         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22387         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22388         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22389
22390 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22391
22392         [BZ #16191]
22393         * NEWS: Mention bug fix.
22394         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22395         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22396         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22397         (HOST_STACK_END_ADDR): Likewise.
22398
22399 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22400
22401         [BZ #17748]
22402         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22403         * math/fegetround.c (fegetround): Rename to __fegetround and
22404         define as weak alias of __fegetround.  Use libm_hidden_weak.
22405         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22406         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22407         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22408         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22409         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22410         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22411         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22412         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22413         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22414         Undefine after rather than before function definition; use
22415         parentheses around function name in definition.
22416         (__fegetround): Also undefine macro after function definition.
22417         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22418         __fegetround and define as weak alias of __fegetround.  Use
22419         libm_hidden_weak.  Do not undefine as macro.
22420         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22421         Likewise.
22422         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22423         __fegetround and define as weak alias of __fegetround.  Use
22424         libm_hidden_weak.
22425         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22426         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22427         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22428         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22429         __fegetround and define as weak alias of __fegetround.  Use
22430         libm_hidden_weak.
22431         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22432         __fegetround instead of fegetround.
22433
22434         [BZ #17782]
22435         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22436         Condition macro definition on [__USE_MISC].
22437
22438         [BZ #17781]
22439         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22440         (struct sigaction): Change type of sa_flags field to int.
22441
22442         [BZ #17780]
22443         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22444         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22445         __glibc_reserved0.
22446
22447         * nptl/version.c (banner): Use single year in copyright notice.
22448
22449         * NEWS: Update copyright dates.
22450         * catgets/gencat.c (print_version): Likewise.
22451         * csu/version.c (banner): Likewise.
22452         * debug/catchsegv.sh: Likewise.
22453         * debug/pcprofiledump.c (print_version): Likewise.
22454         * debug/xtrace.sh (do_version): Likewise.
22455         * elf/ldconfig.c (print_version): Likewise.
22456         * elf/ldd.bash.in: Likewise.
22457         * elf/pldd.c (print_version): Likewise.
22458         * elf/sotruss.sh: Likewise.
22459         * elf/sprof.c (print_version): Likewise.
22460         * iconv/iconv_prog.c (print_version): Likewise.
22461         * iconv/iconvconfig.c (print_version): Likewise.
22462         * locale/programs/locale.c (print_version): Likewise.
22463         * locale/programs/localedef.c (print_version): Likewise.
22464         * login/programs/pt_chown.c (print_version): Likewise.
22465         * malloc/memusage.sh (do_version): Likewise.
22466         * malloc/memusagestat.c (print_version): Likewise.
22467         * malloc/mtrace.pl: Likewise.
22468         * manual/libc.texinfo: Likewise.
22469         * nptl/version.c (banner): Likewise.
22470         * nscd/nscd.c (print_version): Likewise.
22471         * nss/getent.c (print_version): Likewise.
22472         * nss/makedb.c (print_version): Likewise.
22473         * posix/getconf.c (main): Likewise.
22474         * scripts/test-installation.pl: Likewise.
22475         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22476
22477 2015-01-02  Will Newton  <will.newton@linaro.org>
22478
22479         * sysdeps/arm/armv7/configure: Removed.
22480         * sysdeps/arm/armv7/configure.ac: Likewise.
22481
22482 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22483
22484         * All files with FSF copyright notices: Update copyright dates
22485         using scripts/update-copyrights.
22486         * intl/plural.c: Regenerated.
22487         * locale/programs/charmap-kw.h: Likewise.
22488         * locale/programs/locfile-kw.h: Likewise.
22489
22490 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22491
22492         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22493
22494 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22495
22496         [BZ #17748]
22497         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22498         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22499         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22500         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22501         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22502         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22503         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22504         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22505         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22506         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22507         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22508         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22509         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22510         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22511         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22512         libm_hidden_def.
22513         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22514         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22515         Likewise.
22516         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22517         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22518         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22519         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22520         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22521         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22522         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22523         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22524         __fegetenv instead of fegetenv.
22525         (libc_feholdsetround_noex_ctx): Likewise.
22526
22527 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22528
22529         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22530         (Elf_MIPS_ABIFlags_v0): New structure.
22531         (EF_MIPS_FP64): Define.
22532         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22533         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22534         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22535         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22536         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22537         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22538         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22539         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22540         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22541         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22542         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22543         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22544         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22545         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22546         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22547         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22548         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22549         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22550         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22551         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22552         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22553         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22554         field.
22555         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22556         EF_MIPS_FP64.
22557         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22558         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22559         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22560         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22561         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22562         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22563         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22564         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22565         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22566         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22567         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22568         record the current FP ABI extension.
22569         (mips-mode-switch): Define to show if kernel headers support mode
22570         switching.
22571         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22572         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22573         supported SYSV ABI version to 3.
22574         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22575         feature.
22576
22577 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22578             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22579
22580         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22581         path.
22582         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22583
22584 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22585
22586         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22587         __fegetround and redefine to call __fegetround.  Remove condition
22588         on [!__NO_MATH_INLINES].
22589         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22590         function.
22591         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22592         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22593         Remove macro.
22594         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22595         instead of <fenv_libc.h>.
22596         (__llrintl): Call fegetround instead of __fegetround.
22597         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22598         instead of <fenv_libc.h>.
22599         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22600         (__lrintl): Call fegetround instead of __fegetround.
22601         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22602         instead of <fenv_libc.h>.
22603         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22604         (__rintl): Call fegetround instead of __fegetround.
22605
22606 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22607
22608         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22609         arrays.
22610
22611 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22612
22613         [BZ #17775]
22614         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22615         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22616         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22617
22618 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22619
22620         * sysdeps/i386/tls-macros.h: Include <features.h>.
22621         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22622         (TLS_IE): Likewise.
22623         (TLS_LD): Likewise.
22624         (TLS_GD): Likewise.
22625         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22626         define for GCC >= 5.0.
22627
22628 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22629
22630         * math/test-fenv.c (test_single_exception, set_single_exc,
22631         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22632         feexcp_mask_test, feenable_test, fe_single_test): Add
22633         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22634         case where they are not used.
22635         * math/libm-test.inc: Likewise.
22636         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22637         unused in the absence of FP rounding/exception support.
22638         * stdio-common/tst-printf-round.c: Likewise.
22639         * stdlib/tst-strtod-round.c: Likewise.
22640         * stdlib/tst-strtod-underflow.c: Likewise.
22641
22642 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22643
22644         [BZ #17723]
22645         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22646         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22647         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22648         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22649         libm_hidden_weak.
22650         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22651         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22652         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22653         libm_hidden_def.
22654         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22655         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22656         libm_hidden_weak.
22657         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22658         Likewise.
22659         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22660         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22661         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22662         libm_hidden_weak.
22663         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22664         libm_hidden_def.
22665         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22666         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22667         (__feraiseexcept): Likewise.
22668         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22669         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22670         libm_hidden_weak.
22671         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22672         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22673         libm_hidden_def.
22674         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22675         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22676         Use libm_hidden_def.
22677         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22678         libm_hidden_def.
22679         (feraiseexcept): Define as weak not strong alias.  Use
22680         libm_hidden_weak.
22681         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22682         New inline function.  Factored out of ...
22683         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22684         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22685         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22686         feraiseexcept.
22687         * math/w_acos.c (__acos): Likewise.
22688         * math/w_asin.c (__asin): Likewise.
22689         * math/w_ilogb.c (__ilogb): Likewise.
22690         * math/w_j0.c (y0): Likewise.
22691         * math/w_j1.c (y1): Likewise.
22692         * math/w_jn.c (yn): Likewise.
22693         * math/w_log.c (__log): Likewise.
22694         * math/w_log10.c (__log10): Likewise.
22695         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22696         * sysdeps/aarch64/fpu/math_private.h
22697         (libc_feupdateenv_test_aarch64): Likewise.
22698         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22699         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22700         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22701         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22702         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22703         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22704         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22705         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22706         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22707         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22708
22709 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22710
22711         [BZ #17732]
22712         * io/test-utime.c (main): Replace %ld with %jd and cast to
22713         intmax_t.
22714         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22715         * nptl/tst-mutex5.c: Include <stdint.h>.
22716         (do_test): Replace %ld with %jd and cast to intmax_t.
22717         * posix/tst-regex.c (run_test): Likewise.
22718         (run_test_backwards): Likewise.
22719         * rt/tst-clock.c: Include <stdint.h>.
22720         (clock_test): Replace %ld with %jd and cast to intmax_t.
22721         * rt/tst-cpuclock1.c: Include <stdint.h>.
22722         (do_test): Replace %lu with %ju and cast to uintmax_t.
22723         * rt/tst-cpuclock2.c: Include <stdint.h>.
22724         (do_test): Replace %lu with %ju and cast to uintmax_t.
22725         * rt/tst-mqueue1.c: Include <stdint.h>.
22726         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22727         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22728         intmax_t.
22729         * rt/tst-mqueue4.c (do_test): Likewise.
22730         * rt/tst-timer4.c: Include <stdint.h>.
22731         (check_ts): Replace %ld with %jd and cast to intmax_t.
22732         (do_test): Likewise.
22733         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22734         and cast to intmax_t.
22735         * sysdeps/pthread/tst-timer.c (main): Likewise.
22736         * time/clocktest.c (main): Likewise.
22737         * time/tst-posixtz.c (do_test): Likewise.
22738         * timezone/tst-timezone.c (main): Likewise.
22739
22740 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22741             H.J. Lu  <hongjiu.lu@intel.com>
22742
22743         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22744         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22745         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22746         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22747         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22748         version if bit_Fast_Unaligned_Load is set.
22749         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22750         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22751         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22752         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22753         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22754         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22755         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22756         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22757         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22758         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22759         to 4.
22760         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22761         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22762         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22763         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22764
22765 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22766
22767         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22768         instead of #if to avoid a Wundef warning.
22769         * stdlib/tst-limits.c (do_test): Likewise.
22770
22771         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22772         parallel other exception macros.
22773         (fegetenv): Convert from macro to extern inline so that it applies
22774         retroactively to inline functions already seen by the compiler.
22775         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22776
22777         * posix/Makefile (before-compile): Use $(objpfx) for
22778         posix-conf-vars-def.h.
22779
22780 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22781
22782         * posix/getconf.c (main): Use size_t for type of I.
22783         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22784         NSPEC.
22785
22786         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22787         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22788         * posix/posix-envs.def: Likewise.
22789         * sysdeps/posix/sysconf.c: Likewise.
22790         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22791         (specs): Remove array.
22792         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22793         array.
22794
22795         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22796         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22797         (__sysconf): Use CONF_IS_* macros.
22798
22799         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22800         ($(objpfx)posix-conf-vars-def.h): New target.
22801         * posix/posix-conf-vars.list: New file.
22802         * posix/posix-conf-vars.h: New file.
22803         * posix/confstr.c: Include posix-conf-vars.h.
22804         (confstr): Use CONF_IS_* macros.
22805         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22806         CONF_IS_* macros.
22807         * scripts/gen-posix-conf-vars.awk: New file.
22808
22809 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22810
22811         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22812         fegetround): Add no-op macros to avoid linknamespace issues.
22813
22814         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22815         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22816
22817         * sysdeps/unix/sysv/linux/tile/sysdep.h
22818         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22819         assembly-specific section to avoid a redefinition warning.
22820
22821         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22822         long before casting to pointer to avoid a cast warning.
22823
22824 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22825
22826         * sysdeps/tile/tilegx/Implies: New file.
22827
22828 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22829
22830         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22831
22832 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22833
22834         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22835
22836 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22837
22838         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22839         not define.
22840         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22841         <kernel-features.h>.
22842         (__utimes) [__NR_utimes]: Make code unconditional.
22843         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22844         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22845         (__ASSUME_UTIMES): Do not undefine.
22846         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22847         (__ASSUME_UTIMES): Likewise.
22848         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22849         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22850         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22851         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22852
22853 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22854
22855         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22856
22857 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22858
22859         [BZ #17747]
22860         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22861         alias to weak alias for j0l, y0l.
22862         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22863         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22864
22865         [BZ #17746]
22866         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22867         conversion.
22868
22869 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22870
22871         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22872         to zero if not already defined.
22873
22874 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22875
22876         [BZ #17724]
22877         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22878         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22879         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22880         (char *) casts added.
22881         * sysdeps/ieee754/k_standardf.c: New file.
22882         * sysdeps/ieee754/k_standardl.c: Likewise.
22883         * math/Makefile (libm-support): Remove k_standard.
22884         (libm-calls): Add k_standard.
22885
22886 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22887
22888         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22889         Optimize to avoid an unnecessary FPCR read.
22890
22891 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22892
22893         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22894         Optimize to reduce FPCR/FPSR accesses.
22895
22896 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22897
22898         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22899         Call libc_fetestexcept_aarch64.
22900
22901 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22902
22903         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22904         Call libc_fesetround_aarch64.
22905
22906 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22907
22908         [BZ #17733]
22909         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22910         (__bind): Do not define as weak alias.
22911         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22912         define.
22913         (__getsockname): Do not define as weak alias.
22914
22915 2014-12-22  Will Newton  <will.newton@linaro.org>
22916
22917         * manual/install.texi: Document that we require bison 2.7
22918         or above.
22919         * INSTALL: Regenerate.
22920         * configure.ac: Use AC_CHECK_PROG_VER instead of
22921         AC_PATH_PROG when checking for bison and check for
22922         version 2.7 or above.
22923         * configure: Regenerate.
22924
22925 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22926
22927         [BZ #17745]
22928         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22929         * sysdeps/tile/ffsll.c (ffsll): To here.
22930
22931         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22932
22933 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22934
22935         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22936         if not defined.
22937         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22938         definition.
22939         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22940         hidden ___tls_get_addr.
22941         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22942         hidden __tls_get_addr.
22943         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22944         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22945         Likewise.
22946
22947 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22948
22949         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22950         _dl_init call.
22951
22952 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22953
22954         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22955         from "call _dl_init@PLT".
22956         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22957
22958 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22959
22960         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22961         guarantees.
22962
22963 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22964
22965         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22966
22967 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22968
22969         [BZ #17744]
22970         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22971         strnlen.
22972
22973 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22974
22975         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22976         of multu on MIPSr6.
22977         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22978         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22979         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22980         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22981         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22982
22983 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22984
22985         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22986         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22987         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22988         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22989         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22990         mips32r6/mips64r6.
22991         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22992
22993 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22994
22995         * string/strncat.c (STRNCAT): Simplify implementation.
22996
22997 2014-12-19  David S. Miller  <davem@davemloft.net>
22998
22999         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
23000         access the quad as both a long double and as a series of 4 words.
23001
23002         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
23003         link_map->l_info array access.
23004
23005 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23006
23007         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
23008
23009         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
23010         * math/atest-exp2.c (TIMEOUT): Likewise.
23011         * math/atest-sincos.c (TIMEOUT): Likewise.
23012
23013 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23014
23015         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
23016         -Wno-error with -fno-builtin-lround.
23017
23018 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23019
23020         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
23021         Contains futex constants and functions moved over from ...
23022         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
23023         <lowlevellock-futex.h>.
23024         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23025         (lll_timedwait_tid): Add comments and parentheses around macro
23026         arguments.
23027
23028 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23029
23030         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
23031         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
23032         (__lll_private_flag): Remove.
23033         (lll_futex_wait): Likewise.
23034         (lll_futex_timed_wait): Likewise.
23035         (lll_futex_wake): Likewise.
23036         (lll_futex_requeue): Likewise.
23037         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23038         (__lll_timedwait_tid): Spell out argument names.
23039         (lll_timedwait_tid): Add comments and parentheses around macro
23040         arguments.
23041         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
23042         LLL_SHARED and LLL_PRIVATE usable from assembly code.
23043
23044 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23045
23046         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
23047         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23048         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23049         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
23050         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
23051         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
23052         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
23053         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
23054         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
23055         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
23056         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
23057         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
23058         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
23059         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
23060         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
23061         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
23062         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
23063         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
23064         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
23065
23066 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23067
23068         * sysdeps/x86_64/x32/Makefile: New file.
23069
23070 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23071
23072         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
23073         1L with (mp_limb_t) 1.
23074
23075 2014-12-17  Roland McGrath  <roland@hack.frob.com>
23076
23077         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
23078         * nptl/libc_pthread_init.c: ... here.
23079         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
23080         * nptl/register-atfork.c: ... here.
23081
23082         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
23083         Use pthread_sigmask rather than INTERNAL_SYSCALL.
23084         Use assert_perror to check its return value.
23085         (__gai_create_helper_thread): Likewise.
23086
23087         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
23088
23089         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
23090
23091 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
23092
23093         [BZ #17725]
23094         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
23095         __profil_counter.
23096         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
23097         Likewise.
23098         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
23099         Likewise.
23100         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
23101         Likewise.
23102         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
23103         (profil_counter): Likewise.
23104         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
23105         (profil_counter): Likewise.
23106         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
23107         Likewise.
23108         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
23109         Likewise.
23110         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
23111         (profil_counter): Likewise.
23112         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
23113         Likewise.
23114         [!__profil_counter] (profil_counter): Define as weak alias of
23115         __profil_counter.
23116         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
23117         (profil_counter): Rename to __profil_counter.
23118         [!__profil_counter] (profil_counter): Define as weak alias of
23119         __profil_counter.
23120         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
23121         (profil_counter): Rename to __profil_counter.
23122         [!__profil_counter] (profil_counter): Define as weak alias of
23123         __profil_counter.
23124         * sysdeps/posix/profil.c: Update comment referring to
23125         profil_counter.
23126         (__profil): Use __profil_counter instead of profil_counter.
23127         * sysdeps/posix/sprofil.c (profil_counter): Rename to
23128         __profil_counter.  Use __profil_counter_ushort and
23129         __profil_counter_uint in definitions.
23130         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
23131         instead of profil_counter_uint and profil_counter_ushort.
23132
23133         [BZ #17722]
23134         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
23135         define as weak alias of __inet_makeaddr.
23136         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
23137         as weak alias of __inet_addr.
23138         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
23139         as weak alias of __inet_pton.  Use libc_hidden_weak.
23140         * include/arpa/inet.h (__inet_pton): Declare.  Use
23141         libc_hidden_proto.
23142         (inet_makeaddr): Don't use libc_hidden_proto.
23143         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
23144         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
23145         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
23146         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
23147         Remove variable.
23148         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
23149         (test-xfail-POSIX/time.h/linknamespace): Likewise.
23150
23151 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
23152
23153         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
23154
23155 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23156
23157         * stdio-common/bug-vfprintf-nargs.c (do_test):
23158         Cast value to intptr_t to avoid format warning
23159         for usage with PRIdPTR printing macro.
23160
23161 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23162
23163         * libio/tst-widetext.c (do_test):
23164         Use format type %td instead of %Zd for ptrdiff_t
23165         in order to avoid format warning.
23166
23167 2014-12-17  Andreas Schwab  <schwab@suse.de>
23168
23169         * nscd/mem.c (gc): Add size_t cast to match printf format.
23170
23171 2014-12-16  Roland McGrath  <roland@hack.frob.com>
23172
23173         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
23174         (init): Apply PTR_MANGLE to pointers before storing them.
23175         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
23176         before using them.
23177
23178 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
23179
23180         [BZ #17719]
23181         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
23182         define as weak alias of __memrchr.
23183         (__memrchr): Do not define as strong alias of memrchr.
23184         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
23185         Remove variable.
23186         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
23187         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
23188         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
23189
23190         [BZ #17717]
23191         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
23192         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
23193         (if_indextoname): Rename to __if_indextoname and define as weak
23194         alias of __if_indextoname.  Use libc_hidden_weak.
23195         (if_freenameindex): Rename to __if_freenameindex and define as
23196         weak alias of __if_freenameindex.
23197         (if_nameindex): Rename to __if_nameindex and define as weak alias
23198         of __if_nameindex.
23199         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
23200         __if_nametoindex and define as weak alias of __if_nametoindex.
23201         Use libc_hidden_weak.
23202         (if_freenameindex): Rename to __if_freenameindex and define as
23203         weak alias of __if_freenameindex.
23204         (if_nameindex): Rename to __if_nameindex and define as weak alias
23205         of __if_nameindex.
23206         (if_indextoname): Rename to __if_indextoname and define as weak
23207         alias of __if_indextoname.  Use libc_hidden_weak.
23208         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
23209         __if_nametoindex and define as weak alias of __if_nametoindex.
23210         Use libc_hidden_weak.
23211         (if_freenameindex): Rename to __if_freenameindex and define as
23212         weak alias of __if_freenameindex.  Use libc_hidden_weak.
23213         (if_nameindex_netlink): Use __if_freenameindex instead of
23214         if_freenameindex.
23215         (if_nameindex): Rename to __if_nameindex and define as weak alias
23216         of __if_nameindex.  Use libc_hidden_weak.
23217         (if_indextoname): Rename to __if_indextoname and define as weak
23218         alias of __if_indextoname.  Use libc_hidden_weak.
23219         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
23220         libc_hidden_proto.
23221         [!_ISOMAC] (__if_freenameindex): Likewise.
23222         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
23223         if_nametoindex.
23224         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
23225         variable.
23226         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
23227         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
23228         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
23229         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
23230         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
23231         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
23232         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
23233
23234         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
23235         Remove variable.
23236         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
23237         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
23238
23239 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23240
23241         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
23242         subscript above bounds'
23243
23244         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
23245         bounds.
23246
23247 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
23248
23249         * libio/tst-fopenloc.c: Use test-skeleton.c.
23250
23251         * stdlib/tst-bsearch.c: Use test-skeleton.c.
23252         (entry): Rename to ITEM.
23253         (do_test, comp): Adjust.
23254
23255         * stdio-common/tst-fseek.c: Use test-skeleton.c.
23256
23257 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23258
23259         * string/tester.c: Include <libc-internal.h>.
23260         (test_memset): Ignore -Wmemset-transposed-args.
23261
23262 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23263
23264         * misc/tst-mntent2.c (do_test): Fix warning.
23265
23266 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23267
23268         * elf/tst-unique4lib.cc(a): Mark as used.
23269
23270 2014-12-16  Florian Weimer  <fweimer@redhat.com>
23271
23272         [BZ #17630]
23273         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
23274         names.
23275
23276 2014-12-16  Allan McRae  <allan@archlinux.org>
23277
23278         * stdio-common/Makefile (tests): Re-add bug26.
23279
23280 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
23281
23282         [BZ #17657]
23283         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
23284         static array.
23285
23286 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
23287
23288         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
23289         (__lll_lock_wait): Likewise.
23290         (__lll_timedlock_wait): Likewise.
23291         (__lll_timedwait_tid): Likewise.
23292         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
23293         (__lll_robust_timedlock_wait): Likewise.
23294         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
23295         (lll_cond_trylock): Likewise.
23296         (__lll_lock): Likewise.
23297         (__lll_robust_lock): Likewise.
23298         (__lll_cond_lock): Likewise.
23299         (lll_robust_cond_lock): Likewise.
23300         (__lll_timedlock): Likewise.
23301         (__lll_robust_timedlock): Likewise.
23302         (__lll_unlock): Likewise.
23303         (__lll_robust_unlock): Likewise.
23304         (lll_wait_tid): Likewise.
23305         (lll_timedwait_tid): Likewise.
23306
23307 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23308
23309         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
23310
23311 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23312
23313         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
23314
23315 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23316
23317         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
23318         * stdio-common/tst-sprintf.c: Likewise.
23319
23320 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23321
23322         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
23323
23324 2014-12-15  Jeff Law  <law@redhat.com>
23325
23326         [BZ #16617]
23327         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
23328         on the heap.  (CVE-2012-3406)
23329         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
23330         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
23331         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
23332
23333 2014-12-15  Will Newton  <will.newton@linaro.org>
23334
23335         * manual/install.texi: Bump required version of texinfo
23336         to 4.7 from 4.5.
23337         * INSTALL: Regenerated.
23338         * configure.ac: Check for makeinfo version 4.7 and above.
23339         * configure: Regenerated.
23340
23341 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23342
23343         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
23344         PREFIX, string constant to insert between directory and name.
23345         * sysdeps/posix/shm_open.c: Update caller.
23346         * sysdeps/posix/shm_unlink.c: Likewise.
23347         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
23348         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
23349         (SEM_SHM_PREFIX): New macro.
23350         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
23351         [$(have-thread-library) = no].
23352         * nptl/Makefile (libpthread-routines): Add shm-directory.
23353         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
23354         * sysdeps/nptl/shm-directory.h: New file.
23355         * sysdeps/posix/shm-directory.c
23356         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
23357         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
23358         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
23359         INTERNAL_SYSCALL.
23360         (__where_is_shmfs): Function removed.
23361         (mountpoint, defaultmount, defaultdir, __namedsem_once):
23362         Variables removed.
23363         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23364         Use SHM_GET_NAME.
23365         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23366
23367         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23368         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23369         unconditional for use inside libpthread.
23370         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23371
23372 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23373
23374         * nptl/pthread_getaffinity.c: New file.
23375         * nptl/pthread_setaffinity.c: New file.
23376         * nptl/pthread_getname.c: New file.
23377         * nptl/pthread_setname.c: New file.
23378
23379         * nptl/pthread_create.c (START_THREAD_DEFN)
23380         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23381
23382 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23383             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23384
23385         * resolv/res_send.c (send_vc): Disable warning resplen may
23386         be used uninitialized.
23387
23388 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23389
23390         * nptl/tst-mutex6.c
23391         (ATTR_NULL): New define checks ATTR against NULL.
23392         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23393         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23394
23395 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23396
23397         [BZ #17581]
23398         * malloc/hooks.c
23399         (mem2mem_check): Revert my previous change.
23400         (malloc_check_get_size): Revert my previous change.
23401         (mem2chunk_check): Revert my previous change.
23402
23403 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23404
23405         * sysdeps/posix/shm-directory.c: New file.
23406         * sysdeps/posix/shm-directory.h: New file.
23407         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23408         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23409         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23410         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23411         Transmute EPERM to EACCES.
23412         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23413         from ...
23414         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23415         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23416
23417 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23418
23419         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23420         pointer and cast to uintptr_t.
23421         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23422         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23423         Add cast to avoid warning.
23424         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23425
23426 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23427
23428         * nptl/semaphore.h: Move to ...
23429         * sysdeps/pthread/semaphore.h: ... here.
23430         * Makefile (installed-headers): Change nptl/semaphore.h to
23431         sysdeps/pthread/semaphore.h.
23432
23433 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23434
23435         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23436         generated error format strings.
23437
23438         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23439         -Wformat-extra-args warnings for scanf formats.
23440         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23441         test of zero-length format (duh).
23442         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23443         corner-case scanf format test.
23444         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23445         generated fprintf format string.
23446         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23447         corner-case sprintf format tests.
23448         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23449         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23450         -Wformat-extra-args warnings throughout.
23451         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23452         (CFLAGS-scanf4.c): Likewise.
23453         (CFLAGS-scanf7.c): Likewise.
23454         (CFLAGS-tst-sprintf.c): Likewise.
23455         (CFLAGS-tst-printf.c): Likewise.
23456         (CFLAGS-tst-printfsz.c): Likewise.
23457
23458 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23459
23460         * include/cpio.h: New file.
23461         * include/fmtmsg.h: Likewise.
23462
23463         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23464         corresponding format argument to size_t.
23465         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23466         arguments.
23467         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23468         corresponding format argument to size_t.
23469         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23470         arguments.
23471         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23472         corresponding format argument to size_t.
23473         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23474         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23475         (CFLAGS-tst-mbswcs2.c): Likewise.
23476         (CFLAGS-tst-mbswcs3.c): Likewise.
23477         (CFLAGS-tst-mbswcs4.c): Likewise.
23478         (CFLAGS-tst-mbswcs5.c): Likewise.
23479         (CFLAGS-tst-trans.c): Likewise.
23480
23481 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23482
23483         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23484         rather than assuming they won't contain any '%'s.
23485
23486 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23487
23488         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23489         inhibit_loop_to_libcall to avoid recursive calls.
23490         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23491         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23492
23493 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23494
23495         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23496         prototype.
23497
23498 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23499
23500         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23501         integer value instead of boolean.
23502
23503 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23504
23505         * malloc/malloc.c: Fix powerof2 check.
23506
23507 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23508
23509         * locale/programs/locfile.h (maybe_swap_uint32):
23510         Remove inline and add unused attribute.
23511
23512 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23513
23514         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23515         Truncating assembler expression to a .long expression.
23516
23517 2014-12-11  Andreas Schwab  <schwab@suse.de>
23518
23519         * elf/rtld.c (struct map_args): Constify str member.
23520         (do_preload): Constify fname argument.
23521
23522 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23523
23524         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23525         constants definition.
23526
23527 2014-12-11  Andreas Schwab  <schwab@suse.de>
23528
23529         [BZ #16657]
23530         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23531         FORCE_ELISION instead of DO_ELISION.
23532         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23533         Remove.
23534         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23535         Likewise.
23536
23537         * iconvdata/gconv-modules: Remove duplicate entry.
23538
23539 2014-12-11  Will Newton  <will.newton@linaro.org>
23540
23541         Merge gettext 0.19.3 into intl/.
23542
23543         This involves a number of cosmetic changes to comments
23544         and ANSI function definitions and prototypes throughout
23545         all the files. The gettext copyright header is used but
23546         with the date ranges taken from the glibc copy.
23547
23548         * NEWS: Add gettext merge to 2.21.
23549         * intl/bindtextdom.c: Switch to gettext copyright.
23550         Use ANSI definitions and prototypes.
23551         Use gl_* locking primitives rather than __libc_* ones.
23552         Use __builtin_expect rather than __glibc_likely/unlikely.
23553         * intl/dcgettext.c: Switch to gettext copyright.
23554         Use ANSI definitions and prototypes.
23555         * intl/dcigettext.c: Switch to gettext copyright.
23556         Use ANSI definitions and prototypes.
23557         (INTDIV0_RAISES_SIGFPE): New define.
23558         Use gl_* locking primitives rather than __libc_* ones.
23559         Include eval-plural.h instead of plural-eval.c.
23560         Use __builtin_expect rather than __glibc_likely/unlikely.
23561         * intl/dcngettext.c: Switch to gettext copyright.
23562         Use ANSI definitions and prototypes.
23563         * intl/dgettext.c: Likewise.
23564         * intl/dngettext.c: Likewise.
23565         * intl/plural-eval.c: Renamed to...
23566         * intl/eval-plural.h: ...this.
23567         * intl/explodename.c: Switch to gettext copyright.
23568         Use ANSI definitions and prototypes.
23569         (_nl_explode_name): Use strchr instead of __rawmemchr.
23570         * intl/finddomain.c: Switch to gettext copyright.
23571         Use ANSI definitions and prototypes.
23572         Use gl_* locking primitives rather than __libc_* ones.
23573         (_nl_find_domain): Use malloc rather than alloca for
23574         allocation of temporary locale name.
23575         * intl/gettext.c: Switch to gettext copyright.
23576         Use ANSI definitions and prototypes.
23577         * intl/gettextP.h: Switch to gettext copyright.
23578         Use ANSI definitions and prototypes.
23579         Use gl_* locking primitives rather than __libc_* ones.
23580         * intl/gmo.h: Switch to gettext copyright.
23581         (struct sysdep_string): Move struct segment_pair outside of
23582         struct definition.
23583         * intl/hash-string.c: Use ANSI definitions and prototypes.
23584         * intl/hash-string.h: Switch to gettext copyright.
23585         Use ANSI definitions and prototypes.
23586         * intl/l10nflist.c: Switch to gettext copyright.
23587         Use ANSI definitions and prototypes.
23588         (_nl_normalize_codeset): Avoid integer overflow.
23589         * intl/loadinfo.h: Switch to gettext copyright.
23590         Use ANSI definitions and prototypes.
23591         (LIBINTL_DLL_EXPORTED): New define.
23592         (PATH_SEPARATOR): New define.
23593         * intl/loadmsgcat.c: Switch to gettext copyright.
23594         * intl/localealias.c: Switch to gettext copyright.
23595         Use ANSI definitions and prototypes.
23596         (_nl_expand_alias): Use PATH_SEPARATOR.
23597         * intl/ngettext.c: Switch to gettext copyright.
23598         Use ANSI definitions and prototypes.
23599         * intl/plural-exp.c: Likewise.
23600         * intl/plural-exp.h: Switch to gettext copyright.
23601         Use ANSI definitions and prototypes.
23602         (struct expression): Move definition of enum operator outside
23603         of struct definition.
23604         * intl/plural.c: Regenerate.
23605         * intl/plural.y: Switch to gettext copyright.
23606         Use ANSI definitions and prototypes.
23607         Port to bison 3.0.
23608         * intl/textdomain.c: Switch to gettext copyright.
23609         Use ANSI definitions and prototypes.
23610         Use gl_* locking primitives rather than __libc_* ones.
23611
23612 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23613
23614         * debug/warning-nop.c: Add used atrribute.
23615
23616 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23617
23618         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23619
23620         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23621         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23622         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23623
23624 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23625             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23626
23627         [BZ #17634]
23628         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23629         Undefine after defining function.  Define as weak alias of
23630         __wcschr.  Use libc_hidden_weak.
23631         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23632         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23633         (libc_hidden_def): Also define __GI___wcschr alias.
23634         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23635         __wcschr and define as weak alias of __wcschr.
23636         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23637         __wcschr.
23638         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23639         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23640         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23641         libc_hidden_weak.  Do not use libc_hidden_def.
23642         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23643         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23644         __GI___wcschr alias.
23645         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23646         [IS_IN (libc)] (wcschr): Define as macro expanding to
23647         __redirect_wcschr.
23648         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23649         [IS_IN (libc)] (__wcschr_power6): Likewise.
23650         [IS_IN (libc)] (__wcschr_power7): Likewise.
23651         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23652         instead of wcschr.
23653         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23654         __libc_wcschr.
23655         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23656         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23657         __wcschr and define as weak alias of __wcschr.  Use
23658         libc_hidden_builtin_def.
23659         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23660         as weak alias of __wcschr.  Use libc_hidden_weak.
23661         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23662         wcschr.
23663         * time/era.c (_nl_init_era_entries): Likewise.
23664         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23665         variable.
23666         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23667         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23668
23669 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23670
23671         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23672         format for long int variable.
23673
23674 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23675
23676         [BZ #10672]
23677         * manual/search.texi: (Array Sort Function): Remove claim how to make
23678         qsort stable.
23679
23680 2014-12-10  Andreas Schwab  <schwab@suse.de>
23681
23682         [BZ #12847]
23683         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23684         user-controlled locks.
23685
23686 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23687
23688         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23689         register.
23690
23691 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23692
23693         * configure.ac (--disable-werror): New configure option.
23694         (enable_werror): New AC_SUBST.
23695         * configure: Regenerated.
23696         * config.make.in (enable-werror): New variable.
23697         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23698         -Wno-error=undef.
23699         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23700         * manual/install.texi (Configuring and compiling): Document
23701         --disable-werror.
23702         * INSTALL: Regenerated.
23703         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23704         (CFLAGS-tst-chk2.c): Likewise.
23705         (CFLAGS-tst-chk3.c): Likewise.
23706         (CFLAGS-tst-chk4.cc): Likewise.
23707         (CFLAGS-tst-chk5.cc): Likewise.
23708         (CFLAGS-tst-chk6.cc): Likewise.
23709         (CFLAGS-tst-lfschk1.c): Likewise.
23710         (CFLAGS-tst-lfschk2.c): Likewise.
23711         (CFLAGS-tst-lfschk3.c): Likewise.
23712         (CFLAGS-tst-lfschk4.cc): Likewise.
23713         (CFLAGS-tst-lfschk5.cc): Likewise.
23714         (CFLAGS-tst-lfschk6.cc): Likewise.
23715
23716         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23717         (main): Disable -Wdeprecated-declarations around calls to
23718         register_printf_function.
23719
23720         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23721         (do_test): Disable -Wdiv-by-zero around some calls to
23722         fwrite_unlocked and fread_unlocked.
23723
23724         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23725         (DIAG_POP_NEEDS_COMMENT): Likewise.
23726         (_DIAG_STR1): Likewise.
23727         (_DIAG_STR): Likewise.
23728         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23729         * stdio-common/bug21.c: Include <libc-internal.h>.
23730         (do_test): Disable -Wformat around call to sscanf.
23731         * stdio-common/scanf14.c: Include <libc-internal.h>.
23732         (main): Disable -Wformat around some calls to scanf functions.
23733
23734 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23735
23736         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23737
23738 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23739
23740         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23741         stack variable alignment.
23742
23743 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23744
23745         [BZ #17682]
23746         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23747         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23748         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23749         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23750         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23751         __getrlimit instead of getrlimit.
23752         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23753         __gettimeofday instead of gettimeofday.
23754         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23755         Likewise.
23756         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23757         Likewise.
23758         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23759         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23760         Remove variable.
23761         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23762         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23763
23764 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23765
23766         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23767         for wide-character tests.
23768
23769 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23770
23771         * io/openat64.c: #include <libc-internal.h>
23772         (__openat64): Prototypify.  Use ignore_value on MODE.
23773         * io/openat.c: Likewise.
23774         * misc/reboot.c: #include <libc-internal.h>
23775         (reboot): Prototypify.  Use ignore_value on HOWTO.
23776         * misc/ptrace.c: #include <libc-internal.h>
23777         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23778
23779 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23780
23781         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23782         XPG4, UNIX98 and XOPEN2K.
23783         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23784         Remove variable.
23785         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23786
23787 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23788
23789         * libio/fileops.c: Use ISO C style for function definitions.
23790         * libio/iofopen.c: Likewise.
23791         * libio/wfileops.c: Likewise.
23792
23793         [BZ #17653]
23794         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23795         offset on EOF.
23796         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23797         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23798         (fgets_func): Function pointer to fgets and fgetws.
23799         (do_ftell_test): Add test to verify ftell value after read
23800         EOF.
23801         (do_test): Set fgets_func.
23802
23803         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23804         O_TRUNC flag for w and w+ modes.
23805         (do_rewind_test): Likewise.
23806         (do_ftell_test): Likewise.
23807         (do_write_test): Likewise.
23808
23809         [BZ #17647]
23810         * libio/fileops.c (do_ftell): Seek only when there are
23811         unflushed writes.
23812         * libio/wfileops.c (do_ftell_wide): Likewise.
23813         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23814         test case.
23815         (do_one_test): Call it.
23816
23817 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23818
23819         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23820         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23821         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23822         Remove variable.
23823         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23824         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23825         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23826
23827 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23828
23829         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23830         Remove variable.
23831         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23832
23833         [BZ #17668]
23834         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23835         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23836         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23837         __freeifaddrs.  Use libc_hidden_weak.
23838         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23839         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23840         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23841         __freeifaddrs.  Use libc_hidden_weak.
23842         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23843         __getifaddrs and define as weak alias of __getifaddrs.  Use
23844         libc_hidden_weak.
23845         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23846         __freeifaddrs.  Use libc_hidden_weak.
23847         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23848         Remove variable.
23849         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23850         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23851
23852 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23853
23854         [BZ #17601]
23855         * sysdeps/mips/start.S (__start): Use indirect jump to call
23856         __libc_start_main.
23857
23858 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23859
23860         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23861
23862         * nptl/tst-mutex1.c: Include <stdbool.h>.
23863         [!ATTR] (ATTR_NULL): New macro.
23864         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23865         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23866         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23867
23868         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23869         to char *.
23870
23871         [BZ #17665]
23872         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23873         Change conditional to [__USE_MISC].
23874
23875         [BZ #17664]
23876         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23877         fgets_unlocked.
23878         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23879         __fgets_unlocked.
23880         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23881         fgets_unlocked.
23882         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23883         Remove variable.
23884         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23885         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23886         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23887         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23888         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23889         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23890         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23891         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23892         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23893
23894         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23895
23896 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23897
23898         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23899         Remove strpbrk objects.
23900         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23901         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23902         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23903         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23904         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23905         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23906
23907         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23908         Remove strcspn objects.
23909         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23910         (__libc_ifunc_impl_list): Remove strcspn implementation.
23911         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23912         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23913         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23914         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23915
23916         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23917         Remove strspn objetcs.
23918         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23919         (__libc_ifunc_impl_list): Remove strspn implementation.
23920         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23921         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23922         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23923         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23924
23925 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23926
23927         [BZ #17581]
23928         * malloc/hooks.c
23929         (mem2mem_check): Add a terminator to the chain of checking blocks.
23930         (malloc_check_get_size): Use it here.
23931         (mem2chunk_check): Ditto.
23932
23933 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23934
23935         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23936         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23937
23938 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23939
23940         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23941
23942         * nptl/nptl-init.c: Include libc-internal.h.
23943         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23944
23945         * elf/ldconfig.c (search_dir): Expand comment.
23946
23947 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23948
23949         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23950         variable.
23951         (linknamespace-symlist-stdlibs-tests): Likewise.
23952         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23953         instead of $(objpfx)symlist-stdlibs.
23954         (linknamespace-libs-isoc): New variable.
23955         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23956         (linknamespace-libs-ISO): New variable.
23957         (linknamespace-libs-ISO99): Likewise.
23958         (linknamespace-libs-ISO11): Likewise.
23959         (linknamespace-libs-XPG3): Likewise.
23960         (linknamespace-libs-XPG4): Likewise.
23961         (linknamespace-libs-POSIX): Likewise.
23962         (linknamespace-libs-UNIX98): Likewise.
23963         (linknamespace-libs-XOPEN2K): Likewise.
23964         (linknamespace-libs-POSIX2008): Likewise.
23965         (linknamespace-libs-XOPEN2K8): Likewise.
23966         ($(objpfx)symlist-stdlibs): Replace by
23967         $(linknamespace-symlist-stdlibs-tests).  Use
23968         $(linknamespace-libs-$*) as set of libraries.
23969         ($(linknamespace-header-tests)): Update dependencies.  Use
23970         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23971         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23972         * conform/linknamespace.pl: Remove comment about considering
23973         definitions of symbols from irrelevant libraries.
23974
23975 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23976
23977         [BZ #13862]
23978         * elf/dl-tls.c: Include <atomic.h>.
23979         (oom): Remove #ifdef SHARED/#endif.
23980         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23981         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23982         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23983         big enough.
23984         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23985         * nptl/Makefile (tests): Add tst-stack4.
23986         (modules-names): Add tst-stack4mod.
23987         ($(objpfx)tst-stack4): New.
23988         (tst-stack4mod.sos): Likewise.
23989         ($(objpfx)tst-stack4.out): Likewise.
23990         ($(tst-stack4mod.sos)): Likewise.
23991         (clean): Likewise.
23992         * nptl/tst-stack4.c: New file.
23993         * nptl/tst-stack4mod.c: Likewise.
23994
23995 2014-11-27  J. Brown  <jb999@gmx.de>
23996
23997         * sysdeps/x86/bits/string.h: Add recent CPUs.
23998
23999 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24000
24001         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
24002         sigblock.
24003
24004         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
24005         feof.
24006
24007         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
24008         variable.
24009
24010 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
24011
24012         * nscd/connections.c: Include libc-internal.h because of macro
24013         usage ignore_value.
24014
24015 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24016
24017         * string/bits/string3.h (__warn_memset_zero_len): Don't
24018         declare for gcc newer than 5.0.
24019         (memset): Don't test for zero-length __LEN for gcc newer than
24020         5.0.
24021
24022 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24023
24024         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
24025         size_t for %zu format.
24026
24027         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
24028         difference, not %ju.
24029
24030 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24031
24032         * include/libc-internal.h (ignore_value): New macro.
24033         * nscd/connections.c (restart): Wrap calls to setuid and setgid
24034         with ignore_value.
24035
24036         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
24037         definition.
24038
24039         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
24040         pthread_cleanup_push to void *.
24041
24042         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
24043         Undefine.
24044
24045         [BZ #16619]
24046         [BZ #16740]
24047         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
24048         instead of 1L << 52.
24049
24050         * libio/bug-rewind.c (do_test): Check fwscanf return values.
24051         * libio/bug-rewind2.c (do_test): Likewise.
24052
24053         * debug/test-stpcpy_chk-ifunc.c: Remove file.
24054         * debug/test-strcpy_chk-ifunc.c: Likewise.
24055         * wcsmbs/test-wcschr-ifunc.c: Likewise.
24056         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
24057         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
24058         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24059         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
24060         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
24061         * Rules [$(multi-arch) = no] (tests): Do not filter out
24062         $(tests-ifunc).
24063         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
24064         * debug/Makefile (tests-ifunc): Remove variable.
24065         (tests): Do not add $(tests-ifunc).
24066         * wcsmbs/Makefile (tests-ifunc): Remove variable.
24067         (tests): Do not add $(tests-ifunc).
24068         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
24069         [TEST_IFUNC]: Remove conditionals.
24070         * string/test-string.h (TEST_IFUNC): Remove macro.
24071         [TEST_IFUNC]: Remove conditionals.
24072
24073         * string/test-strchr.c [!WIDE] (L): New macro.
24074         [WIDE] (L): Likewise.
24075         (check1): Use CHAR instead of char.  Use L on string and character
24076         constants.
24077
24078 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
24079
24080         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
24081         tests.
24082         * sysdeps/powerpc/bits/atomic.h
24083         (__arch_atomic_exchange_and_add_32_acq): Add definition.
24084         (__arch_atomic_exchange_and_add_32_rel): Likewise.
24085         (atomic_exchange_and_add_acq): Likewise.
24086         (atomic_exchange_and_add_rel): Likewise.
24087         * sysdeps/powerpc/powerpc32/bits/atomic.h
24088         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24089         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24090         * sysdeps/powerpc/powerpc64/bits/atomic.h
24091         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24092         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24093
24094 2014-11-26  Torvald Riegel  <triegel@redhat.com>
24095
24096         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
24097         Change synchronization of __sched_fifo_min_prio and
24098         __sched_fifo_max_prio.
24099         * nptl/pthread_mutexattr_getprioceiling.c
24100         (pthread_mutexattr_getprioceiling): Likewise.
24101         * nptl/pthread_mutexattr_setprioceiling.c
24102         (pthread_mutexattr_setprioceiling): Likewise.
24103         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24104         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
24105         Likewise.
24106
24107 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24108
24109         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
24110         void.
24111
24112 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24113
24114         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
24115         third argument const.
24116
24117 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24118
24119         fnmatch: work around GCC compiler warning bug with uninit var
24120         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
24121         This works around a bug with x86-64 GCC 4.9.2 and earlier
24122         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
24123         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
24124         used uninitialized in this function [-Wmaybe-uninitialized]".
24125
24126 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24127
24128         * posix/bug-regex31.c (main): Return RES not 0.
24129
24130 2014-11-25  Anton Blanchard <anton@samba.org>
24131
24132         * sysdeps/powerpc/bits/atomic.h
24133         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
24134
24135 2014-11-24  Sterling Augustine  <saugustine@google.com>
24136
24137         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
24138
24139 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
24140
24141         [BZ #17608]
24142         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
24143
24144 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
24145
24146         [BZ #17633]
24147         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
24148         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
24149         variable.
24150         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24151         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24152
24153 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24154
24155         * string/strncpy.c (strncpy): Improve performance by using memset.
24156
24157 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24158
24159         * string/strcpy.c (strcpy):
24160         Improve performance by using strlen and memcpy.
24161
24162 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
24163
24164         * string/strcoll_l.c (get_next_seq): __always_inline.
24165         * string/strcoll_l.c (do_compare): __always_inline.
24166
24167 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
24168
24169         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
24170         defined.
24171         * include/mqueue.h: Likewise.
24172         * include/stdlib.h: Likewise.
24173
24174         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
24175         (get_null_defines): Adjust.
24176         * sunrpc/Makefile: Adjust comment.
24177         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
24178         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
24179         (CFLAGS-interp.c): Likewise.
24180         (CFLAGS-ldconfig.c): Likewise.
24181         (CPPFLAGS-.os): Likewise.
24182         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24183         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24184         * extra-modules.mk (extra-modules.mk): Likewise.
24185         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
24186         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
24187         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
24188         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
24189         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
24190         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
24191         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
24192         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
24193         * iconvdata/Makefile (CPPFLAGS): Likewise.
24194         (cpp-srcs-left): Add libof for all iconvdata routines.
24195         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
24196         * include/assert.h: Likewise.
24197         * include/ctype.h: Likewise.
24198         * include/errno.h: Likewise.
24199         * include/libc-symbols.h: Likewise.
24200         * include/math.h: Likewise.
24201         * include/netdb.h: Likewise.
24202         * include/resolv.h: Likewise.
24203         * include/stdio.h: Likewise.
24204         * include/stdlib.h: Likewise.
24205         * include/string.h: Likewise.
24206         * include/sys/stat.h: Likewise.
24207         * include/wctype.h: Likewise.
24208         * intl/l10nflist.c: Likewise.
24209         * libidn/idn-stub.c: Likewise.
24210         * libio/libioP.h: Likewise.
24211         * nptl/libc_multiple_threads.c: Likewise.
24212         * nptl/pthreadP.h: Likewise.
24213         * posix/regex_internal.h: Likewise.
24214         * resolv/res_hconf.c: Likewise.
24215         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
24216         * sysdeps/arm/memmove.S: Likewise.
24217         * sysdeps/arm/sysdep.h: Likewise.
24218         * sysdeps/generic/_itoa.h: Likewise.
24219         * sysdeps/generic/symbol-hacks.h: Likewise.
24220         * sysdeps/gnu/errlist.awk: Likewise.
24221         * sysdeps/gnu/errlist.c: Likewise.
24222         * sysdeps/i386/i586/memcpy.S: Likewise.
24223         * sysdeps/i386/i586/memset.S: Likewise.
24224         * sysdeps/i386/i686/memcpy.S: Likewise.
24225         * sysdeps/i386/i686/memmove.S: Likewise.
24226         * sysdeps/i386/i686/mempcpy.S: Likewise.
24227         * sysdeps/i386/i686/memset.S: Likewise.
24228         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24229         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24230         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
24231         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
24232         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24233         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24234         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
24235         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24236         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24237         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24238         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24239         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24240         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24241         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24242         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24243         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24244         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
24245         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
24246         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
24247         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24248         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24249         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24250         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24251         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24252         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24253         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24254         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
24255         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24256         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
24257         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24258         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24259         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24260         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24261         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24262         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24263         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24264         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24265         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24266         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24267         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24268         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24269         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24270         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24271         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24272         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24273         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24274         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
24275         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
24276         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24277         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24278         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24279         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
24280         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
24281         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24282         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24283         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
24284         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24285         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
24286         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
24287         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24288         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24289         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24290         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
24291         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24292         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24293         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
24294         * sysdeps/posix/closedir.c: Likewise.
24295         * sysdeps/posix/opendir.c: Likewise.
24296         * sysdeps/posix/readdir.c: Likewise.
24297         * sysdeps/posix/rewinddir.c: Likewise.
24298         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
24299         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
24300         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
24301         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
24302         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
24303         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
24304         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
24305         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
24306         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
24307         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
24308         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
24309         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
24310         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
24311         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
24312         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
24313         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
24314         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
24315         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
24316         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
24317         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
24318         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
24319         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
24320         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
24321         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
24322         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
24323         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
24324         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
24325         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
24326         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
24327         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
24328         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
24329         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
24330         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
24331         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
24332         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
24333         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
24334         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
24335         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
24336         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
24337         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
24338         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
24339         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
24340         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
24341         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24342         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24343         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
24344         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
24345         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
24346         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
24347         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
24348         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
24349         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
24350         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
24351         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
24352         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
24353         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
24354         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
24355         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
24356         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
24357         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
24358         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24359         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
24360         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
24361         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
24362         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
24363         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24364         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24365         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24366         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24367         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24368         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24369         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24370         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24371         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24372         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24373         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24374         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24375         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24376         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24377         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24378         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24379         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24380         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24381         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24382         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24383         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24384         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24385         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24386         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24387         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24388         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24389         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24390         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24391         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24392         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24393         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24394         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24395         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24396         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24397         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24398         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24399         * sysdeps/unix/alpha/sysdep.S: Likewise.
24400         * sysdeps/unix/alpha/sysdep.h: Likewise.
24401         * sysdeps/unix/make-syscalls.sh: Likewise.
24402         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24403         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24404         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24405         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24406         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24407         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24408         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24409         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24410         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24411         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24412         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24413         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24414         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24415         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24416         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24417         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24418         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24419         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24420         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24421         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24422         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24423         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24424         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24425         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24426         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24427         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24428         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24431         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24432         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24433         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24434         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24435         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24436         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24437         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24438         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24439         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24440         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24441         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24442         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24443         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24444         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24445         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24446         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24447         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24448         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24449         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24450         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24451         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24452         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24453         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24454         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24455         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24456         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24457         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24458         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24459         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24460         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24461         * sysdeps/x86_64/memcpy.S: Likewise.
24462         * sysdeps/x86_64/memmove.c: Likewise.
24463         * sysdeps/x86_64/memset.S: Likewise.
24464         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24465         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24466         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24467         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24468         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24469         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24470         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24471         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24472         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24473         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24474         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24475         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24476         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24477         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24478         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24479         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24480         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24481         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24482         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24483         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24484         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24485         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24486         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24487         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24488         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24489         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24490         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24491         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24492         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24493         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24494         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24495         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24496         * sysdeps/x86_64/strcmp.S: Likewise.
24497
24498         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24499
24500         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24501         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24502         * elf/rtld-Rules: Likewise.
24503         * elf/setup-vdso.h: Likewise.
24504         * include/assert.h: Likewise.
24505         * include/bits/stdlib-float.h: Likewise.
24506         * include/errno.h: Likewise.
24507         * include/sys/stat.h: Likewise.
24508         * include/unistd.h: Likewise.
24509         * sysdeps/aarch64/setjmp.S: Likewise.
24510         * sysdeps/alpha/setjmp.S: Likewise.
24511         * sysdeps/arm/__longjmp.S: Likewise.
24512         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24513         * sysdeps/arm/setjmp.S: Likewise.
24514         * sysdeps/arm/sysdep.h: Likewise.
24515         * sysdeps/generic/_itoa.h: Likewise.
24516         * sysdeps/generic/dl-sysdep.h: Likewise.
24517         * sysdeps/generic/ldsodefs.h: Likewise.
24518         * sysdeps/i386/dl-tls.h: Likewise.
24519         * sysdeps/i386/setjmp.S: Likewise.
24520         * sysdeps/m68k/setjmp.c: Likewise.
24521         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24522         * sysdeps/mach/hurd/opendir.c: Likewise.
24523         * sysdeps/posix/getcwd.c: Likewise.
24524         * sysdeps/posix/opendir.c: Likewise.
24525         * sysdeps/posix/profil.c: Likewise.
24526         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24527         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24528         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24529         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24530         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24531         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24532         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24533         * sysdeps/s390/dl-tls.h: Likewise.
24534         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24535         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24536         * sysdeps/sh/sh3/setjmp.S: Likewise.
24537         * sysdeps/sh/sh4/setjmp.S: Likewise.
24538         * sysdeps/unix/alpha/sysdep.h: Likewise.
24539         * sysdeps/unix/arm/sysdep.S: Likewise.
24540         * sysdeps/unix/i386/sysdep.S: Likewise.
24541         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24542         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24543         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24544         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24545         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24546         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24547         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24548         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24549         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24550         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24551         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24552         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24553         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24556         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24557         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24558         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24559         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24560         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24561         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24562         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24563         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24564         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24565         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24566         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24567         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24568         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24569         * sysdeps/x86_64/setjmp.S: Likewise.
24570
24571         * include/math.h: Use IS_IN instead of IS_IN_libm.
24572         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24573         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24574         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24575         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24576         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24577         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24578         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24579         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24580         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24581         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24582         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24583         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24584         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24585         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24586         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24587         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24588         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24589         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24590         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24591         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24592         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24593         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24594         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24595         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24596         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24597         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24598         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24599         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24600         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24601         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24602         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24603         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24604         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24605         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24606         Likewise.
24607         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24608         Likewise.
24609         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24610         Likewise.
24611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24612         Likewise.
24613         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24614         Likewise.
24615         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24616         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24617         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24618         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24619         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24620         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24621         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24622         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24623         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24624         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24625         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24626         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24627         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24628         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24629         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24630         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24631         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24632         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24633         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24634         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24635         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24636         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24637         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24638         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24639         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24640         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24641         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24642
24643         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24644         * nptl/pthreadP.h: Likewise.
24645         * nptl_db/structs.def: Likewise.
24646         * sysdeps/arm/sysdep.h: Likewise.
24647         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24648         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24649         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24650         * sysdeps/unix/alpha/sysdep.h: Likewise.
24651         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24652         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24653         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24654         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24655         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24656         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24657         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24658         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24659         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24660         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24661         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24662         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24663         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24664         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24667         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24668         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24669         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24670         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24671         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24672         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24673         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24674         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24675         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24676         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24677
24678         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24679         * nptl/pthreadP.h: Likewise.
24680         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24681         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24682         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24683         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24684         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24685         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24686         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24687         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24688         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24689         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24690         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24691         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24693         Likewise.
24694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24695         Likewise.
24696         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24697         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24698         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24699         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24700         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24701         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24702         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24703         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24704
24705         * dlfcn/dladdr.c: Use IS_IN.
24706         * dlfcn/dladdr1.c: Likewise.
24707         * dlfcn/dlclose.c: Likewise.
24708         * dlfcn/dlerror.c: Likewise.
24709         * dlfcn/dlinfo.c: Likewise.
24710         * dlfcn/dlmopen.c: Likewise.
24711         * dlfcn/dlopen.c: Likewise.
24712         * dlfcn/dlsym.c: Likewise.
24713         * dlfcn/dlvsym.c: Likewise.
24714
24715         * include/ifaddrs.h: Use IS_IN.
24716         * inet/check_pf.c: Likewise.
24717         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24718         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24719
24720         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24721         IS_IN_ldconfig.
24722         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24723         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24724
24725         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24726         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24727         IS_IN (libc).
24728
24729         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24730
24731         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24732         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24733         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24734         * include/libc-symbols.h (IS_IN_LIB): New macro.
24735         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24736         * include/netdb.h: Likewise.
24737         * include/stap-probe.h: Remove all uses of IN_LIB.
24738
24739         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24740         instead of IN_MODULE.
24741         * include/libc-symbols.h (IN_MODULE): Define using
24742         MODULE_NAME.
24743         (PASTE_NAME, PASTE_NAME1): New macros.
24744         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24745         of IN_LIB.
24746         (STAP_PROBE_ASM): Likewise.
24747
24748 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24749
24750         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24751         __mach_init in dlopened libc.
24752
24753 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24754
24755         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24756         * sysdeps/arm/preconfigure: Regenerate.
24757
24758 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24759
24760         * nptl/pthread_create.c (__pthread_create_2_1): Set
24761         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24762         when copying values from IATTR into PD.
24763
24764 2014-11-21  Will Newton  <will.newton@linaro.org>
24765             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24766
24767         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24768         Refactor inline-asm.  Also add comment.
24769
24770         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24771         ElfW macro instead of hardcoded Elf64 types.
24772         (la_aarch64_gnu_pltenter): Likewise.
24773         * sysdeps/aarch64/dl-machine.h
24774         (elf_machine_runtime_setup): Use ElfW(Addr).
24775
24776         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24777         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24778         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24779         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24780         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24781         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24782         (R_AARCH64_TLS_DTPMOD): This.
24783         (R_AARCH64_TLS_DTPREL64): Rename to ...
24784         (R_AARCH64_TLS_DTPREL): This.
24785         (R_AARCH64_TLS_TPREL64): Rename to ...
24786         (R_AARCH64_TLS_TPREL): This.
24787         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24788         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24789         R_AARCH64_TLS_TPREL64.
24790         (elf_machine_rela): Likewise.
24791
24792 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24793
24794         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24795         by setting it to 0.  64b atomics are not supported currently.
24796
24797 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24798
24799         [BZ #16469]
24800         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24801         search domain names.
24802
24803 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24804
24805         [BZ #16469]
24806         * NEWS: Update.
24807         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24808         trailing dot.
24809         * posix/tst-getaddrinfo5.c: New.
24810         * posix/Makefile (tests): Add it.
24811
24812 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24813
24814         [BZ #14498]
24815         * NEWS: Fixed.
24816         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24817         after parsing line but before break_if_match.
24818         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24819         if there is a protocol mismatch.
24820
24821 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24822
24823         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24824         because the potential race is on the user-supplied stream.
24825
24826 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24827
24828         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24829         string literal if not passed a buffer.
24830         * manual/job.texi (ctermid): Update reasoning, note deviation
24831         from posix, suggest mtasurace when not passed a buffer, for
24832         future non-preliminary safety notes.
24833
24834 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24835
24836         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24837         of not passing it a buffer.
24838         Reported by Peng Haitao.
24839
24840 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24841
24842         * manual/Makefile ($(objpfx)stamp-summary): Require
24843         check-safety.sh to pass.
24844         * manual/check-safety.sh: Wish for verification that every
24845         @deftypefn and @deftypefun is followed by a @safety remark.
24846
24847 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24848
24849         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24850
24851         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24852         PTHREAD_CANCEL_ASYNCHRONOUS.
24853         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24854         send SIGCANCEL.
24855
24856         * nptl/default-sched.h: New file.
24857         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24858         * nptl/pthread_create.c: Include it.
24859         (__pthread_create_2_1): Use collect_default_sched instead of making
24860         Linux syscalls here directly.
24861
24862 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24863
24864         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24865         __pthread_once): Use C11 atomics.
24866
24867 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24868
24869         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24870
24871 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24872
24873         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24874         atomic_thread_fence_acquire, atomic_thread_fence_release,
24875         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24876         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24877         atomic_compare_exchange_weak_relaxed,
24878         atomic_compare_exchange_weak_acquire,
24879         atomic_compare_exchange_weak_release,
24880         atomic_exchange_acquire, atomic_exchange_release,
24881         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24882         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24883         atomic_fetch_and_acquire,
24884         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24885
24886 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24887
24888         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24889         USE_ATOMIC_COMPILER_BUILTINS): Define.
24890         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24891         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24892         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24893         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24894         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24895         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24896         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24897         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24898         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24899         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24900         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24901         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24902         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24903         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24904         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24905         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24906         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24907         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24908         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24909         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24910         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24911         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24912         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24913         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24914         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24915         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24916         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24917         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24918         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24919         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24920         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24921         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24922         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24923         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24924         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24925         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24926         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24927         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24928         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24929         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24930
24931 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24932
24933         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24934         the sched_priority value here.  It was already checked when the user
24935         called pthread_attr_setschedparam.
24936
24937         * nptl/tst-bad-schedattr.c: New file.
24938         * nptl/Makefile (tests): Add it.
24939
24940 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24941             Florian Weimer  <fweimer@redhat.com>
24942             Joseph Myers  <joseph@codesourcery.com>
24943             Adam Conrad  <adconrad@0c3.net>
24944             Andreas Schwab  <schwab@suse.de>
24945             Brooks  <bmoses@google.com>
24946
24947         [BZ #17625]
24948         * wordexp-test.c (__dso_handle): Add prototype.
24949         (__register_atfork): Likewise.
24950         (__app_register_atfork): New function.
24951         (registered_forks): New global.
24952         (register_fork): New function.
24953         (test_case): Add 3 new tests for WRDE_CMDSUB.
24954         (main): Call __app_register_atfork.
24955         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24956         fork count is non-zero fail the test.
24957         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24958         is set.
24959         (parse_dollars): Remove check for WRDE_NOCMD.
24960         (parse_dquote): Likewise.
24961
24962 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24963
24964         * Makeconfig (built-modules): List non-library modules to be
24965         built.
24966         (module-cppflags): Include libc-modules.h for
24967         everything except shlib-versions.v.i.
24968         (CPPFLAGS): Use it.
24969         (before-compile): Add libc-modules.h.
24970         ($(common-objpfx)libc-modules.h,
24971         $(common-objpfx)libc-modules.stmp): New targets.
24972         (common-generated): Add libc-modules.h and libc-modules.stmp.
24973         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24974         * include/libc-symbols.h: Don't include libc-modules.h.
24975         * include/libc-modules.h: Remove file.
24976         * scripts/gen-libc-modules.awk: New script to generate
24977         libc-modules.h.
24978         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24979         Depend on libc-modules.stmp.
24980
24981         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24982
24983         * Makeconfig (in-module): Get value of libof set for the
24984         translation unit.
24985         (CPPFLAGS): Use $(in-module).
24986         * Makerules: Don't suffix routine names for nonlib.
24987         * include/libc-modules.h: New file.
24988         * include/libc-symbols.h: Include libc-modules.h
24989         (IS_IN): New macro to replace IS_IN_* macros.
24990         * elf/Makefile: Set libof-* for each routine.
24991         * elf/rtld-Rules: Likewise.
24992         * extra-modules.mk: Likewise.
24993         * iconv/Makefile: Likewise.
24994         * iconvdata/Makefile: Likewise.
24995         * locale/Makefile: Likewise.
24996         * malloc/Makefile: Likewise.
24997         * nss/Makefile: Likewise.
24998         * sysdeps/gnu/Makefile: Likewise.
24999         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
25000         * sysdeps/unix/sysv/linux/Makefile: Likewise.
25001         * sysdeps/s390/s390-64/Makefile: Likewise.
25002         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
25003         CPPFLAGS for nscd instead of nonlib.
25004
25005 2014-11-18  Roland McGrath  <roland@hack.frob.com>
25006
25007         * nptl/createthread.c: New file.
25008
25009         * nptl/createthread.c: Moved ...
25010         * sysdeps/unix/sysv/linux/createthread.c: ... here.
25011
25012         * nptl/createthread.c: Add proper top-line comment.
25013         (do_clone): Folded into ...
25014         (create_thread): ... here.  Take new arguments STOPPED_START and
25015         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
25016         increment __nptl_threads, do event-reporting logic, do
25017         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
25018         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
25019         resource cleanup if sched_setaffinity or sched_setscheduler fails,
25020         just send SIGCANCEL.
25021         * nptl/pthread_create.c: Forward-declare create_thread before
25022         including createthread.c.
25023         (start_thread): Use new macro START_THREAD_DEFN to replace defining
25024         declaration, and new macro START_THREAD_SELF to replace argument.
25025         Remove return statement.
25026         (report_thread_creation): New function.
25027         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
25028         synchronization logic, and __nptl_nthreads increment here, around
25029         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
25030         PD->parent_cancelhandling here, before create_thread.  When
25031         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
25032         __deallocate_stack, and ENOMEM translation here.
25033
25034 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
25035
25036         [BZ #17616]
25037         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
25038         (mptwo): Rename to __mptwo.
25039         (__inv): Use __mptwo instead of mptwo.
25040         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
25041         (mptwo): Rename to __mptwo.
25042         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
25043         of mpone and __mptwo instead of mptwo.
25044         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
25045         instead of mpone.
25046         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
25047         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
25048         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
25049         of mpone and __mptwo instead of mptwo.
25050         (__mpranred): Use __mpone instead of mpone.
25051         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
25052         variable.
25053         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25054         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25055         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25056         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25057         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25058         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25059         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25060         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25061         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25062         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25063         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25064         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25065         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25066         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25067         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25068         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25069         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25070         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25071         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25072
25073 2014-11-18  Tom de Vries  <tom@codesoucery.com>
25074
25075         * manual/signal.texi (Primitives Interrupted by Signals): In section,
25076         replace BSD Handler xref with BSD Signal Handling.
25077
25078 2014-11-17  Richard Henderson  <rth@redhat.com>
25079
25080         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
25081         (_FP_PACK_RAW_2): Remove.
25082         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
25083         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
25084         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
25085         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
25086         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
25087         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
25088         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
25089         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
25090         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
25091         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
25092         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
25093         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
25094         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
25095         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
25096         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
25097         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
25098
25099 2014-11-14  Roland McGrath  <roland@hack.frob.com>
25100
25101         * signal/signal.h [__USE_MISC]
25102         (struct sigvec): Remove type.
25103         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
25104         (sigvec): Remove declaration.
25105         * sysdeps/posix/sigvec.c: Moved ...
25106         * signal/sigvec.c: ... here, replacing old file.
25107         (struct sigvec): New type, copied from old signal.h definition.
25108         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
25109         (__sigvec): Convert definition to prototype.
25110         (sigvec): Replace weak_alias with compat_symbol.
25111         * signal/Versions (libc: GLIBC_2.21): New version set.
25112         * include/signal.h: Remove __sigvec declaration.
25113         * sysdeps/unix/bsd/sigvec.c: Remove file.
25114         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
25115         * manual/signal.texi (BSD Handler): Remove subsection.
25116         Move siginterrupt up to ...
25117         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
25118         (Blocking in BSD): Fold subsection into its parent.
25119         * NEWS: Mention sigvec removal.
25120
25121 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25122
25123         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
25124         (DLA_FMS): Make definition conditional only on [__FMA4__].
25125         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
25126         definition.
25127
25128         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
25129         Make definition conditional only on [PROF].
25130         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
25131         definition.
25132         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
25133         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
25134
25135         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
25136         !__GNUC__].
25137         * include/signal.h (__sigpause): Move declaration above call to
25138         libc_hidden_proto.
25139         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
25140         variable.
25141         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25142         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25143
25144 2014-11-14  David S. Miller  <davem@davemloft.net>
25145
25146         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
25147         Define before including <string/memcpy.c> and <string/mempcpy.c>.
25148
25149 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25150
25151         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
25152         * configure: Regenerated.
25153         * manual/install.texi (Tools for Compilation): Document a
25154         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
25155         compiler verified to work.
25156         * INSTALL: Regenerated.
25157
25158         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
25159         redeclare with asm name.
25160         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
25161         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
25162         including <string.h>.
25163         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25164         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
25165         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25166         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
25167         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25168         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
25169         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25170
25171 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
25172
25173         * stdlib/strtol.c (__strtol): Use prototype definition.
25174
25175         [BZ #17594]
25176         * stdlib/strtol.c (SYM__): New macro.
25177         (SYM__1): Likewise.
25178         (__strtol): Likewise.
25179         (strtol): Rename to __strtol and define as weak alias of
25180         __strtol.  Use libc_hidden_weak.
25181
25182 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25183
25184         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
25185         Use numbered labels in inline assembly.
25186
25187 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25188
25189         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
25190         Add setjmp LIBC_PROBE.
25191         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
25192         Likewise.
25193         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
25194         Add longjmp, longjmp_target LIBC_PROBE.
25195         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
25196         Likewise.
25197
25198 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25199
25200         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
25201         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
25202         to get rid of unused variable warning.
25203
25204 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25205
25206         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
25207         Check for unwind_backtrace ==  NULL only in SHARED case.
25208         (__backchain_backtrace): Compile only in SHARED case.
25209         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
25210         Likewise.
25211         (__backchain_backtrace): Declare as static.
25212
25213 2014-11-12  Roland McGrath  <roland@hack.frob.com>
25214
25215         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
25216         (__libc_multiple_threads_ptr): Variable moved ...
25217         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
25218
25219 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
25220
25221         * conform/GlibcConform.pm: New file.
25222         * conform/conformtest.pl: Use GlibcConform module.
25223         * conform/linknamespace.pl: New file.
25224         * conform/list-header-symbols.pl: Likewise.
25225         * conform/Makefile (linknamespace-symlists-base): New variable.
25226         (linknamespace-symlists-tests): Likewise.
25227         (linknamespace-header-base): Likewise.
25228         (linknamespace-header-tests): Likewise.
25229         (tests-special): Add new tests.
25230         ($(linknamespace-symlists-tests)): New rule.
25231         (linknamespace-libs): New variable.
25232         ($(objpfx)symlist-stdlibs): New rule.
25233         ($(linknamespace-header-tests)): Likewise.
25234         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
25235         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
25236         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
25237         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
25238         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
25239         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
25240         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
25241         (test-xfail-ISO/math.h/linknamespace): Likewise.
25242         (test-xfail-ISO/signal.h/linknamespace): Likewise.
25243         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
25244         (test-xfail-ISO/time.h/linknamespace): Likewise.
25245         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25246         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
25247         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25248         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25249         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
25250         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25251         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25252         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25253         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25254         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25255         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
25256         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25257         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25258         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
25259         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
25260         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25261         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
25262         (test-xfail-XPG3/search.h/linknamespace): Likewise.
25263         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
25264         (test-xfail-XPG3/time.h/linknamespace): Likewise.
25265         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
25266         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
25267         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25268         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
25269         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
25270         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
25271         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
25272         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
25273         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25274         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
25275         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
25276         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
25277         (test-xfail-XPG4/search.h/linknamespace): Likewise.
25278         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
25279         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
25280         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
25281         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
25282         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
25283         (test-xfail-XPG4/time.h/linknamespace): Likewise.
25284         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
25285         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
25286         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
25287         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
25288         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
25289         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25290         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
25291         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
25292         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
25293         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
25294         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
25295         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
25296         (test-xfail-POSIX/time.h/linknamespace): Likewise.
25297         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
25298         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
25299         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
25300         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25301         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
25302         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
25303         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
25304         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
25305         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
25306         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25307         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
25308         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
25309         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
25310         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
25311         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
25312         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
25313         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
25314         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
25315         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
25316         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
25317         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
25318         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
25319         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
25320         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
25321         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
25322         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
25323         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
25324         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
25325         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25326         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
25327         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
25328         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
25329         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
25330         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
25331         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
25332         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25333         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25334         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
25335         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
25336         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
25337         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
25338         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25339         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
25340         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
25341         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
25342         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
25343         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
25344         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
25345         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
25346         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
25347         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
25348         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25349         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
25350         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
25351         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
25352         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
25353         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
25354         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25355         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25356         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
25357         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25358         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
25359         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25360         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25361         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
25362         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
25363         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25364         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25365         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25366         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25367         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25368         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25369         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25370         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25371         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25372         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25373         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25374         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25375         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25376         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25377         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25378         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25379         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25380         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25381         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25382         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25383         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25384         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25385         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25386         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25387         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25388         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25389         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25390         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25391         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25392         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25393         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25394         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25395
25396         [BZ #17589]
25397         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25398         of fgets_unlocked.
25399
25400         [BZ #17585]
25401         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25402         (memmem): Rename to __memmem and define as weak alias of
25403         __memmem.  Use libc_hidden_weak.
25404         (__memmem): Use libc_hidden_def.
25405         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25406         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25407         memmem.
25408
25409         [BZ #17582]
25410         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25411         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25412         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25413         and define as weak alias of __fgets_unlocked.  Use
25414         libc_hidden_weak.
25415         (__fgets_unlocked): Use libc_hidden_def.
25416         * include/stdio.h (__fgets_unlocked): Declare.  Use
25417         libc_hidden_proto.
25418         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25419         __fgets_unlocked instead of fgets_unlocked.
25420         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25421         (GET_NPROCS_CONF_PARSER): Likewise.
25422         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25423         (GET_NPROCS_CONF_PARSER): Likewise.
25424
25425         [BZ #17574]
25426         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25427         weak alias of __wmemset.  Use libc_hidden_weak.
25428         (__wmemset): Use libc_hidden_def.
25429         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25430         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25431         of wmemset.
25432
25433         [BZ #17573]
25434         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25435         with asm name __mempcpy.
25436         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25437
25438         [BZ #17572]
25439         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25440         and define as weak alias of __rawmemchr.
25441         (__rawmemchr): Do not define as strong alias of rawmemchr.
25442
25443         [BZ #17571]
25444         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25445         alias of __qsort_r.
25446         (qsort): Call __qsort_r instead of qsort_r.
25447         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25448         (__qsort_r): Declare.  Call libc_hidden_proto.
25449         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25450         instead of qsort_r.
25451         * nscd/gai.c (__qsort_r): Define to qsort_r.
25452         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25453         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25454         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25455
25456         [BZ #17570]
25457         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25458         define as weak alias of __malloc_info.
25459
25460         [BZ #17584]
25461         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25462         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25463         (__rewinddir): Use libc_hidden_def.
25464         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25465         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25466         (__rewinddir): Use libc_hidden_def.
25467         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25468         weak alias of __rewinddir.  Don't use libc_hidden_def.
25469         (__rewinddir): Use libc_hidden_def.
25470         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25471         (__rewinddir): Use libc_hidden_proto.
25472         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25473         rewinddir.
25474         (__getcwd): Use __rewinddir instead of rewinddir.
25475
25476         [BZ #17583]
25477         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25478         alias of __fileno.  Use libc_hidden_weak.
25479         (__fileno): Use libc_hidden_def.
25480         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25481         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25482         alias of __ftello.
25483         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25484         __ftello.
25485         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25486         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25487         libc_hidden_def.
25488         (fread_unlocked): Don't use libc_hidden_ver.
25489         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25490         and define as weak alias of __fread_unlocked.  Don't use
25491         libc_hidden_def.
25492         (__fread_unlocked): Use libc_hidden_def.
25493         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25494         (ftello): Don't use libc_hidden_proto.
25495         (__ftello): Declare.  Use libc_hidden_proto.
25496         (fread_unlocked): Don't use libc_hidden_proto.
25497         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25498         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25499         and __ftello instead of fileno, fread_unlocked and ftello.
25500
25501 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25502
25503         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25504         GOT12.
25505         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25506         Likewise.
25507         (_dl_start_user): Likewise.
25508         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25509
25510 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25511             Siddhesh Poyarekar  <siddhesh@redhat.com>
25512
25513         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25514         Move argv and envp down instead of moving argc up.
25515         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25516
25517 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25518
25519         [BZ #17506]
25520         * test-skeleton.c (main): Return successful if one of
25521         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25522         * string/tst-strcoll-overflow.c: Define expected status.
25523
25524 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25525
25526         [BZ #17475]
25527         * locale/iso-639.def: Define Bhili and Tulu language codes.
25528
25529 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25530
25531         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25532
25533 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25534
25535         [BZ #17555]
25536         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25537
25538 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25539
25540         * configure.ac: Updated check of minimal required version to
25541         2.22.
25542         * manual/install.texi (Tools for Compilation): Updated version
25543         number.
25544         * configure: Regenerated.
25545         * INSTALL: Likewise.
25546
25547 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25548
25549         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25550         __tls_get_addr.
25551
25552 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25553
25554         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25555         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25556         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25557         libc_hidden_weak.
25558         (waitpid): Define as alias of __waitpid.
25559         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25560         __waitpid.
25561         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25562         libc_hidden_weak.
25563         (waitpid): Define as alias of __waitpid.
25564         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25565         __libc_waitpid alias.
25566         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25567         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25568         Likewise.
25569         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25570         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25571         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25572         alias.
25573         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25574         __waitpid.
25575         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25576         libc_hidden_weak.
25577         (waitpid): Define as alias of __waitpid.
25578
25579 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25580
25581         * manual/llio.texi: Add comment that write safety has been
25582         fixed in Linux.
25583
25584         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25585         (localplt-build-dso): Add elf/ld.so.
25586         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25587         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25588         and free for ld.so.
25589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25590         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25592         Likewise.
25593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25594         Likewise.
25595         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25596         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25597         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25598         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25599         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25600         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25601         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25602         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25603         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25604         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25605         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25606
25607 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25608
25609         [BZ #14132]
25610         * include/libc-symbols.h (INTUSE): Remove macro.
25611         (INTDEF): Likewise.
25612         (INTVARDEF): Likewise.
25613         (_INTVARDEF): Likewise.
25614         (INTDEF2): Likewise.
25615         (INTVARDEF2): Likewise.
25616         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25617         rtld_hidden_def instead of INTVARDEF.
25618         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25619         (_dl_starting_up_internal): Remove declaration.
25620         (_dl_starting_up): Use rtld_hidden_proto.
25621         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25622         declaration.
25623         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25624         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25625         _dl_starting_up.
25626         * elf/dl-writev.h (_dl_writev): Likewise.
25627         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25628         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25629         _dl_starting_up_internal.
25630
25631 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25632
25633         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25634         test-skeleton.c.
25635
25636 2014-11-05  Will Newton  <will.newton@linaro.org>
25637
25638         * benchtests/Makefile: (bench-malloc): Add malloc thread
25639         scalability benchmark.
25640         * benchtests/bench-malloc-threads.c: New file.
25641
25642 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25643
25644         * sysdeps/aarch64/strchrnul.S: New file.
25645
25646 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25647
25648         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25649         definition.
25650         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25651         Likwise.
25652         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25653         Likewise.
25654         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25655         Likewise.
25656         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25657         Likewise.
25658         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25659         Likewise.
25660
25661 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25662
25663         * catgets/test-gencat.c: Use test-skeleton.c.
25664         * catgets/tst-catgets.c: Likewise.
25665         * csu/tst-empty.c: Likewise.
25666         * elf/tst-audit2.c: Likewise.
25667         * elf/tst-global1.c: Likewise.
25668         * elf/tst-pathopt.c: Likewise.
25669         * elf/tst-piemod1.c: Likewise.
25670         * elf/tst-tls10.c: Likewise.
25671         * elf/tst-tls11.c: Likewise.
25672         * elf/tst-tls12.c: Likewise.
25673         * gnulib/tst-gcc.c: Likewise.
25674         * iconvdata/tst-e2big.c: Likewise.
25675         * iconvdata/tst-loading.c: Likewise.
25676         * iconv/tst-iconv1.c: Likewise.
25677         * iconv/tst-iconv2.c: Likewise.
25678         * inet/test-inet6_opt.c: Likewise.
25679         * inet/tst-gethnm.c: Likewise.
25680         * inet/tst-network.c: Likewise.
25681         * inet/tst-ntoa.c: Likewise.
25682         * intl/tst-codeset.c: Likewise.
25683         * intl/tst-gettext2.c: Likewise.
25684         * intl/tst-gettext3.c: Likewise.
25685         * intl/tst-ngettext.c: Likewise.
25686         * intl/tst-translit.c: Likewise.
25687         * io/test-stat.c: Likewise.
25688         * libio/test-fmemopen.c: Likewise.
25689         * libio/tst-freopen.c: Likewise.
25690         * libio/tst-sscanf.c: Likewise.
25691         * libio/tst-ungetwc1.c: Likewise.
25692         * libio/tst-ungetwc2.c: Likewise.
25693         * libio/tst-widetext.c: Likewise.
25694         * localedata/tst-ctype.c: Likewise.
25695         * localedata/tst-digits.c: Likewise.
25696         * localedata/tst-leaks.c: Likewise.
25697         * localedata/tst-mbswcs1.c: Likewise.
25698         * localedata/tst-mbswcs2.c: Likewise.
25699         * localedata/tst-mbswcs3.c: Likewise.
25700         * localedata/tst-mbswcs4.c: Likewise.
25701         * localedata/tst-mbswcs5.c: Likewise.
25702         * localedata/tst-setlocale.c: Likewise.
25703         * localedata/tst-trans.c: Likewise.
25704         * localedata/tst-wctype.c: Likewise.
25705         * localedata/tst-xlocale1.c: Likewise.
25706         * login/tst-grantpt.c: Likewise.
25707         * malloc/tst-calloc.c: Likewise.
25708         * malloc/tst-malloc.c: Likewise.
25709         * malloc/tst-mallocstate.c: Likewise.
25710         * malloc/tst-mcheck.c: Likewise.
25711         * malloc/tst-mtrace.c: Likewise.
25712         * malloc/tst-obstack.c: Likewise.
25713         * math/atest-exp2.c: Likewise.
25714         * math/atest-exp.c: Likewise.
25715         * math/atest-sincos.c: Likewise.
25716         * math/test-matherr.c: Likewise.
25717         * math/test-misc.c: Likewise.
25718         * math/test-powl.c: Likewise.
25719         * math/tst-definitions.c: Likewise.
25720         * misc/tst-dirname.c: Likewise.
25721         * misc/tst-efgcvt.c: Likewise.
25722         * misc/tst-fdset.c: Likewise.
25723         * misc/tst-hsearch.c: Likewise.
25724         * misc/tst-mntent2.c: Likewise.
25725         * nptl/tst-sem7.c: Likewise.
25726         * nptl/tst-sem8.c: Likewise.
25727         * nptl/tst-sem9.c: Likewise.
25728         * nss/test-netdb.c: Likewise.
25729         * posix/tst-fnmatch.c: Likewise.
25730         * posix/tst-getlogin.c: Likewise.
25731         * posix/tst-gnuglob.c: Likewise.
25732         * posix/tst-mmap.c: Likewise.
25733         * pwd/tst-getpw.c: Likewise.
25734         * resolv/tst-inet_ntop.c: Likewise.
25735         * rt/tst-timer.c: Likewise.
25736         * stdio-common/test-fseek.c: Likewise.
25737         * stdio-common/test-popen.c: Likewise.
25738         * stdio-common/test-vfprintf.c: Likewise.
25739         * stdio-common/tst-cookie.c: Likewise.
25740         * stdio-common/tst-fileno.c: Likewise.
25741         * stdio-common/tst-gets.c: Likewise.
25742         * stdio-common/tst-obprintf.c: Likewise.
25743         * stdio-common/tst-perror.c: Likewise.
25744         * stdio-common/tst-sprintf2.c: Likewise.
25745         * stdio-common/tst-sprintf3.c: Likewise.
25746         * stdio-common/tst-sprintf.c: Likewise.
25747         * stdio-common/tst-swprintf.c: Likewise.
25748         * stdio-common/tst-tmpnam.c: Likewise.
25749         * stdio-common/tst-unbputc.c: Likewise.
25750         * stdio-common/tst-wc-printf.c: Likewise.
25751         * stdlib/tst-environ.c: Likewise.
25752         * stdlib/tst-fmtmsg.c: Likewise.
25753         * stdlib/tst-limits.c: Likewise.
25754         * stdlib/tst-rand48-2.c: Likewise.
25755         * stdlib/tst-rand48.c: Likewise.
25756         * stdlib/tst-random2.c: Likewise.
25757         * stdlib/tst-random.c: Likewise.
25758         * stdlib/tst-strtol.c: Likewise.
25759         * stdlib/tst-strtoll.c: Likewise.
25760         * stdlib/tst-tls-atexit.c: Likewise.
25761         * stdlib/tst-xpg-basename.c: Likewise.
25762         * string/test-ffs.c: Likewise.
25763         * string/tst-bswap.c: Likewise.
25764         * string/tst-inlcall.c: Likewise.
25765         * string/tst-strtok.c: Likewise.
25766         * string/tst-strxfrm.c: Likewise.
25767         * sysdeps/x86_64/tst-audit10.c: Likewise.
25768         * sysdeps/x86_64/tst-audit3.c: Likewise.
25769         * sysdeps/x86_64/tst-audit4.c: Likewise.
25770         * sysdeps/x86_64/tst-audit5.c: Likewise.
25771         * time/tst-ftime_l.c: Likewise.
25772         * time/tst-getdate.c: Likewise.
25773         * time/tst-mktime3.c: Likewise.
25774         * time/tst-mktime.c: Likewise.
25775         * time/tst-posixtz.c: Likewise.
25776         * time/tst-strptime2.c: Likewise.
25777         * time/tst-strptime3.c: Likewise.
25778         * wcsmbs/tst-btowc.c: Likewise.
25779         * wcsmbs/tst-mbrtowc.c: Likewise.
25780         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25781         * wcsmbs/tst-wchar-h.c: Likewise.
25782         * wcsmbs/tst-wcpncpy.c: Likewise.
25783         * wcsmbs/tst-wcrtomb.c: Likewise.
25784         * wcsmbs/tst-wcsnlen.c: Likewise.
25785         * wcsmbs/tst-wcstof.c: Likewise.
25786
25787 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25788
25789         [BZ #14132]
25790         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25791         INTDEF.
25792         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25793         declaration.
25794         (_dl_mcount): Use rtld_hidden_proto.
25795         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25796         _dl_mcount.
25797         * elf/rtld.c (_rtld_global_ro): Likewise.
25798
25799         [BZ #14132]
25800         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25801         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25802         of _dl_init_internal.
25803         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25804         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25805         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25806         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25807         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25808         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25809         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25810         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25811         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25812         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25813         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25814         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25815         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25816         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25817         * sysdeps/tile/dl-start.S (_start): Likewise.
25818         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25819         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25820
25821         [BZ #14132]
25822         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25823         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25824         (rtld_progname): Make macro definition unconditional.
25825         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25826         INTDEF.
25827         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25828         (dl_main): Likewise.
25829         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25830         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25831         instead of _dl_argv_internal.
25832         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25833         __GI__dl_argv instead of INTUSE(_dl_argv).
25834         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25835         __GI__dl_argv instead of _dl_argv_internal.
25836
25837         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25838         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25839         macro.
25840         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25841         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25842         New macro.
25843         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25844         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25845         macro.
25846         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25847         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25848
25849 2014-11-04  Andreas Schwab  <schwab@suse.de>
25850
25851         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25852
25853 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25854
25855         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25856         mtvsrd instruction in binary form.
25857
25858 2014-11-03  Andreas Schwab  <schwab@suse.de>
25859
25860         [BZ #17522]
25861         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25862         for less than MB_LEN_MAX use a local buffer of that size.
25863         * libio/tst-fputws.c: New file.
25864         * libio/Makefile (tests): Add tst-fputws.
25865
25866 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25867
25868         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25869         the size of the fpu_fr.fpu_dregs[] array.
25870
25871 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25872
25873         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25874         (__nanosleep): Do not define as alias.
25875         (nanosleep): Define as alias of __nanosleep.
25876         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25877         __libc_nanosleep name.
25878
25879 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25880
25881         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25882         install.texi in comment.
25883
25884 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25885
25886         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25887         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25888         ... add here and use lwsync or sync ...
25889         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25890         ... and add here using lwsync.
25891
25892 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25893
25894         * elf/dl-machine-reject-phdr.h: New file.
25895         * elf/dl-load.c: #include that.
25896         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25897         if that returned true.
25898
25899 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25900
25901         [BZ #17496]
25902         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25903         gen-as-const-headers chunk.  Add a big scare comment after the last
25904         safe place to touch before-compile.
25905
25906 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25907
25908         * manual/install.texi (Tools for Compilation): Update autoconf
25909         version requirements.
25910         * INSTALL: Regenerated.
25911
25912         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25913         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25914         (__libc_pselect): Likewise.
25915
25916         [BZ #14138]
25917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25921
25922 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25923
25924         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25925         correct barrier instruction.
25926         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25927         Likewise.
25928         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25929         Likewise.
25930
25931 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25932
25933         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25934         after defining inlines.  Instead, just use parens to defeat macro
25935         expansion of __isctype in its declaration.
25936
25937 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25938
25939         * include/sys/uio.h (__libc_readv): Remove declaration.
25940         (__libc_writev): Likewise.
25941         * misc/readv.c (__libc_readv): Rename to __readv.
25942         (__readv): Do not define as alias.
25943         (readv): Define as alias of __readv.
25944         * misc/writev.c (__libc_writev): Rename to __writev.
25945         (__writev): Do not define as alias.
25946         (writev): Define as alias of __writev.
25947         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25948         (__readv): Do not define as alias.
25949         (readv): Define unconditionally as alias of __readv.
25950         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25951         (__writev): Do not define as alias.
25952         (writev): Define unconditionally as alias of __writev.
25953         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25954         name.
25955         (writev): Do not define __libc_writev name.
25956
25957 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25958
25959         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25960         (convert_charseq): New function, broken out of ...
25961         (use_from_charmap): ... here.  Call it.
25962         (use_to_charmap): Use convert_charseq and free instead of duplicating
25963         its code with a variable-length stack struct.
25964
25965 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25966
25967         * include/fcntl.h (__libc_creat): Remove declaration.
25968         * io/creat.c (__libc_creat): Rename to creat.
25969         (creat): Do not define as alias.
25970         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25971         of creat instead of __libc_creat.
25972         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25973         to creat.
25974         (creat): Do not define as alias.
25975         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25976         __libc_creat.
25977         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25978         __libc_creat name.
25979         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25980         Likewise.
25981
25982 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25983
25984         * manual/llio.texi: Add comments discussing why write() may be
25985         considered MT-unsafe on Linux.
25986
25987 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25988
25989         * dl-load.c (local_strdup): Remove.
25990         (expand_dynamic_string_token): Use __strdup.
25991         (decompose_rpath): Likewise.
25992         (_dl_map_object): Likewise.
25993
25994 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25995
25996         [BZ #14132]
25997         * sysdeps/generic/unwind-dw2-fde.c
25998         (__register_frame_info_bases_internal): Do not declare.
25999         (__register_frame_info_table_bases_internal): Likewise.
26000         (__deregister_frame_info_bases_internal): Likewise.
26001         (__register_frame_info_bases): Declare and use hidden_proto before
26002         definition.  Use hidden_def instead of INTDEF.
26003         (__register_frame_info_table_bases): Likewise.
26004         (__deregister_frame_info_bases): Likewise.
26005         (__register_frame_info): Do not use INTUSE.
26006         (__register_frame): Likewise.
26007         (__register_frame_info_table): Likewise.
26008         (__register_frame_table): Likewise.
26009         (__deregister_frame_info): Likewise.
26010         (__deregister_frame): Likewise.
26011
26012 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
26013
26014         * sysdeps/unix/sysv/linux/arm/kernel-features.h
26015         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
26016         not undefine.
26017         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
26018         Likewise.
26019         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
26020         Likewise.
26021
26022 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
26023
26024         [BZ #14138]
26025         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
26026         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
26027         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
26028         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
26029         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
26030         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
26031         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
26032         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
26033         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
26034         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
26035         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
26036         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
26037         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
26038         syscall.
26039         (setfsuid): Likewise.
26040         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
26041         (setfsuid): Likewise.
26042         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
26043         (setfsuid): Likewise.
26044         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
26045         Likewise.
26046         (setfsuid): Likewise.
26047         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
26048         (setfsuid): Likewise.
26049         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
26050         Likewise.
26051         (setfsuid): Likewise.
26052
26053 2014-10-27  Andreas Schwab  <schwab@suse.de>
26054
26055         [BZ #17501]
26056         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
26057         check for Slow_SSE4_2 feature bit.
26058         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
26059         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
26060         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
26061         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
26062
26063 2014-10-24  Roland McGrath  <roland@hack.frob.com>
26064
26065         * configure.ac: Validate compiler version with a empirical test of
26066         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
26067         $CC -v output.
26068         * configure: Regenerated.
26069
26070         * inet/htons.c (htons): Prototypify.
26071         * inet/htonl.c (htonl): Likewise.
26072
26073 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26074
26075         * string/strncat.c (strncat): Improve performance by using strlen.
26076
26077 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26078
26079         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
26080
26081 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26082
26083         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
26084         Call libc_fetestexcept_aarch64.
26085
26086 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26087
26088         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
26089         Call libc_feholdexcept_aarch64.
26090
26091 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26092
26093         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
26094         Call get_rounding_mode.
26095
26096 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26097
26098         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
26099         Simplify logic.
26100
26101 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26102
26103         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
26104         Simplify logic.
26105
26106 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
26107
26108         [BZ #14138]
26109         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
26110         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
26111         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
26112         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
26113         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
26114         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
26115         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
26116         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
26117         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
26118         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
26119         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
26120         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
26121         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
26122         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
26123         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
26124         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
26125         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
26126         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
26127         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
26128         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
26129         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
26130         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
26131         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
26132         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
26133         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
26134         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
26135         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
26136         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
26137         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
26138         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
26139         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
26140         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
26141         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
26142         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
26143         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
26144         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
26145         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
26146         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
26147         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
26148         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
26149         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
26150         syscall.
26151         (geteuid): Likewise.
26152         (getgid): Likewise.
26153         (getuid): Likewise.
26154         (getresgid): Likewise.
26155         (getresuid): Likewise.
26156         (getgroups): Likewise.
26157         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
26158         (geteuid): Likewise.
26159         (getgid): Likewise.
26160         (getuid): Likewise.
26161         (getresgid): Likewise.
26162         (getresuid): Likewise.
26163         (getgroups): Likewise.
26164         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
26165         (geteuid): Likewise.
26166         (getgid): Likewise.
26167         (getuid): Likewise.
26168         (getresgid): Likewise.
26169         (getresuid): Likewise.
26170         (getgroups): Likewise.
26171         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
26172         Likewise.
26173         (geteuid): Likewise.
26174         (getgid): Likewise.
26175         (getuid): Likewise.
26176         (getresgid): Likewise.
26177         (getresuid): Likewise.
26178         (getgroups): Likewise.
26179         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
26180         (geteuid): Likewise.
26181         (getgid): Likewise.
26182         (getuid): Likewise.
26183         (getresgid): Likewise.
26184         (getresuid): Likewise.
26185         (getgroups): Likewise.
26186         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
26187         Likewise.
26188         (geteuid): Likewise.
26189         (getgid): Likewise.
26190         (getuid): Likewise.
26191         (getgroups): Likewise.
26192
26193         [BZ #14138]
26194         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
26195         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
26196         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
26197         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
26198         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
26199         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
26200         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
26201         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
26202         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
26203         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
26204         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
26205         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
26206         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
26207         __chown.
26208         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
26209         (lchown): Likewise.
26210         (fchown): Likewise.
26211         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
26212         Likewise.
26213         (lchown): Likewise.
26214         (fchown): Likewise.
26215         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
26216         (lchown): Likewise.
26217         (fchown): Likewise.
26218         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
26219         Likewise.
26220         (lchown): Likewise.
26221         (fchown): Likewise.
26222
26223 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26224
26225         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
26226         Simplify logic.
26227
26228 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26229
26230         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26231         Cleanup logic.
26232
26233 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26234
26235         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26236         Remove unused include.
26237
26238 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26239
26240         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
26241         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
26242         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
26243         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
26244
26245 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
26246             Helge Deller <deller@gmx.de>
26247
26248         [BZ #17508]
26249         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
26250         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
26251         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
26252
26253 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
26254
26255         [BZ #14132]
26256         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
26257         Remove macro definition.
26258         (__ashrdi3_v_glibc20): Likewise.
26259         (__lshrdi3_v_glibc20): Likewise.
26260         (__cmpdi2_v_glibc20): Likewise.
26261         (__ucmpdi2_v_glibc20): Likewise.
26262         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
26263         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
26264         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
26265         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
26266         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
26267         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
26268
26269 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26270
26271         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
26272         old GNU extension [0] syntax.
26273         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
26274         alloca rather than an array member with variable length.
26275         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
26276         * nscd/nscd.c (invalidate_db): New function, broken out of ...
26277         (parse_opt): ... here.  Likewise use alloca there.
26278         Validate the -i argument before checking for rootness.
26279         (send_shutdown): New function, broken out of ...
26280         (parse_opt): ... here.
26281
26282 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26283
26284         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
26285         macro to get at the _rt_local_ro field.
26286         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
26287         ([PIC] case) or _dl_hwcap ([!PIC] case).
26288         * sysdeps/arm/setjmp.S: Likewise.
26289
26290         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
26291         * sysdeps/arm/configure.ac: New check to define it.
26292         * sysdeps/arm/configure: Regenerated.
26293         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
26294         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
26295         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
26296         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
26297         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
26298         Use move/movt pair instead of a load.
26299         (LDST_GLOBAL): Macro removed.
26300         (LDR_GLOBAL): New macro replaces it.
26301         (LDR_HIDDEN): New macro.
26302         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
26303         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
26304
26305         * setjmp/tst-setjmp-static.c: New file.
26306         * setjmp/Makefile (tests): Add it.
26307         (tests-static): New variable.
26308
26309 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
26310
26311         [BZ #17485]
26312         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
26313
26314 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
26315
26316         [BZ #14132]
26317         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
26318
26319 2014-10-21  Roland McGrath  <roland@hack.frob.com>
26320
26321         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
26322
26323 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26324
26325         * io/fts.c (dirent_not_directory): New function.
26326         (fts_build): Call it.
26327
26328 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26329
26330         * nptl/version.c (__nptl_main): Use normal __write rather than
26331         INTERNAL_SYSCALL.
26332         (banner): Update copyright years.
26333
26334         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
26335         gettimeofday.
26336         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
26337         * nptl/pthread_cond_timedwait.c: Likewise.
26338         * nptl/pthread_mutex_timedlock.c: Likewise.
26339         * nptl/sem_timedwait.c: Likewise.
26340
26341         * sysdeps/nptl/bits/libc-lock.h
26342         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
26343         (__libc_lock_init_recursive): Return void, not 0.
26344         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
26345         (__libc_rwlock_init): Likewise.
26346         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
26347
26348 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26349
26350         [BZ #15215]
26351         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
26352         (__pthread_once_slow): ... here.
26353         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
26354         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
26355
26356 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26357
26358         [BZ #15215]
26359         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
26360         __PTHREAD_ONCE_FORK_GEN_INCR): New.
26361         * sysdeps/nptl/fork.c (__libc_fork): Use them.
26362         * nptl/pthread_once.c (__pthread_once): Likewise.
26363         Update comments.
26364
26365 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26366
26367         [BZ #14138]
26368         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26369         name.
26370         (writev): Use __libc_writev as strong name.
26371         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26372         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26373
26374 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26375
26376         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26377
26378         * sysdeps/i386/nptl/tls.h
26379         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26380         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26381         New macros.
26382         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26383         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26384         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26385         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26386         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26387         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26388
26389         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26390         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26391         on [__NR_futex].
26392         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26393         broken out of ...
26394         (__pthread_mutex_init): ... here.  Call it.
26395         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26396         Conditionalize PI cases on [__NR_futex].
26397         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26398         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26399         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26400
26401         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26402         conditional on [SIGSETXID].
26403         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26404         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26405         is defined.  Likewise for SIGSETXID.
26406         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26407         Conditionalize definitions on [SIGSETXID].
26408         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26409         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26410         unblocking on [SIGCANCEL].
26411
26412         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26413         [__NR_set_robust_list].
26414
26415 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26416
26417         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26418         (do_compare): Likewise.
26419
26420 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26421
26422         [BZ #15884]
26423         * string/strcoll_l.c: Don't include stdio.h.
26424         (coll_seq): Remove members idxarr and rulearr.
26425         (get_next_seq_cached): Remove function.
26426         (get_next_seq): Likewise.
26427         (get_next_seq_nocache): Rename to get_next_seq.
26428         (do_compare): Remove function.
26429         (do_compare_nocache): Rename to do_compare.
26430         (STRCOLL): Remove weight and rules cache.
26431
26432 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26433
26434         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26435         * sysdeps/arm/sfp-machine.h: ... to here.
26436         * sysdeps/arm/Implies: Remove arm/soft-fp.
26437
26438 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26439
26440         * conform/data/sys/utsname.h-data (*_t): Allow.
26441         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26442         [POSIX] (WEXITED): Do not expect constant.
26443         [POSIX] (WSTOPPED): Likewise.
26444         [POSIX] (WNOHANG): Likewise.
26445         [POSIX] (WNOWAIT): Likewise.
26446         [POSIX] (siginfo_t): Do not expect type or elements.
26447         [POSIX] (pid_t): Do not expect type.
26448         [POSIX] (signal.h): Do not allow header.
26449         [POSIX] (sys/resource.h): Likewise.
26450         [POSIX] (si_*): Do not allow pattern.
26451         [POSIX] (W*): Likewise.
26452         [POSIX] (P_*): Likewise.
26453         [POSIX] (BUS_*): Likewise.
26454         [POSIX] (CLD_*): Likewise.
26455         [POSIX] (FPE_*): Likewise.
26456         [POSIX] (ILL_*): Likewise.
26457         [POSIX] (POLL_*): Likewise.
26458         [POSIX] (SEGV_*): Likewise.
26459         [POSIX] (SI_*): Likewise.
26460         [POSIX] (TRAP_*): Likewise.
26461         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26462         variable.
26463
26464 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26465
26466         [BZ #12926]
26467         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26468         infinite loop when __recvmsg returns 0.
26469
26470 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26471
26472         * CANCEL-FCT-WAIVE: Remove file.
26473         * CANCEL-FILE-WAIVE: Likewise.
26474
26475         [BZ #14132]
26476         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26477         instead of INTVARDEF.
26478         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26479         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26480         rtld_hidden_data_def instead of INTVARDEF.
26481         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26482         * elf/dl-deps.c (expand_dst): Likewise.
26483         * elf/dl-load.c (_dl_dst_count): Likewise.
26484         (_dl_dst_substitute): Likewise.
26485         (decompose_rpath): Likewise.
26486         (_dl_init_paths): Likewise.
26487         (open_path): Likewise.
26488         (_dl_map_object): Likewise.
26489         * elf/rtld.c (dl_main): Likewise.
26490         (process_dl_audit): Likewise.
26491         (process_envvars): Likewise.
26492         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26493         Remove declaration.
26494         (__libc_enable_secure): Use rtld_hidden_proto.
26495
26496 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26497
26498         * elf/dl-load.c
26499         (add_path): New function broken out of _dl_rtld_di_serinfo.
26500         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26501
26502 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26503
26504         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26505         parentheses around macro arguments.
26506         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26507         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26508         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26509         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26510         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26511         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26512         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26513         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26514         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26515         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26516         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26517         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26518         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26519         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26520         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26521         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26522         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26523         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26524         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26525         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26526         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26527         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26528         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26529         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26530         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26531         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26532         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26533         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26534         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26535         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26536         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26537         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26538         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26539         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26540         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26541         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26542         Likewise.
26543         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26544         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26545         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26546         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26547         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26548         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26549         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26550         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26551         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26552         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26553         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26554         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26555         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26556         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26557         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26558         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26559         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26560         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26561         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26562         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26563         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26564         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26565         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26566         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26567         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26568         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26569         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26570         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26571         (_FP_FRAC_SRS_1): Likewise.
26572         (_FP_FRAC_CLZ_1): Likewise.
26573         (_FP_MUL_MEAT_1_imm): Likewise.
26574         (_FP_MUL_MEAT_1_wide): Likewise.
26575         (_FP_MUL_MEAT_1_hard): Likewise.
26576         (_FP_SQRT_MEAT_1): Likewise.
26577         (_FP_FRAC_ASSEMBLE_1): Likewise.
26578         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26579         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26580         (__FP_CLZ_2): Likewise.
26581         (_FP_MUL_MEAT_2_wide): Likewise.
26582         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26583         (_FP_MUL_MEAT_2_gmp): Likewise.
26584         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26585         (_FP_SQRT_MEAT_2): Likewise.
26586         (_FP_FRAC_ASSEMBLE_2): Likewise.
26587         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26588         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26589         (_FP_FRAC_CLZ_4): Likewise.
26590         (_FP_MUL_MEAT_4_wide): Likewise.
26591         (_FP_MUL_MEAT_4_gmp): Likewise.
26592         (_FP_SQRT_MEAT_4): Likewise.
26593         (_FP_FRAC_ASSEMBLE_4): Likewise.
26594         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26595         * soft-fp/op-common.h (_FP_CMP): Likewise.
26596         (_FP_CMP_EQ): Likewise.
26597         (_FP_CMP_UNORD): Likewise.
26598         (_FP_TO_INT): Likewise.
26599         (_FP_FROM_INT): Likewise.
26600         [!__FP_CLZ] (__FP_CLZ): Likewise.
26601         (_FP_DIV_HELP_imm): Likewise.
26602         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26603         Likewise.
26604         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26605         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26606         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26607         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26608         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26609         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26610         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26611         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26612         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26613         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26614         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26615         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26616         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26617         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26618         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26619         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26620         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26621         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26622         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26623         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26624         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26625         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26626         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26627         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26628         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26629         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26630         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26631         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26632         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26633         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26634         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26635         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26636         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26637         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26638         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26639         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26640         (FP_UNPACK_RAW_SP): Likewise.
26641         (FP_PACK_RAW_S): Likewise.
26642         (FP_PACK_RAW_SP): Likewise.
26643         (FP_UNPACK_S): Likewise.
26644         (FP_UNPACK_SP): Likewise.
26645         (FP_UNPACK_SEMIRAW_S): Likewise.
26646         (FP_UNPACK_SEMIRAW_SP): Likewise.
26647         (FP_PACK_S): Likewise.
26648         (FP_PACK_SP): Likewise.
26649         (FP_PACK_SEMIRAW_S): Likewise.
26650         (FP_PACK_SEMIRAW_SP): Likewise.
26651         (_FP_SQRT_MEAT_S): Likewise.
26652         (FP_CMP_S): Likewise.
26653         (FP_CMP_EQ_S): Likewise.
26654         (FP_CMP_UNORD_S): Likewise.
26655         (FP_TO_INT_S): Likewise.
26656         (FP_FROM_INT_S): Likewise.
26657
26658         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26659
26660         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26661         (FP_EX_INVALID_IMZ): Likewise.
26662         (FP_EX_INVALID_IMZ_FMA): Likewise.
26663         (FP_EX_INVALID_ISI): Likewise.
26664         (FP_EX_INVALID_ZDZ): Likewise.
26665         (FP_EX_INVALID_IDI): Likewise.
26666         (FP_EX_INVALID_SQRT): Likewise.
26667         (FP_EX_INVALID_CVI): Likewise.
26668         (FP_EX_INVALID_VC): Likewise.
26669         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26670         "invalid" exceptions.
26671         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26672         (_FP_ADD_INTERNAL): Likewise.
26673         (_FP_MUL): Likewise.
26674         (_FP_FMA): Likewise.
26675         (_FP_DIV): Likewise.
26676         (_FP_CMP_CHECK_NAN): Likewise.
26677         (_FP_SQRT): Likewise.
26678         (_FP_TO_INT): Likewise.
26679         (FP_EXTEND): Likewise.
26680
26681 2014-10-09  Allan McRae  <allan@archlinux.org>
26682
26683         * po/fr.po: Update French translation from translation project.
26684
26685 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26686
26687         [BZ #14132]
26688         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26689         of INTDEF.
26690         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26691         (__cxa_atexit): Use libc_hidden_proto.
26692         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26693
26694         [BZ #14132]
26695         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26696         declaration.
26697         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26698         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26699         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26700         [!_ISOMAC] (__iswctype_internal): Likewise.
26701         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26702         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26703         alias.
26704         (fcntl): Remove __fcntl_internal alias.
26705         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26706         __connect_internal alias.
26707         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26708         Likewise.
26709
26710         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26711         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26712         FP_DENORM_ZERO.
26713         (_FP_CHECK_FLUSH_ZERO): New macro.
26714         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26715         (_FP_CMP): Likewise.
26716         (_FP_CMP_EQ): Likewise.
26717         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26718         FP_DENORM_ZERO.
26719         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26720         (FP_TRUNC): Likewise.
26721
26722         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26723         treated as invalid conversion, not as normal exponent.
26724
26725         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26726         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26727         (_FP_CMP_EQ): Likewise.
26728         (_FP_CMP_UNORD): Likewise.
26729         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26730         (FP_CMP_EQ_D): Likewise.
26731         (FP_CMP_UNORD_D): Likewise.
26732         * soft-fp/extended.h (FP_CMP_E): Likewise.
26733         (FP_CMP_EQ_E): Likewise.
26734         (FP_CMP_UNORD_E): Likewise.
26735         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26736         (FP_CMP_EQ_Q): Likewise.
26737         (FP_CMP_UNORD_Q): Likewise.
26738         * soft-fp/single.h (FP_CMP_S): Likewise.
26739         (FP_CMP_EQ_S): Likewise.
26740         (FP_CMP_UNORD_S): Likewise.
26741         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26742         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26743         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26744         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26745         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26746         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26747         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26748         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26749         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26750         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26751         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26752         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26753         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26754         to FP_CMP_Q.
26755         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26756         FP_CMP_Q.
26757         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26758         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26759         FP_CMP_EQ_Q.
26760         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26761         FP_CMP_Q.
26762         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26763         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26764         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26765         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26766         FP_CMP_EQ_Q.
26767         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26768         FP_CMP_Q.
26769         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26770         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26771         FP_CMP_EQ_Q.
26772         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26773         FP_CMP_Q.
26774         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26775         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26776         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26777         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26778         FP_CMP_EQ_Q.
26779
26780         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26781         a subnormal result, set the underflow exception if trapping on
26782         underflow is enabled.
26783         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26784         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26785         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26786         redefine to 0.
26787         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26788         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26789         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26790         * soft-fp/extendxftf2.c (__extendxftf2): Use
26791         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26792
26793         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26794         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26795         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26796         FP_HANDLE_EXCEPTIONS.
26797         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26798         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26799         FP_HANDLE_EXCEPTIONS.
26800         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26801         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26802         FP_HANDLE_EXCEPTIONS.
26803         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26804         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26805         FP_HANDLE_EXCEPTIONS.
26806
26807 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26808
26809         [BZ #14132]
26810         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26811         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26812         use INTUSE.
26813         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26814         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26815         Remove alias.
26816         (__adjtimex): Define using libc_hidden_ver.
26817         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26818         Remove declaration.
26819         (ntp_gettime): Call __adjtimex directly.
26820         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26821         Remove declaration.
26822         (ntp_gettimex): Call __adjtimex directly.
26823         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26824         __adjtimex_internal alias.
26825
26826 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26827
26828         [BZ #17460]
26829         * nscd/nscd.c (more_help): Rewrite list of tables collection
26830         using xstrdup and asprintf.
26831
26832         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26833
26834 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26835             Roland McGrath  <roland@hack.frob.com>
26836
26837         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26838         (do_lookup_unique): ... local function 'enter' here; update callers.
26839
26840 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26841
26842         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26843         compat_symbol calls on [SHARED].
26844         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26845         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26846         Remove.
26847         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26848         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26849         (oldsetrlimit): Remove.
26850         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26852         (lchown): New syscall entry.
26853         (oldsetrlimit): Remove.
26854         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26855         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26856         (oldsetrlimit): Remove.
26857         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26858
26859         [BZ #14138]
26860         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26861         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26862         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26863         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26864         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26865         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26866         (fchown): Likewise.
26867         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26868         (fchown): Likewise.
26869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26870         Likewise.
26871
26872 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26873
26874         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26875         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26876         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26877         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26878         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26879         Likewise.
26880         (__old_sem_post): Likewise.
26881
26882 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26883
26884         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26885         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26886         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26887         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26888         Use INLINE_VSYSCALL macro.
26889         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26890         __vdso_clock_gettime.
26891         * sysdeps/unix/sysv/linux/tile/init-first.c
26892         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26893         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26894         __vdso_clock_gettime.
26895
26896         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26897         to set up frame more cleanly.
26898
26899         * sysdeps/tile/memcmp.c: New file.
26900
26901         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26902
26903         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26904         * sysdeps/tile/tilegx/strcasestr.c: New file.
26905         * sysdeps/tile/tilegx/strnlen.c: New file.
26906         * sysdeps/tile/tilegx/strstr.c: New file.
26907
26908         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26909
26910 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26911
26912         * nptl/tst-setuid3.c: Write errors to stdout.
26913
26914 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26915
26916         * elf/dl-deps.c
26917         (preload): New functions broken out of _dl_map_object_deps.
26918         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26919
26920 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26921
26922         [BZ #14138]
26923         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26924         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26925
26926 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26927
26928         * sysdeps/mips/strcmp.S: New.
26929
26930 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26931
26932         [BZ #14138]
26933         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26934         (linkat): Likewise.
26935         (mkdirat): Likewise.
26936         (readlinkat): Likewise.
26937         (renameat): Likewise.
26938         (symlinkat): Likewise.
26939         (unlinkat): Likewise.
26940         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26941         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26942         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26943         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26944         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26945         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26946         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26947
26948 2014-09-30  Will Newton  <will.newton@linaro.org>
26949
26950         * math/math.h: Define long double math functions if
26951         _LIBC_TEST is defined.
26952         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26953
26954         * localedata/Makefile: Move assignment to tests-special
26955         into an ifdef testing run-built-tests.
26956         * timezone/Makefile: Likewise.
26957
26958 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26959
26960         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26961         with $(BASH) not $(SHELL).
26962
26963 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26964             Matthew LeGendre  <legendre1@llnl.gov>
26965
26966         [BZ #17411]
26967         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26968         l_reloc_result.
26969
26970 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26971
26972         * stdio-common/printf_fp.c
26973         (hack_digit): New function, broken out of ...
26974         (__printf_fp): ... local function here.  Update call sites.
26975         hack_digit now takes an additional parameter that is a pointer
26976         to a struct of the referenced locals.  Those locals moved inside
26977         the struct and references updated.
26978
26979 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26980
26981         * aclocal.m4: Require autoconf 2.69.
26982         * configure: Regenerated.
26983         * sysdeps/aarch64/configure: Likewise.
26984         * sysdeps/alpha/configure: Likewise.
26985         * sysdeps/arm/armv7/configure: Likewise.
26986         * sysdeps/arm/configure: Likewise.
26987         * sysdeps/ia64/configure: Likewise.
26988         * sysdeps/mach/configure: Likewise.
26989         * sysdeps/mips/configure: Likewise.
26990         * sysdeps/s390/configure: Likewise.
26991         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26993
26994         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26995         file.
26996         * sysdeps/ia64/configure.ac: Likewise.
26997
26998 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26999
27000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
27001         specify symbol version for ld.so.  Do not include entry for
27002         libpthread.
27003         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27004         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27005         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27006
27007         [BZ #14171]
27008         * Makeconfig [$(build-shared) = yes]
27009         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
27010         makefiles.
27011         [$(build-shared) = yes && $(soversions.mk-done) = t]
27012         ($(common-objpfx)gnu/lib-names.h): Remove rule.
27013         [$(build-shared) = yes && $(soversions.mk-done) = t]
27014         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
27015         to Makerules.
27016         [$(build-shared) = yes && $(soversions.mk-done) = t]
27017         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
27018         here.
27019         [$(build-shared) = yes && $(soversions.mk-done) = t]
27020         (common-generated): Don't append gnu/lib-names.h and
27021         gnu/lib-names.stmp here.
27022         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
27023         (lib-names-h-abi): New variable.
27024         [$(build-shared) = yes && $(soversions.mk-done) = t]
27025         (lib-names-stmp-abi): Likewise.
27026         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27027         abi-variants] (before-compile): Append
27028         $(common-objpfx)$(lib-names-h-abi).
27029         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27030         abi-variants] (common-generated): Append gnu/lib-names.h.
27031         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27032         abi-variants] (install-others-nosubdir): Depend on
27033         $(inst_includedir)/$(lib-names-h-abi).
27034         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27035         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
27036         [$(build-shared) = yes && $(soversions.mk-done) = t]
27037         ($(common-objpfx)$(lib-names-h-abi)): New rule.
27038         [$(build-shared) = yes && $(soversions.mk-done) = t]
27039         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
27040         [$(build-shared) = yes && $(soversions.mk-done) = t]
27041         (common-generated): Append $(lib-names-h-abi) and
27042         $(lib-names-stmp-abi).
27043         * scripts/lib-names.awk: Do not handle multi being set.
27044         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
27045         Remove variable.
27046         (abi-lp64_be-ld-soname): Likewise.
27047         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
27048         Likewise.
27049         (abi-hard-ld-soname): Likewise.
27050         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
27051         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
27052         Remove variable.
27053         (abi-o32_hard-ld-soname): Likewise.
27054         (abi-o32_soft_2008-ld-soname): Likewise.
27055         (abi-o32_hard_2008-ld-soname): Likewise.
27056         (abi-n32_soft-ld-soname): Likewise.
27057         (abi-n32_hard-ld-soname): Likewise.
27058         (abi-n32_soft_2008-ld-soname): Likewise.
27059         (abi-n32_hard_2008-ld-soname): Likewise.
27060         (abi-n64_soft-ld-soname): Likewise.
27061         (abi-n64_hard-ld-soname): Likewise.
27062         (abi-n64_soft_2008-ld-soname): Likewise.
27063         (abi-n64_hard_2008-ld-soname): Likewise.
27064         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
27065         Likewise.
27066         (abi-64-v2-ld-soname): Likewise.
27067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
27068         ld.so entries.
27069         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
27070         variable.
27071         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
27072         entry.
27073         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
27074         variable.
27075         (abi-64-ld-soname): Likewise.
27076         (abi-x32-ld-soname): Likewise.
27077         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
27078         entry.
27079         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27080
27081 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
27082
27083         [BZ #14138]
27084         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
27085         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
27086         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
27087         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
27088         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
27089         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
27090         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
27091         syscall entry for GLIBC_2.2 symbol version.
27092         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
27093         Likewise.
27094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
27095         (setrlimit): Likewise.
27096         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
27097         Likewise.
27098
27099 2014-09-23  Will Newton  <will.newton@linaro.org>
27100
27101         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
27102         _LINUX_ARM_SYSDEP_H include guard too.
27103         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
27104         define.
27105
27106 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27107
27108         * sysdeps/unix/sysv/linux/eventfd.c:
27109         Make first argument unsigned.
27110         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
27111         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
27112
27113 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
27114
27115         [BZ #16852]
27116         * socket/recvmmsg.c (recvmmsg): Drop const argument.
27117         * socket/sys/socket.h: Likewise.
27118         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
27119
27120 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27121
27122         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
27123
27124 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
27125
27126         * time/tst-ftime.c: New test.
27127         * time/Makefile (tests): Add tst-ftime.
27128
27129 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
27130
27131         * soft-fp/extended.h: Fix comment formatting.
27132         * soft-fp/op-1.h: Likewise.
27133         * soft-fp/op-2.h: Likewise.
27134         * soft-fp/op-4.h: Likewise.
27135         * soft-fp/op-8.h: Likewise.
27136         * soft-fp/op-common.h: Likewise.
27137         * soft-fp/soft-fp.h: Likewise.
27138
27139         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
27140
27141 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
27142
27143         [BZ #6652]
27144         * Makeconfig (soversions-default-setname): Remove variable.
27145         ($(common-objpfx)soversions.i): Don't pass default_setname to
27146         soversions.awk.
27147         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
27148         oldest_abi to abi-versions.awk.
27149         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
27150         * config.make.in (oldest-abi): Remove variable.
27151         * configure.ac (--enable-oldest-abi): Remove configure option.
27152         * configure: Regenerated.
27153         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
27154         text.
27155         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
27156         * scripts/soversions.awk: Do not handle default_setname variable.
27157         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
27158         variable.
27159         * sysdeps/mach/hurd/configure: Regenerated.
27160         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
27161         variable.
27162         * sysdeps/unix/sysv/linux/configure: Regenerated.
27163
27164 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27165
27166         * elf/Makefile (CFLAGS-interp.c): Remove.
27167         ($(elf-objpfx)runtime-linker.h): Generate header with linker
27168         path string.
27169         * elf/interp.c: Include generated runtime-linker.h
27170
27171         * Makerules (lib%.so): Don't include $(+interp) in
27172         prerequisites.
27173         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
27174         * dlfcn/eval.c: Remove file.
27175
27176         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
27177         macros.
27178
27179         [BZ #17266]
27180         * misc/sys/cdefs.h: Define __extern_always_inline for clang
27181         4.2 and newer.
27182
27183         [BZ #17370]
27184         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
27185
27186 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27187             Jakub Jelinek  <jakub@redhat.com>
27188
27189         [BZ #17266]
27190         * libio/stdio.h: Check definition of __fortify_function
27191         instead of __extern_always_inline to include bits/stdio2.h.
27192         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
27193         check if __extern_always_inline is defined.
27194         [__USE_MISC || __USE_XOPEN]: Likewise.
27195         [__USE_ISOC99] Likewise.
27196         * misc/sys/cdefs.h (__fortify_function): Define only if
27197         __extern_always_inline is defined.
27198         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
27199         __extern_always_inline and __extern_inline only for g++-4.3
27200         and newer or a compatible gcc.
27201
27202 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
27203
27204         [BZ #17371]
27205         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
27206         last change to handle zero prefix length.
27207
27208 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27209
27210         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
27211         _SC_REGEX_VERSION.
27212
27213         * posix/getconf.c (vars): Add _POSIX_IPV6 and
27214         _POSIX_RAW_SOCKETS.
27215
27216 2014-09-13  Allan McRae  <allan@archlinux.org>
27217
27218         * po/ru.po: Update Russian translation from translation project.
27219
27220 2014-09-12  Roland McGrath  <roland@hack.frob.com>
27221
27222         * locale/programs/locale.c (show_locale_vars): Inline local function
27223         into its sole call site.  Clean up some style nits.
27224         (print_item): New function, broken out of ...
27225         (show_info): ... local function here.  Clean up style nits.
27226
27227         * locale/programs/ld-ctype.c (set_one_default): New function, broken
27228         out of ...
27229         (set_class_defaults): ... local function set_default here.
27230         Define set_default as a macro locally to pass constant parameters.
27231         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
27232         rather than a shared local.
27233
27234         * stdlib/rpmatch.c (try): New function, broken out of ...
27235         (rpmatch): ... local function here.  Also, prototypify definition.
27236
27237 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
27238
27239         * scripts/soversions.awk: Do not handle configuration names.
27240         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
27241         vendor and os variables to soversions.awk.
27242         * configure.ac: Do not modify gnu-* host_os.
27243         * configure: Regenerated
27244         * shlib-versions: Remove first column with configuration names.
27245         * nptl/shlib-versions: Likewise.
27246         * nptl_db/shlib-versions: Likewise.
27247         * sysdeps/hppa/shlib-versions: Likewise.
27248         * sysdeps/m68k/shlib-versions: Likewise.
27249         * sysdeps/mach/hurd/shlib-versions: Likewise.
27250         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
27251         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
27252         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
27253         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
27254         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
27255         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
27256         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
27257         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
27258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27259         Likewise.
27260         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27261         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27262         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27263         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27264         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27265         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
27266         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27267         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27268
27269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
27270         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
27271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27272         Regenerated.
27273         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
27274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27275         Condition symbol version definitions on [HAVE_ELFV2_ABI].
27276
27277         * shlib-versions: Remove OS-specific entries.  Moved to files in
27278         sysdeps.
27279         * sysdeps/mach/hurd/shlib-versions: New file.
27280         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27281
27282         * nptl/shlib-versions: Remove architecture-specific entries.
27283         Moved to files in sysdeps.
27284         * shlib-versions: Likewise.
27285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
27286         file.
27287         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27288         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27289         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27290         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27291
27292         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
27293         (UDP_NO_CHECK6_RX): Likewise.
27294
27295 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27296
27297         * sysdeps/posix/sysconf.c (__sysconf): Spell
27298         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
27299
27300 2014-08-12  Florian Weimer  <fweimer@redhat.com>
27301
27302         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
27303         loading.
27304         * iconv/Versions (__gconv_transliterate): Export for use from
27305         gconv modules.
27306         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
27307         (struct __gconv_trans_data, __gconv_trans_fct,
27308         __gconv_trans_context_fct, __gconv_trans_query_fct,
27309         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
27310         definitions.
27311         (struct __gconv_step_data): Remove __trans member.
27312         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
27313         longer hidden.  Remove unused trans_data argument.
27314         * iconv/gconv_int.h (struct trans_struct): Remove definition.
27315         (__gconv_translit_find): Remove declaration.
27316         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
27317         prototype.
27318         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
27319         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
27320         trans_data argument.  Add hidden definition.
27321         (__gconv_translit_find): Remove.
27322         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
27323         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
27324         * iconv/skeleton.c: Remove transliteration initialization.
27325         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
27326         __gconv_step_data initialization.
27327         * libio/iofwide.c (__libio_translit_): Remove.
27328         (_IO_fwide): Adjust struct __gconv_step_data initialization.
27329         * wcsmbs/btowc.c (__btowc): Likewise.
27330         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
27331         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
27332         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
27333         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
27334         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
27335         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
27336         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
27337         * wcsmbs/wctob.c (wctob): Likewise.
27338
27339 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27340
27341         [BZ #16194]
27342         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
27343         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
27344         register usage.
27345         * sysdeps/x86/Makefile: Adjust.
27346
27347 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27348             Roland McGrath  <roland@hack.frob.com>
27349
27350         * locale/weight.h: Add include guard.
27351         (findidx): Make static rather than auto; take new parameters
27352         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
27353         * locale/weightwc.h: Likewise.
27354         * posix/fnmatch_loop.c
27355         (FCT): Change type of EXTRA from int32_t to wint_t.
27356         Don't include either header inside the function.
27357         Call FINDIDX rather than findidx, and pass new arguments.
27358         #undef FINDIDX at the end of the file.
27359         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
27360         FINDIDX before including fnmatch_loop.c for the non-wide version.
27361         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
27362         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
27363         for the wide version.
27364         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27365         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27366         Pass new arguments to findidx.
27367         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27368         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27369         Don't #include it inside the function.  Pass new arguments to findidx.
27370         * posix/regex_internal.h
27371         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27372         (re_string_elem_size_at): Don't #include it inside the function.
27373         Pass new arguments to findidx.
27374         * string/strcoll_l.c: #include WEIGHT_H at top level.
27375         (get_next_seq): Don't #include it inside the function.
27376         Pass new arguments to findidx.
27377         (get_next_seq_nocache): Likewise.
27378         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27379         (STRXFRM): Don't #include it inside the function.
27380         Pass new arguments to findidx.
27381
27382 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27383
27384         [BZ #17344]
27385         * malloc/malloc.c (unlink): Turn asserts into a call to
27386         malloc_printerr.
27387
27388 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27389
27390         [BZ #17370]
27391         * libio/wfileops (do_ftell_wide): Free OUT.
27392
27393 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27394
27395         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27396
27397 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27398
27399         [BZ #17363]
27400         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27401         group if the current group is empty.
27402
27403 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27404
27405         * benchtests/bench-memset.c (test_main): Add more test from size
27406         from 32 to 512 bytes.
27407         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27408         Add POWER8 memset object.
27409         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27410         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27411         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27412         implementation.
27413         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27414         Likewise.
27415         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27416         multiarch POWER8 memset optimization.
27417         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27418         POWER8 memset optimization.
27419
27420         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27421         Remove bzero multiarch objects.
27422         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27423         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27424         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27425         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27426         Remove define.
27427         [__bzero]: Redefine to specific name.
27428         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27429         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27430         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27431         define.
27432         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27433         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27434
27435 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27436
27437         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27438         warnings into errors.
27439
27440         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27441         __cxa_thread_atexit_impl prototype.
27442
27443 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27444
27445         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27446         Fix capitalization of error message.
27447
27448 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27449
27450         * sysdeps/mips/preconfigure: Modify ABI tests.
27451
27452 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27453
27454         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27455
27456 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27457             Carlos O'Donell  <carlos@systemhalted.org>
27458
27459         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27460         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27461         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27462         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27463         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27464         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27465         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27466         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27467         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27468         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27469         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27470         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27471         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27472         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27473         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27474         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27475         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27476         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27477         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27478         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27479         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27480         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27481         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27482         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27483         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27484         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27485         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27486         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27487         Deconditionalize the code that was previously under [RESET_PID].
27488         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27489         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27490         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27491         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27492         include sysdep.h.
27493
27494 2014-09-08  Allan McRae  <allan@archlinux.org>
27495
27496         * version.h (RELEASE): Set to "development".
27497         (VERSION): Set to "2.20.90"
27498
27499 2014-09-07  Allan McRae  <allan@archlinux.org
27500
27501         * version.h (RELEASE): Set to "stable".
27502         (VERSION): Set to "2.20"
27503         * include/features.h (__GLIBC_MINOR__): Set to 20.
27504
27505         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27506         Liebler.
27507
27508         * po/ko.po: Update Korean translation from translation project.
27509
27510 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27511
27512         [BZ #17354]
27513         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27514         macro for handling signed relocations.
27515
27516 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27517
27518         [BZ #17325]
27519         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27520         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27521         assert.
27522         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27523         * iconvdata/ibm935.c (BODY): Likewise.
27524         * iconvdata/ibm937.c (BODY): Likewise.
27525         * iconvdata/ibm939.c (BODY): Likewise.
27526         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27527         assert.
27528         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27529         script.
27530         * iconvdata/run-iconv-test.sh: New test loop for checking for
27531         decoder crashers.
27532
27533 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27534
27535         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27536         libm_hidden_ver.
27537
27538 2014-09-01  Allan McRae  <allan@archlinux.org>
27539
27540         * po/eo.po: Update Esperanto translation from translation project.
27541
27542         * po/ca.po: Update Catalan translation from translation project.
27543
27544 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27545
27546         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27547         __proc_dostop call.
27548
27549 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27550
27551         [BZ #17319]
27552         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27553         to call set_thread_area instead of hand written asm.
27554         (__NR_set_thread_area): Removed define.
27555         (TLS_FLAG_WRITABLE): Likewise.
27556         (__ASSUME_SET_THREAD_AREA): Remove check.
27557         (TLS_EBX_ARG): Remove define.
27558         (TLS_LOAD_EBX): Likewise.
27559
27560 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27561
27562         Simplify atomicity of socket creation in bind.
27563
27564         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27565         looking up the name after linking the file.
27566
27567 2014-08-27  Allan McRae  <allan@archlinux.org>
27568
27569         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27570
27571 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27572
27573         [BZ #17187]
27574         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27575         trans_compare, open_translit, __gconv_translit_find):
27576         Remove module loading code.
27577
27578 2014-08-26  Allan McRae  <allan@archlinux.org>
27579
27580         * po/vi.po: Update Vietnamese translation from translation project.
27581
27582         * po/uk.po: Update Ukrainian translation from translation project.
27583
27584         * po/fr.po: Update French translation from translation project.
27585
27586         * po/ru.po: Update Russian translation from translation project.
27587
27588         * po/pl.po: Update Polish translation from translation project.
27589
27590         * po/cs.po: Update Czech translation from translation project.
27591
27592         * po/de.po: Update German translation from translation project.
27593
27594         * po/bg.po: Update Bulgarian translation from translation project.
27595
27596         * po/sv.po: Update Sweedish translation from translation project.
27597
27598         * po/nl.po: Update Dutch translation from translation project.
27599
27600         * po/es.po: Update Spanish translation from translation project.
27601
27602 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27603
27604         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27605
27606         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27607         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27608         (CPPFLAGS-iconvconfig): Likewise.
27609         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27610
27611         * include/libc-symbols.h: Remove unnecessary check for
27612         NOT_IN_libc.
27613         * nptl/pthreadP.h: Likewise.
27614         * sysdeps/aarch64/setjmp.S: Likewise.
27615         * sysdeps/alpha/setjmp.S: Likewise.
27616         * sysdeps/arm/sysdep.h: Likewise.
27617         * sysdeps/i386/setjmp.S: Likewise.
27618         * sysdeps/m68k/setjmp.c: Likewise.
27619         * sysdeps/posix/getcwd.c: Likewise.
27620         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27621         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27622         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27623         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27624         * sysdeps/sh/sh3/setjmp.S: Likewise.
27625         * sysdeps/sh/sh4/setjmp.S: Likewise.
27626         * sysdeps/unix/alpha/sysdep.h: Likewise.
27627         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27628         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27629         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27630         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27633         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27634         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27635         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27636         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27637         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27638         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27639         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27640         * sysdeps/x86_64/setjmp.S: Likewise.
27641
27642 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27643
27644         [BZ #17263]
27645         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27646         <stdint.h>.
27647         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27648         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27649
27650 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27651
27652         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27653
27654         [BZ #17262]
27655         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27656         and __x86_64__ when disabling x87 inline functions.
27657
27658 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27659
27660         [BZ #17259]
27661         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27662         asm statement with __cpuid_count.
27663
27664 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27665
27666         * configure.ac: Change __ehdr_start code to dereference the struct.
27667         Run readelf on the output to look for relocations.
27668         * configure: Regenerated.
27669
27670 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27671
27672         [BZ #17261]
27673         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27674         value to 0.
27675         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27676
27677 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27678
27679         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27680
27681 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27682
27683         [BZ #16892]
27684         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27685         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27686
27687 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27688
27689         * malloc/malloc.c: Fix typo in comment.
27690
27691 2014-08-09  Allan McRae  <allan@archlinux.org>
27692
27693         * Regenerate libc.po.
27694
27695 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27696
27697         * intl/tst-gettext2.sh: Check every lang file for creation.
27698
27699 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27700
27701         * sysdeps/aarch64/fpu/math_private.h
27702         (libc_feholdsetround_noex_aarch64_ctx): New function.
27703
27704 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27705
27706         * sysdeps/arm/armv6/strcpy.S (strcpy):
27707         Fix performance issue in misaligned cases.
27708
27709 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27710
27711         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27712         Move definition from termios.h.
27713         (struct termio): Likewise.
27714         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27715         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27716         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27717         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27718         Likewise.
27719         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27720         Move definition to ioctl-types.h
27721         (struct termio): Likewise.
27722         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27723         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27724         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27725         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27726         Likewise.
27727
27728 2014-08-05  Richard Henderson  <rth@redhat.com>
27729
27730         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27731         exceptions.
27732         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27733         Add fraiseexcpt.
27734         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27735         Use __feraiseexcept.
27736         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27737         Protect libm symbols with IS_IN_libm.
27738
27739         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27740
27741 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27742
27743         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27744
27745 2014-08-04  Will Newton  <will.newton@linaro.org>
27746
27747         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27748         file.
27749
27750 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27751
27752         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27753         variants for each function.
27754
27755 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27756
27757         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27758         appended ...
27759         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27760         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27761         appended ...
27762         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27763         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27764         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27765         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27766         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27767         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27768         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27769         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27770         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27771         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27772         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27773         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27774         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27775         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27776         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27777         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27778         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27779         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27780         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27781         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27782         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27783         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27784         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27785         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27786         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27787         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27788         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27789         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27790         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27791         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27792         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27793         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27794         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27795         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27796         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27797         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27798         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27799         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27800         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27801         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27802         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27803         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27804         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27805         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27806         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27807         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27808         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27809         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27810         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27811         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27812         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27813         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27814         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27815         Update #include.
27816         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27817         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27818
27819 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27820
27821         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27822         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27823         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27824         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27825         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27826         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27827
27828 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27829
27830         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27831         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27832         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27833         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27834
27835 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27836
27837         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27838         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27839         (__libc_vfork): Define function under this name.
27840         (__vfork): Define as an alias.
27841         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27842         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27843
27844 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27845
27846         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27847         that was previously under [RESET_PID].
27848         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27849
27850 2014-08-04  Andreas Schwab  <schwab@suse.de>
27851
27852         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27853
27854 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27855
27856         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27857         (main): Likewise.
27858
27859 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27860
27861         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27862
27863 2014-08-01  Richard Henderon  <rth@redhat.com>
27864
27865         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27866         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27867         typo in exact zero test.
27868         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27869         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27870         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27871
27872 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27873
27874         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27875         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27876         * sysdeps/arm/sysdep.h: ... here.
27877         [!__ASSEMBLER__]: Include <stdint.h>.
27878
27879 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27880
27881         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27882         (HAVE_WCTYPE_H): Likewise.
27883         (HAVE_ISWCTYPE): Likewise.
27884         (ENABLE_NLS): Likewise.
27885         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27886         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27887
27888         * posix/regex_internal.c: Check if DEBUG is defined and is
27889         set.
27890
27891         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27892         (HAVE_MBSRTOWCS): Likewise.
27893         * posix/fnmatch.c: Include string.h unconditionally.
27894
27895 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27896
27897         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27898         reversal.
27899
27900 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27901
27902         * sysdeps/generic/safe-fatal.h: New file.
27903         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27904         * nptl/forward.c: Include it.
27905         (__pthread_unwind): Use __safe_fatal as default action, rather
27906         than a bogus use of INTERNAL_SYSCALL that could never work.
27907
27908         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27909         * configure.ac (libc_cv_builtin_trap): New test.
27910         * configure: Regenerated.
27911         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27912         (ABORT_INSTRUCTION): Define using __builtin_trap.
27913
27914         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27915         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27916         * sysdeps/nptl/nptl-signals.h: New file.
27917         * nptl/pthreadP.h: Include <nptl-signals.h>.
27918
27919 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27920
27921         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27922         (ONE_DIRECTION): Define.
27923         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27924         (ONE_DIRECTION): Define.
27925         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27926         (ONE_DIRECTION): Define.
27927
27928 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27929
27930         * sysdeps/s390/Makefile: Delete file.
27931         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27932         * sysdeps/s390/__longjmp.c: Delete file.
27933         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27934         Remove fields __flags and __reserved.
27935         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27936         and add versioning.
27937         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27938         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27939         * sysdeps/s390/rtld-setjmp.S: Likewise.
27940         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27941         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27942         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27943         * sysdeps/s390/s390-32/setjmp.S: ... here.
27944         Add versioning.
27945         (__sigsetjmp): Remove setting __flags field.
27946         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27947         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27948         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27949         * sysdeps/s390/s390-64/setjmp.S: ... here.
27950         Add versioning.
27951         (__sigsetjmp): Remove setting __flags field.
27952         * sysdeps/s390/setjmp.S: Delete file.
27953         * sysdeps/s390/sigjmp.c: Likewise.
27954         * sysdeps/s390/v1-longjmp.c: Likewise.
27955         * sysdeps/s390/v1-setjmp.h: Likewise.
27956         * sysdeps/s390/v1-sigjmp.c: Likewise.
27957         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27958         Remove v1-longjmp_chk.
27959         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27960         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27961         Include debug/longjmp_chk.c and add versioning.
27962         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27963         Include nptl/pt-longjmp.c and add versioning.
27964         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27965         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27966         Include __longjmp.c.
27967         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27968         Move to ...
27969         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27970         (__getcontext): Remove setting __flags field.
27971         Add versioning.
27972         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27973         Don't restore upper high grps.
27974         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27975         Likewise.
27976         (__swapcontext): Remove setting uc_flags field.
27977         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27978         Delete file.
27979         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27980         Include __longjmp.c.
27981         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27982         Move to ...
27983         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27984         (__getcontext): Remove setting __flags field.
27985         Add versioning.
27986         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27987         (__swapcontext): Remove setting uc_flags field.
27988         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27989         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27990         Remove fields uc_high_gprs and __reserved.
27991         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27992         New file with reverted content.
27993         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27994         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27995         Regenerated.
27996         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27997         Regenerated.
27998
27999 2014-07-31  Andreas Schwab  <schwab@suse.de>
28000
28001         * config.h.in (HAVE_IFUNC): Define to 0.
28002         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
28003         definedness.
28004
28005 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
28006
28007         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28008         memmove-avx-unaligned, memcpy-avx-unaligned and
28009         mempcpy-avx-unaligned.
28010         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28011         Add tests for AVX memcpy functions.
28012         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
28013         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
28014         memcpy_chk.
28015         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
28016         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
28017         memmove_chk.
28018         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
28019         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
28020         mempcpy_chk.
28021         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
28022         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
28023         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
28024
28025 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28026
28027         [BZ #17213]
28028         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
28029         powerpc64le.
28030
28031 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
28032
28033         [BZ #16839]
28034         * manual/llio.texi: Add section about open file description locks.
28035         * manual/examples/ofdlocks.c: Example of open file description
28036         lock usage.
28037         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
28038         F_OFD_SETLK, and F_OFD_SETLKW.
28039
28040 2014-07-23  Allan McRae  <allan@archlinux.org>
28041
28042         * po/es.po: Update Spanish translation from translation project.
28043
28044 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
28045
28046         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
28047
28048 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
28049
28050         [BZ #17078]
28051         * sysdeps/arm/dl-machine.h (elf_machine_rela)
28052         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
28053         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
28054
28055 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
28056
28057         [BZ #17088]
28058         * math/fesetenv.c (__fesetenv)
28059         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
28060         * math/feupdateenv.c (__feupdateenv)
28061         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
28062
28063         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
28064         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
28065         (__ASSUME_SOCKETCALL): Do not define.
28066
28067         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
28068         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
28069         (__ASSUME_SOCKETCALL): Do not define.
28070         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
28071         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28072         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28073         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28074         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28075         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
28076         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28077         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28078
28079         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
28080         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
28081         (__ASSUME_SOCKETCALL): Do not define.
28082         (__ASSUME_IPC64): Define unconditionally.
28083         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28084         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28085         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28086         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28087         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
28088         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28089         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
28090         Likewise.
28091
28092         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
28093         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
28094         (__ASSUME_SOCKETCALL): Do not define.
28095         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
28096         (__ASSUME_FUTEX_LOCK_PI): Likewise.
28097         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28098         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
28099         (__ASSUME_REQUEUE_PI): Define unconditionally.
28100         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
28101         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
28102         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28103         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
28104         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28105         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28106
28107         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
28108         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
28109         (__ASSUME_SOCKETCALL): Do not define.
28110         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
28111         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28112         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28113         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
28114         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28115         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28116
28117         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
28118         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
28119         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28120         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
28121         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28122         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
28123         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28124         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
28125         (__ASSUME_GETCPU_SYSCALL): Likewise.
28126
28127         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
28128         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
28129         cases for individual architectures.
28130         * sysdeps/gnu/configure: Regenerated.
28131         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
28132         LIBC_SLIBDIR_RTLDDIR.
28133         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
28134         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
28135         LIBC_SLIBDIR_RTLDDIR.
28136         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
28137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
28138         LIBC_SLIBDIR_RTLDDIR.
28139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
28140         Regenerated.
28141         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
28142         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
28143         file.
28144         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
28145         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
28146         file.
28147         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
28148         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
28149         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
28150         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
28151
28152         * sysdeps/aarch64/shlib-versions: Move to ...
28153         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
28154         * sysdeps/alpha/shlib-versions: Move to ...
28155         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
28156         * sysdeps/arm/shlib-versions: Move to ...
28157         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
28158         * sysdeps/hppa/shlib-versions: Move all contents except for
28159         libgcc_s entry to ...
28160         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
28161         entry from ...
28162         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
28163         * sysdeps/ia64/shlib-versions: Move to ...
28164         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
28165         entry from ...
28166         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
28167         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
28168         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
28169         * sysdeps/microblaze/shlib-versions: Move to ...
28170         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
28171         * sysdeps/mips/shlib-versions: Move to ...
28172         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
28173         entry from ...
28174         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
28175         * sysdeps/tile/shlib-versions: Move to ...
28176         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
28177         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
28178         from ...
28179         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
28180         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
28181         entry from ...
28182         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
28183
28184 2014-07-17  Will Newton  <will.newton@linaro.org>
28185
28186         * sysdeps/arm/bits/atomic.h
28187         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
28188         (__arch_compare_and_exchange_bool_16_int): Likewise.
28189         (__arch_compare_and_exchange_bool_64_int): Likewise.
28190
28191         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
28192         into an #else block.
28193
28194 2014-07-16  Roland McGrath  <roland@hack.frob.com>
28195
28196         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
28197         just Linux configurations.  Test empirically that the compiler sets
28198         __ARM_EABI__, rather than using the tuple to decide.
28199         * sysdeps/arm/preconfigure: Regenerated.
28200         * sysdeps/unix/sysv/linux/arm/configure: File removed.
28201         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
28202         contents appended ...
28203         * sysdeps/arm/configure.ac: ... here.
28204         * sysdeps/arm/configure: Regenerated.
28205
28206 2014-07-15  Roland McGrath  <roland@hack.frob.com>
28207
28208         * nptl/pthread_kill.c: New file.
28209         * nptl/pthread_sigmask.c: New file.
28210         * nptl/pthread_sigqueue.c: New file.
28211
28212         * sysdeps/nptl/lowlevellock.h: New file.
28213         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
28214         * sysdeps/nptl/lowlevellock-futex.h: New file.
28215
28216         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
28217         Remove dead declarations.
28218
28219 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
28220
28221         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
28222         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
28223         config-cflags-avx2.
28224         * sysdeps/x86_64/configure.ac: Likewise.
28225         * sysdeps/i386/configure: Regenerated.
28226         * sysdeps/x86_64/configure: Likewise.
28227         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28228         memset-avx2 only if config-cflags-avx2 is yes.
28229         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28230         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
28231         defined.
28232         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
28233         only if HAVE_AVX2_SUPPORT is defined.
28234         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28235
28236 2014-07-14  Alan Modra  <amodra@gmail.com>
28237
28238         [BZ #17153]
28239         * elf/elf.h (DT_PPC64_NUM): Correct value.
28240         * NEWS: Add to fixed bug list.
28241
28242 2014-07-13  Jim Meyering  <meyering@fb.com>
28243
28244         [BZ 17150]
28245         regex: don't deref NULL upon heap allocation failure
28246         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
28247         failure in one more place.
28248         To trigger the segfault, configure grep -with-included-regex,
28249         build it, and run these commands:
28250         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28251
28252 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
28253
28254         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28255
28256 2014-07-11  Richard Henderson  <rth@redhat.com>
28257
28258         * sysdeps/aarch64/libm-test-ulps: Update.
28259
28260 2014-07-10  Florian Weimer  <fweimer@redhat.com>
28261
28262         [BZ #17135]
28263         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
28264         * nptl/allocatestack.c (__nptl_setxid_error): New function.
28265         (__nptl_setxid): Initialize error member.  Call
28266         __nptl_setxid_error.
28267         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
28268         * nptl/descr.h (struct xid_command): Add error member.
28269         * nptl/tst-setuid3.c: New file.
28270         * nptl/Makefile (tests): Add it.
28271
28272 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28273
28274         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
28275         New define.
28276         (__lll_trylock): Use __lll_base_trylock.
28277         (__lll_cond_trylock): Likewise.
28278
28279 2014-07-10  Roland McGrath  <roland@hack.frob.com>
28280
28281         * nptl/pthread_create.c (start_thread): Use atomic_or and
28282         lll_futex_wake directly rather than lll_robust_dead.
28283         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28284         (lll_robust_dead): Macro removed.
28285         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
28286         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28287         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28288         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28289         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28290         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28291         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28292         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28293         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28294         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28295         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28296         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28297         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28298         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28299         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28300
28301         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
28302         Use atomic_compare_and_exchange_val_acq directly rather than
28303         lll_robust_trylock.
28304         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28305         (__lll_robust_trylock, lll_robust_trylock): Removed.
28306         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28307         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28308         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28309         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28310         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28311         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28312         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28313         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28314         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28315         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28316         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28317         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28318         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28319         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28320
28321 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28322
28323         * manual/locale.texi (Locale Names): New section documenting
28324         locale name syntax.  Adjust menu and node chaining accordingly.
28325         (Choosing Locale): Reference Locale Names, Locale Categories.
28326         Mention setting LC_ALL=C.  Reflect that name syntax is now
28327         documented.
28328         (Locale Categories): New section title.  Reference Locale Names.
28329         LC_ALL is an environment variable, but not a category.
28330         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
28331         description, now in Locale Name.  Reference that section.  Locale
28332         name syntax is now documented.
28333
28334 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28335
28336         [BZ #17137]
28337         * locale/findlocale.c (name_present, valid_locale_name): New
28338         functions.
28339         (_nl_find_locale): Use the loc_name variable to store name
28340         candidates.  Call name_present and valid_locale_name to check and
28341         validate locale names.  Return an error if the locale is invalid.
28342
28343 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28344
28345         * locale/setlocale.c (setlocale): Use strdup for allocating
28346         composite name copy.
28347
28348 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28349
28350         Sync up with gnulib.
28351         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
28352         [!_LIBC && ENABLE_NLS]: Include gettext.h.
28353         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
28354         and _GL_ARG_NONNULL.
28355         [USE_UNLOCKED_IO]: Include unlocked-io.h.
28356         [!_LIBC]: Include code for Windows and Cygwin.
28357         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
28358         Include prototype for int strerror_r.
28359         [!_LIBC] (is_open): New function.
28360         (flush_stdout): New function.
28361         (print_errno_message): Use it.
28362         (error): Likewise.
28363         (error_at_line): Likewise.
28364         (error_tail) Add function attribute macros.  Use
28365         __builtin_expect.
28366
28367         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28368
28369         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28370
28371         * io/ftw.c: Include sys/param.h unconditionally.
28372
28373         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28374
28375         [BZ #17125]
28376         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28377         libc_freeres_ptr.
28378         (freecache): New function to free CACHE on exit.
28379
28380         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28381         initialization.
28382
28383 2014-07-09  David S. Miller  <davem@davemloft.net>
28384
28385         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28386
28387         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28388         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28389         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28390         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28391         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28392         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28393         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28394         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28395         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28396         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28397         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28398         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28399         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28400
28401 2014-07-09  Andreas Schwab  <schwab@suse.de>
28402
28403         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28404         output.
28405         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28406         (do_test): Likewise.
28407
28408         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28409
28410 2014-07-09  Will Newton  <will.newton@linaro.org>
28411
28412         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28413         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28414         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28415         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28416         * sysdeps/hppa/start.S (_start): Likewise.
28417
28418 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28419
28420         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28421
28422         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28423         defined.
28424
28425 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28426
28427         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28428         after checking that it is non-NULL.
28429
28430         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28431
28432 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28433
28434         * sysdeps/powerpc/memmove.c: Remove file.
28435         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28436         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28437         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28438         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28439         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28440         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28441         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28442         string memmove instead of removed powerpc one.
28443
28444         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28445         [weak_alias]: Fix compiler warning due trailing data.
28446         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28447         [weak_alias]: Likewise.
28448         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28449         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28450
28451         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28452         (__libc_ifunc_impl_list): Add memmove functions.
28453
28454 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28455
28456         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28457         Remove code.
28458         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28459         Likewise.
28460         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28461         Likewise.
28462         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28463         Likewise.
28464         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28465         Likewise.
28466         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28467         Likewise.
28468         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28469         Likewise.
28470         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28471         Likewise.
28472         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28473         Likewise.
28474         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28475         Likewise.
28476         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28477         Likewise.
28478         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28479         Likewise.
28480         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28481         Likewise.
28482         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28483         Likewise.
28484         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28485         Likewise.
28486         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28487         Likewise.
28488         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28489         Likewise.
28490
28491 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28492
28493         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28494         to avoid alignment traps in non-cacheable memory.
28495         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28496
28497         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28498         multiarch objects.
28499         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28500         file: multiarch power7 memmove.
28501         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28502         multiarch default memmove.
28503         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28504         multiarch memove for powerpc32/power4.
28505
28506         * string/bcopy.c: Use full path to include memmove.c.
28507         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28508         multiarch objects.
28509         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28510         bcopy for powerpc64.
28511         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28512         bcopy for powerpc64.
28513         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28514         and memmove implementations.
28515         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28516         optimized multiarch memmove for POWER7/powerpc64.
28517         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28518         default multiarch memmove for powerpc64.
28519         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28520         multiarch for powerpc64.
28521         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28522         for POWER7/powerpc64.
28523         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28524         memmove for POWER7/powerpc64.
28525
28526         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28527         glibc default one.
28528
28529         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28530         __ELF_NATIVE_CLASS equal to 64.
28531
28532 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28533
28534         * sysdeps/nptl/lowlevellock.h: File removed.
28535
28536         * NEWS: NPTL is no longer an add-on!
28537         * nptl/internaltypes.h: Moved ...
28538         * sysdeps/nptl/internaltypes.h: ... here.
28539         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28540         * sysdeps/nptl/fork.c: Likewise.
28541         * sysdeps/nptl/gai_misc.h: Likewise.
28542         * sysdeps/nptl/librt-cancellation.c: Likewise.
28543         * sysdeps/nptl/jmp-unwind.c: Likewise.
28544         * sysdeps/nptl/setxid.h: Likewise.
28545         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28546         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28547         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28548         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28549         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28550         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28551         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28552         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28553         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28554         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28555         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28556         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28557         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28558         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28559         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28560         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28561         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28562         * nptl/Makeconfig: Moved ...
28563         * sysdeps/nptl/Makeconfig: ... here.
28564         * nptl/configure: File removed.
28565         * nptl/ANNOUNCE: File removed.
28566         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28567         * sysdeps/unix/sysv/linux/configure: Regenerated.
28568
28569         * nptl/Makefile (routines): Add libc_pthread_init,
28570         libc_multiple_threads, register-atfork and unregister-atfork.
28571         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28572         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28573         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28574         pthread-pi-defines.sym, structsem.sym.
28575         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28576         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28577         [$(subdir) = nptl] (tests): Add tst-setgetname.
28578         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28579         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28580         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28581         [!LIBC_SIGACTION]: Remove aliases.
28582         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28583         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28584         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28585         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28586         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28587         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28588         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28589         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28590         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28591         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28592         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28593         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28594         __libc_allocate_rtsig_private.
28595         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28596         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28597         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28598         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28599         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28600         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28601         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28602         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28603         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28604         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28605         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28606         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28607         * nptl/internaltypes.h: ... here.
28608         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28609         * sysdeps/nptl/jmp-unwind.c: ... here.
28610         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28611         * nptl/libc-lowlevellock.c: ... here.
28612         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28613         * nptl/libc_multiple_threads.c: ... here.
28614         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28615         * nptl/libc_pthread_init.c: ... here.
28616         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28617         * nptl/lowlevelbarrier.sym: ... here.
28618         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28619         * nptl/lowlevelcond.sym: ... here.
28620         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28621         * nptl/lowlevellock.c: ... here.
28622         * nptl/lowlevellock.h: Moved ...
28623         * sysdeps/nptl/lowlevellock.h: ... here.
28624         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28625         * nptl/lowlevelrobustlock.c: ... here.
28626         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28627         * nptl/lowlevelrobustlock.sym: ... here.
28628         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28629         * nptl/lowlevelrwlock.sym: ... here.
28630         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28631         * nptl/pt-fork.c: ... here.
28632         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28633         * nptl/pthread-pi-defines.sym: ... here.
28634         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28635         * nptl/pthread_attr_getaffinity.c: ... here.
28636         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28637         * nptl/pthread_attr_setaffinity.c: ... here.
28638         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28639         * nptl/pthread_mutex_cond_lock.c: ... here.
28640         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28641         Update #include.
28642         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28643         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28644         * nptl/pthread_once.c: ... here, replacing old file.
28645         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28646         * nptl/pthread_yield.c: ... here.
28647         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28648         * nptl/register-atfork.c: ... here.
28649         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28650         * nptl/sem_post.c: ... here.
28651         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28652         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28653         * nptl/sem_timedwait.c: ... here.
28654         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28655         * nptl/sem_trywait.c: ... here.
28656         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28657         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28658         * nptl/sem_wait.c: ... here.
28659         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28660         * nptl/structsem.sym: ... here.
28661         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28662         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28663         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28664         * nptl/unregister-atfork.c: ... here.
28665         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28666         * nptl/unwindbuf.sym: ... here.
28667         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28668         * sysdeps/nptl/fork.c: ... here.
28669         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28670         * sysdeps/nptl/fork.h: ... here.
28671         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28672         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28673         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28674         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28675         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28676         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28677         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28678         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28679         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28680         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28681         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28682         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28683         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28684         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28685         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28686         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28687         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28688         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28689         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28690         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28691         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28692         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28693         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28694         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28695         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28696         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28697         * sysdeps/unix/sysv/linux/raise.c: ... here.
28698         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28699         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28700         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28701         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28702         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28703         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28704         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28705         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28706         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28707         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28708         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28709         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28710         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28711         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28712         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28713
28714 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28715
28716         * sysdeps/generic/memcopy.h: Add comment for
28717         MEMCPY_OK_FOR_FWD_MEMMOVE.
28718
28719 2014-07-04  Will Newton  <will.newton@linaro.org>
28720
28721         * string/memchr.c: Merge from gnulib.
28722         [_LIBC]: Remove conditionals.
28723         (__ptr_t): Remove define.
28724         (LONG_MAX_32_BITS): Likewise.
28725         (LONG_MAX): Likewise.
28726         (MEMCHR): Use ANSI prototype and optimize algorithm.
28727
28728         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28729
28730 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28731
28732         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28733         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28734
28735         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28736         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28737         in a bare environment with no <stdlib.h> installed.
28738         * sysdeps/nptl/configure: Regenerated.
28739
28740         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28741
28742         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28743         AC_EGREP_CPP for kernel header checks, so they only succeed if
28744         including <linux/version.h> actually works right.
28745         * sysdeps/unix/sysv/linux/configure: Regenerated.
28746
28747         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28748         value so it's not diagnosed as unused.
28749
28750         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28751         thing) with "ifeq ($(subdir),rt)".
28752
28753 2014-07-03  Richard Henderson  <rth@redhat.com>
28754
28755         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28756         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28757         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28758
28759         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28760         (math_force_eval): New.
28761
28762         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28763         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28764
28765         * sysdeps/alpha/fpu/s_round.c: Remove file.
28766         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28767
28768         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28769         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28770         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28771         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28772         (_dl_start, print_statistics): Likewise.
28773         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28774         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28775
28776         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28777         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28778         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28779         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28780         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28781         (HP_SMALL_TIMING_AVAIL): Define.
28782         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28783         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28784         (HP_SMALL_TIMING_AVAIL): Define.
28785         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28786         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28787
28788         * sysdeps/aarch64/hp-timing.h: New file.
28789
28790         * sysdeps/generic/hp-timing.h: Remove dead comment.
28791         * sysdeps/generic/hp-timing-common.h: New file.
28792         * sysdeps/alpha/hp-timing.h: Include it.
28793         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28794         * sysdeps/i386/i686/hp-timing.h: Likewise.
28795         * sysdeps/ia64/hp-timing.h: Likewise.
28796         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28797         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28798         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28799         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28800         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28801         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28802         (hp_timing_t): New.
28803
28804         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28805         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28806         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28807         * elf/rtld.c (_dl_start_final): Likewise.
28808         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28809         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28810         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28811         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28812         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28813         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28814         (HP_TIMING_DIFF_INIT): Remove.
28815         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28816         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28817         (HP_TIMING_DIFF_INIT): Remove.
28818         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28819         * sysdeps/i386/i686/hp-timing.c: Remove file.
28820         * sysdeps/x86_64/hp-timing.c: Remove file.
28821         * sysdeps/ia64/hp-timing.c: Remove file.
28822         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28823         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28824         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28825         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28826
28827         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28828         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28829         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28830         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28831         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28832         (HP_TIMING_ACCUM): Remove.
28833         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28834         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28835         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28836
28837         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28838         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28839         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28840         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28841         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28842         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28843         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28844         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28845
28846         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28847
28848 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28849
28850         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28851
28852 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28853
28854         Sync up with gettext.
28855         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28856         [_MSC_VER]: Include malloc.h
28857         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28858         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28859         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28860         TEMP_FAILURE_RETRY.  Cast return of alloca.
28861         [!_LIBC] Call gl_rwlock_init.
28862         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28863
28864 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28865
28866         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28867         before checking its value.
28868
28869 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28870
28871         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28872
28873         * debug/memcpy_chk.c: Don't include pagecopy.h.
28874         * debug/mempcpy_chk.c: Likewise.
28875         * string/memcpy.c: Likewise.
28876         * string/memmove.c: Likewise.
28877         * sysdeps/powerpc/memmove.c: Likewise.
28878         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28879         definition of PAGE_COPY_FWD_MAYBE here...
28880         * sysdeps/generic/pagecopy.h: ... from here.
28881         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28882
28883 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28884             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28885
28886         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28887         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28888         optimizations.
28889         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28890         (__libc_ifunc_impl_list): Likewise.
28891         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28892         multiarch strcat for PPC64.
28893         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28894         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28895
28896 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28897
28898         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28899
28900 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28901
28902         * intl/loadmsgcat.c: Remove declaration of
28903         get_sysdep_segment_value.
28904         (get_sysdep_segment_value): Use ISO C style.
28905         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28906         semicolon.  Fix typo and formatting in comment.
28907         (_nl_unload_domain): Use ISO C style.
28908
28909         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28910
28911 2014-07-02  Will Newton  <will.newton@linaro.org>
28912
28913         * malloc/obstack.c: Merge from gnulib master.
28914         [HAVE_CONFIG_H]: Remove conditional code.
28915         [!_LIBC]: Include config.h.
28916         [!ELIDE_CODE]: Don't include inttypes.h, include
28917         stdint.h unconditionally.
28918         (print_and_abort): Mark as _Noreturn.
28919         (_obstack_allocated_p): Mark as __attribute_pure__.
28920         (obstack_free): Rename to __obstack_free.
28921         [!__attribute__]: Remove conditional code.
28922         * malloc/obstack.h: Merge from gnulib master.
28923         [__cplusplus]: Move conditional down.
28924         [!__attribute_pure__]: Define __attribute_pure__ here
28925         if it is not already defined.
28926         (_obstack_memory_used): Mark as __attribute_pure__.
28927         [!__obstack_free]: Define as obstack_free.
28928         [__GNUC__]: Remove check for ancient NeXT gcc.
28929
28930 2014-07-02  Will Newton  <will.newton@linaro.org>
28931             Paul Eggert  <eggert@cs.ucla.edu>
28932
28933         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28934
28935 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28936
28937         * resolv/gethnamaddr.c: Add comment warning that the file is
28938         not maintained.
28939
28940 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28941
28942         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28943         entries.
28944
28945         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28946         entry for aio_cancel and aio_cancel64.
28947         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28948         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28949         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28950         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28951         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28952         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28953         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28954         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28955         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28956         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28957         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28958         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28959         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28960
28961 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28962
28963         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28964         * nptl/pthread_mutex_lock.c: Likewise.
28965         * nptl/pthread_mutex_timedlock.c: Likewise.
28966         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28967
28968 2014-07-01  Richard henderson  <rth@redhat.com>
28969
28970         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28971         (__isnan, __isnanl): Remove.
28972         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28973
28974         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28975
28976 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28977
28978         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28979
28980 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28981
28982         * resolv/nss_dns/dns-host.c (getanswer_r)
28983         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28984
28985 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28986
28987         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28988         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28989         undefine.
28990         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28991         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28992
28993 2014-07-01  Roland McGrath <roland@hack.frob.com>
28994
28995         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28996         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28997
28998         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28999         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
29000
29001         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
29002         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
29003         ... here.
29004         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
29005         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
29006
29007         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
29008         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
29009         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
29010         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
29011
29012         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
29013         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
29014         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
29015         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
29016         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
29017         Moved ...
29018         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
29019         ... here.
29020         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
29021         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
29022         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
29023         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
29024         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
29025         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
29026         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
29027         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
29028         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
29029         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
29030         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
29031         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
29032         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
29033         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
29034         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
29035         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
29036         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
29037         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
29038         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
29039         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
29040         ... here.
29041         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
29042         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
29043         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
29044         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
29045         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
29046         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
29047         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
29048         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
29049
29050 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
29051
29052         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
29053         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
29054         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
29055         Add sysdep.
29056
29057 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29058
29059         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29060
29061 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29062
29063         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29064         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29065
29066         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29067
29068         * sysdeps/arm/libm-test-ulps: Regenerated.
29069
29070 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29071             Roland McGrath <roland@hack.frob.com>
29072
29073         * test-skeleton.c (signal_handler): Kill the whole process group
29074         before killing the child individually.
29075         (main): Report any failure on `setpgid'.
29076
29077 2014-06-30  Roland McGrath  <roland@hack.frob.com>
29078
29079         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
29080         from _TLS_H to _ARM_NPTL_TLS_H.
29081         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
29082         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
29083
29084 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29085
29086         [BZ #16539]
29087         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
29088         (__expm1l): Return argument unchanged when small but not
29089         subnormal.
29090
29091         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
29092         include macro name.
29093         (_FP_UNPACK_RAW_1_P): Likewise.
29094         (_FP_PACK_RAW_1): Likewise.
29095         (_FP_PACK_RAW_1_P): Likewise.
29096         (_FP_MUL_MEAT_1_wide): Likewise.
29097         (_FP_MUL_MEAT_DW_1_hard): Likewise.
29098         (_FP_MUL_MEAT_1_hard): Likewise.
29099         (_FP_DIV_MEAT_1_imm): Likewise.
29100         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
29101         (_FP_DIV_MEAT_1_udiv): Likewise.
29102         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
29103         (_FP_UNPACK_RAW_2): Likewise.
29104         (_FP_UNPACK_RAW_2_P): Likewise.
29105         (_FP_PACK_RAW_2): Likewise.
29106         (_FP_PACK_RAW_2_P): Likewise.
29107         (_FP_MUL_MEAT_DW_2_wide): Likewise.
29108         (_FP_MUL_MEAT_2_wide): Likewise.
29109         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
29110         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
29111         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
29112         (_FP_MUL_MEAT_2_gmp): Likewise.
29113         (_FP_DIV_MEAT_2_udiv): Likewise.
29114         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
29115         (_FP_FRAC_SRL_4): Likewise.
29116         (_FP_FRAC_SRST_4): Likewise.
29117         (_FP_FRAC_SRS_4): Likewise.
29118         (_FP_UNPACK_RAW_4): Likewise.
29119         (_FP_UNPACK_RAW_4_P): Likewise.
29120         (_FP_PACK_RAW_4): Likewise.
29121         (_FP_PACK_RAW_4_P): Likewise.
29122         (_FP_MUL_MEAT_DW_4_wide): Likewise.
29123         (_FP_MUL_MEAT_4_wide): Likewise.
29124         (_FP_MUL_MEAT_4_gmp): Likewise.
29125         (umul_ppppmnnn): Likewise.
29126         (_FP_DIV_MEAT_4_udiv): Likewise.
29127         (__FP_FRAC_ADD_4): Likewise.
29128         (__FP_FRAC_SUB_3): Likewise.
29129         (__FP_FRAC_SUB_4): Likewise.
29130         (__FP_FRAC_DEC_3): Likewise.
29131         (__FP_FRAC_DEC_4): Likewise.
29132         (__FP_FRAC_ADDI_4): Likewise.
29133         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
29134         (_FP_FRAC_SRL_8): Likewise.
29135         (_FP_FRAC_SRS_8): Likewise.
29136
29137         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
29138         include macro name.
29139         (FP_UNPACK_RAW_EP): Likewise.
29140         (FP_PACK_RAW_E): Likewise.
29141         (FP_PACK_RAW_EP): Likewise.
29142         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
29143         (_FP_ISSIGNAN): Likewise.
29144         (_FP_ADD_INTERNAL): Likewise.
29145         (_FP_FMA): Likewise.
29146         (_FP_CMP): Likewise.
29147         (_FP_SQRT): Likewise.
29148         (_FP_TO_INT): Likewise.
29149         (_FP_FROM_INT): Likewise.
29150         (FP_EXTEND): Likewise.
29151         (_FP_DIV_MEAT_N_loop): Likewise.
29152
29153 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29154
29155         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
29156         throughout.
29157
29158 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
29159
29160         [BZ #17097]
29161         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
29162         result with correct sign in case of exponents that produce
29163         overflow except for X very close to 1.
29164
29165 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
29166
29167         mktime: merge #if/#ifdef usage from glibc
29168         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29169         as that works with both Glibc's and Gnulib's style.
29170         See thread starting at Siddhesh Poyarekar's bug report at:
29171         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
29172
29173 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
29174
29175         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
29176         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
29177         * sysdeps/tile/tilegx/memmove.c: Remove file.
29178
29179 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29180
29181         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
29182         abi-name definition.
29183         * scripts/soversions.awk: Do not handle or generate ABI lines.
29184         * shlib-versions: Remove ABI entries.
29185         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
29186         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
29187
29188 2014-06-27  Roland McGrath  <roland@hack.frob.com>
29189
29190         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
29191         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
29192         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
29193         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
29194         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
29195         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
29196         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
29197         Moved ...
29198         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
29199         ... here.
29200         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
29201         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
29202         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
29203         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
29204         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
29205         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
29206         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
29207         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
29208         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
29209         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
29210         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
29211         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
29212         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
29213         Moved ...
29214         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
29215         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
29216         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
29217         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
29218         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
29219         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
29220         Moved ...
29221         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
29222         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
29223         Moved ...
29224         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
29225         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
29226         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
29227         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
29228         Moved ...
29229         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
29230         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
29231         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
29232         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
29233         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
29234         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
29235         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
29236         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
29237         Moved ...
29238         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
29239         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
29240         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
29241         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
29242         Moved ...
29243         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
29244         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
29245         Moved ...
29246         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
29247         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
29248         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
29249         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
29250         Moved ...
29251         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
29252         ... here.
29253         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
29254         Identical file removed.
29255         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
29256         Moved ...
29257         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
29258         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
29259         Identical file removed.
29260         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
29261         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
29262         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
29263         Moved ...
29264         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
29265         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
29266         Identical file removed.
29267         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
29268         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
29269         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
29270         Identical file removed.
29271         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
29272         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
29273         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
29274         Identical file removed.
29275         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
29276         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
29277         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
29278         Identical file removed.
29279         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
29280         Moved ...
29281         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
29282         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
29283         Identical file removed.
29284         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
29285         Moved ...
29286         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
29287         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
29288         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
29289         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
29290         Identical file removed.
29291         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
29292         Moved ...
29293         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
29294         ... here.
29295         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
29296         Identical file removed.
29297         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
29298         Moved ...
29299         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
29300         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
29301         Identical file removed.
29302         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
29303         Moved ...
29304         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
29305         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
29306         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
29307         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
29308         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
29309         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
29310         Moved ...
29311         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
29312         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
29313         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
29314
29315         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
29316         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
29317         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
29318         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
29319         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
29320
29321 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
29322
29323         [BZ #17092]
29324         * nscd/nscd.c (monitor_child): Return exit status of child
29325         instead of return value from wait syscall.
29326
29327 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29328
29329         * configure.ac (libc_commonpagesize): Remove variable.
29330         (libc_relro_required): Likewise.
29331         (libc_cv_z_relro): Remove configure test.
29332         * configure: Regenerated.
29333         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
29334         variable.
29335         (libc_relro_required): Likewise.
29336         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
29337         (libc_relro_required): Likewise.
29338         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
29339         (libc_relro_required): Likewise.
29340         * sysdeps/arm/preconfigure: Regenerated.
29341         * sysdeps/ia64/preconfigure: Remove file.
29342         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
29343         variable.
29344         (libc_relro_required): Likewise.
29345
29346         [BZ #16561]
29347         [BZ #16562]
29348         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
29349         (__ieee754_yn): Set FE_TONEAREST mode internally and then
29350         recompute overflowing results in original rounding mode.
29351         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
29352         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
29353         recompute overflowing results in original rounding mode.
29354         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
29355         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29356         recompute overflowing results in original rounding mode.
29357         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
29358         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29359         recompute overflowing results in original rounding mode.
29360         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
29361         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29362         recompute overflowing results in original rounding mode.
29363         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29364         (libc_feholdsetround_ctx): New macro.
29365         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29366         * sysdeps/i386/fpu/libm-test-ulps: Update.
29367         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29368
29369 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29370
29371         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29372         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29373         corresponding .cpsetup call.
29374
29375 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29376
29377         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29378         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29379         * sysdeps/arm/Makefile [$(subdir) = csu]
29380         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29381         (static-only-routines): Add aeabi_read_tp here.
29382         (shared-only-routines): Add libc-aeabi_read_tp here.
29383         (CFLAGS-libc-start.c): Add -fexceptions here.
29384         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29385         (sysdep_routines, static-only-routines, shared-only-routines):
29386         Don't add to these here.
29387         (CFLAGS-libc-start.c): Likewise.
29388
29389         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29390         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29391         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29392         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29393         * sysdeps/arm/Makefile [$(subdir) = rt]
29394         (librt-sysdep_routines, librt-shared-only-routines):
29395         Append rt-aeabi_unwind_cpp_pr1 here.
29396         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29397         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29398         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29399         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29400         Append nptl-aeabi_unwind_cpp_pr1 here.
29401         (tests): Filter out tst-cleanupx4 here.
29402         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29403         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29404         Don't do those here.
29405
29406 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29407
29408         * scripts/list-sources.sh: Do not handle ports specially.
29409
29410 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29411
29412         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29413         * sysdeps/arm/feupdateenv.c: Likewise.
29414
29415         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29416
29417 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29418
29419         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29420         trailing whitespace removed.
29421         * scripts/config.guess: Update to version 2014-03-23.
29422         * scripts/config.sub: Update to version 2014-05-01
29423         * scripts/install-sh: Update to version 2013-12-25.23.
29424         * scripts/move-if-change: Update from gnulib.
29425
29426 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29427
29428         * debug/memmove_chk.c: Remove pagecopy.h include.
29429
29430 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29431
29432         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29433         identical to gnulib mktime.
29434
29435 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29436
29437         * configure.ac: Do not test for machine being rs6000.  Do not test
29438         for powerpc*-*soft.
29439         * configure: Regenerated.
29440
29441         [BZ #11505]
29442         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29443         test.
29444         * configure: Regenerated.
29445         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29446         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29447         Remove configure test.
29448         * sysdeps/arm/configure: Regenerated.
29449         * sysdeps/nptl/configure.ac: Do not check
29450         libc_cv_asm_cfi_directives.
29451         * sysdeps/nptl/configure: Regenerated.
29452         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29453         * sysdeps/x86_64/nptl/configure: Remove generated file.
29454         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29455         unconditional.
29456         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29457
29458 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29459
29460         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29461         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29462         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29463         it is defined.
29464
29465         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29466         instead of whether it is defined.
29467         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29468         * sysdeps/hppa/dl-machine.h: Likewise.
29469         * sysdeps/ia64/dl-machine.h: Likewise.
29470         * sysdeps/m68k/dl-machine.h: Likewise.
29471         * sysdeps/microblaze/dl-machine.h: Likewise.
29472         * sysdeps/mips/dl-machine.: Likewise.
29473         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29474         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29475         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29476         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29477         * sysdeps/sh/dl-machine.h: Likewise.
29478         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29479         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29480         * sysdeps/tile/dl-machine.h: Likewise.
29481         * sysdeps/x86_64/dl-machine.h: Likewise.
29482
29483         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29484         code.
29485         (verify_persistent_db): Likewise.
29486
29487 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29488
29489         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29490         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29491         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29492         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29493         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29494         Moved ...
29495         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29496         ... here.
29497         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29498         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29499         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29500         Identical file removed.
29501         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29502         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29504         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29505         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29506         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29508         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29509         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29510         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29512         Moved ...
29513         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29514         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29515         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29516         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29517         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29518         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29519         Moved ...
29520         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29521         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29522         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29523         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29524         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29525         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29526         Identical file removed.
29527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29528         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29529         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29530         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29532         Moved ...
29533         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29534         ... here.
29535         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29536         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29537         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29538         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29539         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29540         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29541         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29542         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29543         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29544         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29545         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29546         Moved ...
29547         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29548         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29549         Moved ...
29550         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29551         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29552         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29553         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29554         Moved ...
29555         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29557         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29558
29559         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29560         folded into ...
29561         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29562         * sysdeps/unix/sysv/linux/s390/Versions
29563         (libpthread: GLIBC_2.19): New version set.
29564         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29565         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29566         (librt: GLIBC_2.3.3): New version set.
29567         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29568         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29569         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29570         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29571         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29572         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29573         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29574         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29575         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29576         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29577         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29578         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29579         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29580         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29581         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29582         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29583         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29584         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29585         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29586         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29587         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29588         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29589         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29590         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29591         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29592         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29593         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29594         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29595         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29596         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29597         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29598         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29599         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29600         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29601         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29602         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29603         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29604         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29605         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29606         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29607         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29608         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29609         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29610         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29611         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29612
29613         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29614         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29615         (__libc_vfork): Define the function under this name.
29616         [!NOT_IN_libc] (__vfork): Make this an alias.
29617         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29618         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29619         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29620         (__libc_vfork): Define the function under this name.
29621         [!NOT_IN_libc] (__vfork): Make this an alias.
29622         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29623         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29624         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29625         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29626         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29627         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29628
29629         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29630         code that was previously under [RESET_PID].
29631         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29632         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29633         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29634
29635         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29636         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29637         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29638         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29639         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29640         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29641         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29642         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29643         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29644         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29645         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29646         Moved ...
29647         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29648         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29649         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29650         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29651         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29652         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29653         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29654         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29655         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29656         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29657         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29658         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29659         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29660         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29661         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29662         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29663         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29664         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29665         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29666         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29667         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29668         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29669         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29670         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29671         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29672         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29673         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29674         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29675         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29676
29677 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29678
29679         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29680         that was previously under [RESET_PID].
29681         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29682
29683 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29684
29685         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29686         not undefine and redefine.
29687         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29688         [O_CLOEXEC]: Make code unconditional.
29689         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29690         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29691         <kernel-features.h>.
29692         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29693         conditional variable definition.
29694         (shm_open) [O_CLOEXEC]: Make code unconditional.
29695         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29696         code.
29697
29698         * configure.ac (USE_REGPARMS): Don't define here.
29699         * configure: Regenerated.
29700         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29701         * sysdeps/i386/configure: Regenerated.
29702
29703         * nptl/createthread.c: Don't include kernel-features.h.
29704         * nptl/pthread_cancel.c: Likewise.
29705         * nptl/pthread_condattr_setclock.c: Likewise.
29706         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29707         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29708         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29709         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29710         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29711         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29712         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29713         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29714         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29715         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29716         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29717         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29718         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29719         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29720         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29721         * nscd/gai.c: Likewise.
29722         * nss/nss_db/db-open.c: Likewise.
29723         * sysdeps/generic/ldsodefs.h: Likewise.
29724         * sysdeps/sh/nptl/tls.h: Likewise.
29725         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29726         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29727         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29728         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29729         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29730         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29731         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29732         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29733         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29734         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29735         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29736         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29737         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29738         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29739         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29740         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29741         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29742         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29743         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29744         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29745         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29746         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29747         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29748         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29749         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29750         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29751         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29752         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29753         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29754         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29755         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29756         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29757         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29758         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29759         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29760         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29761         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29762         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29763         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29764         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29765         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29766         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29767         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29768         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29769         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29770         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29771         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29772         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29773         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29774         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29775         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29776         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29777         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29778         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29779         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29780         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29781         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29782         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29805         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29806         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29807         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29808         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29809         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29810         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29811         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29812         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29813         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29814         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29815         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29816         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29817         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29818         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29819         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29820         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29821         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29822         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29823         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29824         * sysdeps/unix/sysv/linux/system.c: Likewise.
29825         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29826         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29827         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29828         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29829         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29830         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29831         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29832
29833         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29834         * configure: Regenerated.
29835         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29836
29837         * configure.ac (base_machine): Do not set specially for particular
29838         machines here.
29839         * configure: Regenerated.
29840         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29841         settings from configure.ac.
29842         * sysdeps/i386/preconfigure: New file.
29843         * sysdeps/s390/preconfigure: Likewise.
29844         * sysdeps/sh/preconfigure: Likewise.
29845         * sysdeps/sparc/preconfigure: Likewise.
29846
29847 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29848
29849         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29850         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29851         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29852         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29853         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29854         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29855         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29856         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29857         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29858         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29859         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29860         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29861         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29862         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29863         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29864         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29865         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29866         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29867         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29868
29869         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29870         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29871         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29872         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29873         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29874         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29875         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29876         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29877         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29878         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29879         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29880         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29881         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29882         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29883         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29884         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29885         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29886         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29887         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29888         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29889         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29890         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29891         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29892         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29893         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29894         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29895         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29896         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29897         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29898         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29899         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29900         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29901         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29902         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29903         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29904         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29905         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29906         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29907
29908         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29909         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29910         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29911         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29912         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29913         Moved ...
29914         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29915         ... here.
29916         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29917         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29918         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29919         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29920         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29921         Moved ...
29922         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29923         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29924         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29925         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29926         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29927         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29928         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29929         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29930         Moved ...
29931         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29932         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29933         Moved ...
29934         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29935         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29936         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29937         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29938         Moved ...
29939         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29940         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29941         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29942         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29943         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29944         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29945         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29946         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29947         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29948         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29949         Moved ...
29950         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29951         ... here.
29952         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29953         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29954         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29955         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29956         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29957         Moved ...
29958         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29959         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29960         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29961         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29962         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29963         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29964         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29965         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29966         Moved ...
29967         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29968         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29969         Moved ...
29970         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29971         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29972         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29973         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29974         Moved ...
29975         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29976         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29977         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29978         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29979         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29980
29981 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29982
29983         * timezone/checktab.awk: Update from tzcode 2014e.
29984         * timezone/private.h: Likewise.
29985         * timezone/tzfile.h: Likewise.
29986         * timezone/zdump.c: Likewise.
29987         * timezone/zic.c: Likewise.
29988
29989         * sysdeps/unix/sysv/linux/kernel-features.h
29990         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29991         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29992         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29993         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29994         Remove conditional code.
29995
29996 2014-06-25  Will Newton  <will.newton@linaro.org>
29997
29998         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29999         (_dl_arm_cap_flags): Add HWCAP2 values.
30000         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
30001         (_DL_HWCAP_COUNT): Increase to 37.
30002         (_DL_HWCAP_LAST): New define.
30003         (_DL_HWCAP2_LAST): New define.
30004         (_dl_procinfo): Add support for printing
30005         AT_HWCAP2 entries.
30006         (_dl_string_hwcap): Use _dl_hwcap_string.
30007
30008 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30009
30010         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30011
30012 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30013
30014         * README: Do not mention ports directory.
30015
30016         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
30017         Remove macro.
30018         * sysdeps/unix/sysv/linux/futimes.c: Do not include
30019         <kernel-features.h>.
30020         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
30021         conditional variable definition.
30022         (__futimes): Update comment.
30023         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
30024         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
30025
30026         [BZ #16560]
30027         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
30028         arguments close to 0.
30029         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
30030         Likewise.
30031         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
30032         Likewise.
30033         * math/auto-libm-test-in: Add more tests of exp10.
30034         * math/auto-libm-test-out: Regenerated.
30035         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
30036
30037         * sysdeps/unix/sysv/linux/kernel-features.h
30038         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
30039         * sysdeps/unix/sysv/linux/readv.c: Do not include
30040         <kernel-features.h>.
30041         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30042         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30043         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30044         unconditional.
30045         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30046         conditional code.
30047         * sysdeps/unix/sysv/linux/writev.c: Do not include
30048         <kernel-features.h>.
30049         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30050         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30051         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30052         unconditional.
30053         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30054         conditional code.
30055
30056 2014-06-25  Will Newton  <will.newton@linaro.org>
30057
30058         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
30059         comment changes throughout the file.  Remove checks
30060         for HAVE_*_H definitions that are not required.
30061         (__gen_tempname): Call abort if an unknown kind value is
30062         passed.
30063
30064 2014-06-25  Andreas Schwab  <schwab@suse.de>
30065
30066         [BZ #17086]
30067         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
30068         scalbln, scalblnf, scalblnl in libc.
30069
30070 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
30071
30072         [BZ #17086]
30073         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
30074         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30075         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30076
30077 2014-06-24  Roland McGrath  <roland@hack.frob.com>
30078
30079         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
30080         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
30081         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
30082         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
30083         Update #include.
30084         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
30085         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
30086         Update #include.
30087         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
30088         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
30089         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
30090         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
30091         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
30092         * sysdeps/x86/bits/pthreadtypes.h: ... here.
30093         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
30094         * sysdeps/x86/bits/semaphore.h: ... here.
30095         * sysdeps/x86/nptl/elide.h: Moved ...
30096         * sysdeps/x86/elide.h: ... here.
30097         * sysdeps/x86_64/nptl/Implies: File removed.
30098         * sysdeps/i386/nptl/Implies: File removed.
30099
30100 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
30101
30102         [BZ #16539]
30103         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
30104         return the argument for normal arguments with exponent below -64.
30105         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
30106         Likewise.
30107         * math/auto-libm-test-in: Add another test of expm1.
30108         * math/auto-libm-test-out: Regenerated.
30109
30110         [BZ #16287]
30111         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
30112         calling __erfcl for arguments at least 16.
30113         * math/auto-libm-test-in: Add more tests of erf.
30114         * math/auto-libm-test-out: Regenerated.
30115
30116         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
30117         individual architectures.
30118         * sysdeps/unix/sysv/linux/configure: Regenerated.
30119         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
30120         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
30121         * sysdeps/unix/sysv/linux/powerpc/configure.ac
30122         (ldd_rewrite_script): Define variable.
30123         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
30124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
30125         file.
30126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
30127         generated file.
30128         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
30129         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
30130         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
30131         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
30132         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
30133         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
30134         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
30135         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
30136
30137 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30138
30139         [BZ #17084]
30140         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
30141         Rename member __data.d to __data.__elision_data.
30142
30143 2014-06-24  Wilco  <wdijkstr@arm.com>
30144
30145         * NEWS: Add 16918 to fixed bug list.
30146
30147 2014-06-24  Wilco  <wdijkstr@arm.com>
30148
30149         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
30150
30151 2014-06-24  Wilco  <wdijkstr@arm.com>
30152
30153         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
30154         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
30155         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
30156         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
30157         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
30158         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
30159         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
30160         Use _FPU_MASK_RM.
30161
30162 2014-06-24  Wilco  <wdijkstr@arm.com>
30163
30164         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
30165
30166 2014-06-24  Wilco  <wdijkstr@arm.com>
30167
30168         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
30169         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
30170         * sysdeps/arm/fesetround.c (fesetround): Remove space.
30171         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
30172
30173 2014-06-24  Wilco  <wdijkstr@arm.com>
30174
30175         [BZ #16918]
30176         * sysdeps/arm/feupdateenv.c (feupdateenv):
30177         Rewrite to reduce FPSCR accesses and fix return value.
30178
30179 2014-06-24  Wilco  <wdijkstr@arm.com>
30180
30181         * sysdeps/arm/fclrexcpt.c (feclearexcept):
30182         Optimize to avoid unnecessary FPSCR writes.
30183         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
30184         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
30185         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
30186         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30187
30188 2014-06-24  Wilco  <wdijkstr@arm.com>
30189
30190         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
30191         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
30192         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
30193         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
30194         Call libc_fetestexcept_vfp.
30195         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
30196         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
30197         __SOFTFP__ ifdef so that they can be built for softfp.
30198
30199 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30200
30201         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30202         argument type signed char.
30203
30204         * Makerules (check-abi): Dump diff of symlist if the test
30205         fails.
30206
30207 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30208
30209         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
30210         using abort.
30211
30212         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
30213         Remove unused variable ST.
30214
30215 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30216
30217         [BZ #16354]
30218         [BZ #17061]
30219         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
30220         small arguments before calling __expm1.
30221         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
30222         small arguments before calling __expm1f.
30223         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
30224         small arguments before calling __expm1l.
30225         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
30226         Likewise.
30227         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
30228         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
30229         spurious underflow for some cosh tests.
30230         * math/auto-libm-test-out: Regenerated.
30231         * sysdeps/i386/fpu/libm-test-ulps: Update.
30232
30233         [BZ #17050]
30234         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
30235         (__ieee754_y1): Set errno if return value overflows.
30236         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
30237         (__ieee754_y1f): Set errno if return value overflows.
30238         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
30239         (__ieee754_y1l): Set errno if return value overflows.
30240         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
30241         (__ieee754_y1l): Set errno if return value overflows.
30242         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
30243         * math/auto-libm-test-out: Regenerated.
30244
30245         * math/gen-auto-libm-tests.c: Document use of
30246         ignore-zero-inf-sign.
30247         (input_flag_type): Add value flag_ignore_zero_inf_sign.
30248         (input_flags): Add ignore-zero-inf-sign.
30249         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
30250         * math/gen-libm-test.pl (generate_testfile): Handle
30251         ignore-zero-inf-sign.
30252         * math/auto-libm-test-in: Mark some cpow tests with
30253         ignore-zero-inf-sign and some with xfail-rounding.
30254         * math/auto-libm-test-out: Regenerated.
30255         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
30256         * sysdeps/i386/fpu/libm-test-ulps: Update.
30257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30258
30259         [BZ #16315]
30260         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
30261         overflowing or underflowing operations take place with sign of
30262         result.
30263         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
30264         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
30265         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
30266         (__ieee754_pow): Recompute overflowing and underflowing results in
30267         original rounding mode.
30268         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
30269         (__powl_helper): Allow negative argument X and scale negated value
30270         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
30271         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
30272         overflowing or underflowing operations take place with sign of
30273         result.
30274         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
30275         Include <math.h>.
30276         * math/auto-libm-test-in: Add more tests of pow.
30277         * math/auto-libm-test-out: Regenerated.
30278         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
30279         (pow_tonearest_test_data): Remove.
30280         (pow_test_tonearest): Likewise.
30281         (pow_towardzero_test_data): Likewise.
30282         (pow_test_towardzero): Likewise.
30283         (pow_downward_test_data): Likewise.
30284         (pow_test_downward): Likewise.
30285         (pow_upward_test_data): Likewise.
30286         (pow_test_upward): Likewise.
30287         (main): Don't call removed functions.
30288         * sysdeps/i386/fpu/libm-test-ulps: Update.
30289         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30290
30291 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30292
30293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
30294         Moved ...
30295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
30296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30297         Moved ...
30298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
30299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
30300         Moved ...
30301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
30302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30303         Moved ...
30304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
30305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30306         File removed.
30307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
30308         File removed.
30309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
30310         File removed.
30311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
30312         File removed.
30313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
30314         File removed.
30315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
30316         File removed.
30317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
30318         File removed.
30319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
30320         File removed.
30321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
30322         File removed.
30323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
30324         File removed.
30325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
30326         File removed.
30327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
30328         File removed.
30329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
30330         Moved ...
30331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
30332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
30333         Moved ...
30334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
30335         ... here.
30336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
30337         Moved ...
30338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
30339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
30340         Moved ...
30341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
30342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
30343         Moved ...
30344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
30345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
30346         Moved ...
30347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
30348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
30349         Moved ...
30350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
30351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
30352         Moved ...
30353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
30354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
30355         Moved ...
30356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
30357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
30358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
30359         ... here.
30360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
30361         Moved ...
30362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
30363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30364         Moved ...
30365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30366         ... here.
30367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30368         Moved ...
30369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30370         ... here.
30371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30372         Moved ...
30373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30374         ... here.
30375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30376         Moved ...
30377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30379         Moved ...
30380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30384         Moved ...
30385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30386         ... here.
30387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30388         Moved ...
30389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30390         ... here.
30391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30392         Moved ...
30393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30395         Moved ...
30396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30398         Moved ...
30399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30401         Moved ...
30402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30404         Moved ...
30405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30406         ... here.
30407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30408         Moved ...
30409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30411         Moved ...
30412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30414         Moved ...
30415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30417         Moved ...
30418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30422         Moved ...
30423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30425         Moved ...
30426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30428         Moved ...
30429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30430         ... here.
30431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30432         Moved ...
30433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30434         ... here.
30435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30436         Moved ...
30437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30438         ... here.
30439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30440         Moved ...
30441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30443         Moved ...
30444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30446         Moved ...
30447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30449         Moved ...
30450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30451         ... here.
30452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30453         Moved ...
30454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30455         ... here.
30456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30457         Moved ...
30458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30459         ... here.
30460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30461         Moved ...
30462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30464         Moved ...
30465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30466
30467 2014-06-23  Will Newton  <will.newton@linaro.org>
30468             Wilco  <wdijkstr@arm.com>
30469
30470         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30471         implementation.  Include get-rounding-mode.h.
30472         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30473         [!libc_feholdsetround_noex_ctx]: Define
30474         libc_feholdsetround_noex_ctx.
30475         [!libc_feholdsetround_noexf_ctx]: Define
30476         libc_feholdsetround_noexf_ctx.
30477         [!libc_feholdsetround_noexl_ctx]: Define
30478         libc_feholdsetround_noexl_ctx.
30479         (libc_feholdsetround_ctx): New function.
30480         (libc_feresetround_ctx): New function.
30481         (libc_feholdsetround_noex_ctx): New function.
30482         (libc_feresetround_noex_ctx): New function.
30483
30484 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30485
30486         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30487         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30488         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30489         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30490         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30491         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30492
30493         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30494         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30495         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30496         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30497         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30498         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30499         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30500         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30501         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30502         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30503         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30504         Moved ...
30505         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30506         ... here.
30507         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30508         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30509         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30510         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30511         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30512         Moved ...
30513         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30514         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30515         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30516         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30517         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30518         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30519         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30520         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30521         Moved ...
30522         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30523         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30524         Moved ...
30525         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30526         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30527         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30528         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30529         Moved ...
30530         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30531         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30532         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30533         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30534         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30535         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30536         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30537         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30538         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30539         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30540         Moved ...
30541         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30542         ... here.
30543         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30544         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30545         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30546         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30547         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30548         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30549         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30550         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30551         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30552         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30553         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30554         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30555         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30556         Moved ...
30557         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30558         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30559         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30560         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30561         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30562         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30563         Moved ...
30564         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30565         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30566         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30567         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30568         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30569
30570         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30571         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30572         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30573         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30574         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30575         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30576         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30577         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30578         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30579         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30580         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30581         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30582         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30583         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30584         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30585         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30586         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30587         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30588         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30589         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30590         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30591         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30592         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30593         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30594         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30595         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30596         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30597         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30598
30599 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30600
30601         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30602         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30603         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30604         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30605         (IPV6_PMTUDISC_INTERFACE): Likewise.
30606         (IPV6_PMTUDISC_OMIT): Likewise.
30607
30608 2014-06-23  Andreas Schwab  <schwab@suse.de>
30609
30610         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30611         Remove unused errout label.
30612
30613 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30614
30615         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30616         macro: hardware supports Vector Crypto instructions.
30617
30618 2014-06-23  Will Newton  <will.newton@linaro.org>
30619
30620         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30621         rather than __builtin_expect.
30622
30623         * elf/dl-lookup.c (undefined_msg): Remove variable.
30624         (_dl_lookup_symbol_x): Replace undefined_msg with string
30625         literal.
30626
30627         * elf/dl-lookup.c (do_lookup_unique): New function.
30628         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30629         to a separate function.
30630
30631 2014-06-23  Andreas Schwab  <schwab@suse.de>
30632
30633         [BZ #17079]
30634         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30635         before reading the next line.
30636
30637 2014-06-23  Will Newton  <will.newton@linaro.org>
30638
30639         * test-skeleton.c (signal_handler): Use printf and %m
30640         rather than perror.  Use printf rather than fprintf to
30641         stderr.  Use puts rather than fputs to stderr.
30642         (main): Likewise.
30643
30644 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30645
30646         * nscd/nscd.c (thread_info_t): Remove typedef.
30647         (thread_info): Remove variable.
30648
30649 2014-06-21  Allan McRae  <allan@archlinux.org>
30650
30651         * NEWS: Mention CVE-2014-4043.
30652
30653 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30654
30655         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30656         * nptl/smp.h: ... here.
30657
30658         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30659
30660         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30661         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30662         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30663         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30664
30665         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30666         * nptl/stack-aliasing.h: New file.
30667         * sysdeps/i386/i686/stack-aliasing.h: New file.
30668         * sysdeps/i386/i686/nptl/Makefile: File removed.
30669         * sysdeps/x86_64/stack-aliasing.h: New file.
30670         * sysdeps/x86_64/nptl/Makefile
30671         (CFLAGS-pthread_create.c): Variable removed.
30672
30673         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30674         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30675         old file.
30676         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30677         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30678         old file.
30679
30680 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30681
30682         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30683         (__ASSUME_SIGFRAME_V2): Remove macro.
30684         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30685         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30686         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30687         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30688         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30689         Declare as function.  Remove conditional macro definitions.
30690         (__default_rt_sa_restorer): Likewise.
30691         (__default_sa_restorer_v1): Remove declaration.
30692         (__default_sa_restorer_v2): Likewise.
30693         (__default_rt_sa_restorer_v1): Likewise.
30694         (__default_rt_sa_restorer_v2): Likewise.
30695         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30696         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30697         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30698
30699 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30700
30701         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30702         (libpthread-routines): Add sysdep.
30703         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30704         * sysdeps/unix/sysv/linux/sparc/Versions
30705         (libpthread: GLIBC_2.3.3): New version set.
30706         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30707         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30708         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30709         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30710         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30711         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30712         Moved ...
30713         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30714         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30715         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30716         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30717         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30718         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30719         * sysdeps/sparc/nptl/sem_init.c: ... here.
30720         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30721         * sysdeps/sparc/nptl/sem_post.c: ... here.
30722         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30723         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30724         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30725         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30726         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30727         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30728         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30729         (libpthread-routines): Add cpu_relax.
30730         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30731         File removed.
30732         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30733         (librt: GLIBC_2.3.3): New version set.
30734         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30735         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30736         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30737         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30738         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30739         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30740         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30741         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30742         Moved ...
30743         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30744         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30745         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30746         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30747         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30748         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30749         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30750         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30751         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30752         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30753         Moved ...
30754         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30755         Update #include.
30756         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30757         Moved ...
30758         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30759         Update #include.
30760         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30761         Moved ...
30762         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30763         Update #include.
30764         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30765         Moved ...
30766         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30767         Update #include.
30768         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30769         Moved ...
30770         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30771         Update #include.
30772         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30773         Moved ...
30774         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30775         Update #include.
30776         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30777         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30778         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30779         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30780         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30781         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30782         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30783         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30784         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30785         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30786         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30787         Moved ...
30788         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30789         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30790         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30791         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30792         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30793
30794 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30795
30796         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30797         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30798         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30799         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30800         * nscd/nscd.c: Likewise.
30801         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30802         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30803         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30804         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30805
30806         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30807         <kernel-features.h>.
30808         (init_mq_netlink): Remove conditional have_sock_cloexec
30809         definitions.  Remove code conditional on have_sock_cloexec < 0.
30810         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30811         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30812         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30813         <kernel-features.h>.
30814         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30815         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30816
30817 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30818
30819         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30820         Add tests for memset_chk and memset.
30821
30822         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30823         with AVX2_Usable.
30824
30825 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30826
30827         [BZ #16046]
30828         * elf/tst-dl-iter-static.c: New file.
30829         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30830
30831         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30832         error.
30833
30834 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30835
30836         * sysdeps/unix/sysv/linux/kernel-features.h
30837         (__ASSUME_F_GETOWN_EX): Remove macro.
30838         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30839         <kernel-features.h>.
30840         (miss_F_GETOWN_EX): Remove variable or macro.
30841         (do_fcntl): Do not check miss_F_GETOWN_EX.
30842         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30843
30844         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30845         Remove macro.
30846         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30847         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30848         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30849
30850         * sysdeps/unix/sysv/linux/kernel-features.h
30851         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30852         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30853         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30854         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30855
30856 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30857
30858         [BZ #17075]
30859         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30860         Fix calculation of the symbol's value.
30861         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30862         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30863         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30864         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30865         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30866         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30867         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30868         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30869         (modules-names): Add `tst-armtlsdescmod',
30870         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30871         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30872         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30873         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30874         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30875         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30876         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30877         ($(objpfx)tst-armtlsdescloc): New dependency.
30878         ($(objpfx)tst-armtlsdescextnow): Likewise.
30879         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30880         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30881         TLS scheme support.
30882         * sysdeps/arm/configure: Regenerate.
30883
30884 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30885
30886         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30887         (__atfct_seterrno_2): Likewise.
30888         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30889         <kernel-features.h>.
30890         (__ASSUME_ATFCTS): Do not undefine and redefine.
30891         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30892         (__have_atfcts): Remove conditional definition.
30893         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30894         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30895         unreachable if [__ASSUME_ATFCTS].
30896         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30897         not undefine and redefine.
30898         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30899         <kernel-features.h>.
30900         (faccessat) [__NR_faccessat]: Make code unconditional.
30901         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30902         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30903         <kernel-features.h>.
30904         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30905         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30906         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30907         <kernel-features.h>.
30908         (fchownat) [__NR_fchownat]: Make code unconditional.
30909         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30910         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30911         <kernel-features.h>.
30912         (futimesat) [__NR_futimesat]: Make code unconditional.
30913         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30914         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30915         <kernel-features.h>.
30916         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30917         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30918         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30919         <kernel-features.h>.
30920         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30921         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30922         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30923         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30924         <kernel-features.h>.
30925         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30926         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30927         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30928         <kernel-features.h>.
30929         (linkat) [__NR_linkat]: Make code unconditional.
30930         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30931         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30932         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30933         <kernel-features.h>.
30934         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30935         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30936         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30937         <kernel-features.h>.
30938         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30939         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30940         * sysdeps/unix/sysv/linux/openat.c: Do not include
30941         <kernel-features.h>.
30942         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30943         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30944         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30945         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30946         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30947         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30948         <kernel-features.h>.
30949         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30950         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30951         result of INLINE_SYSCALL directly, not via int variable.
30952         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30953         <kernel-features.h>.
30954         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30955         (renameat) [__NR_renameat]: Make code unconditional.
30956         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30957         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30958         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30959         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30960         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30961         (__ASSUME_ATFCTS): Do not undefine and redefine.
30962         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30963         <kernel-features.h>.
30964         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30965         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30966         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30967         <kernel-features.h>.
30968         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30969         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30970         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30971         (__ASSUME_ATFCTS): Do not undefine and redefine.
30972         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30973         <kernel-features.h>.
30974         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30975         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30976         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30977         <kernel-features.h>.
30978         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30979         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30980
30981 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30982
30983         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30984
30985 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30986
30987         [BZ #17069]
30988         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30989         constructed tree before returning error.
30990         * posix/bug-regexp36.c: Expand test case.
30991
30992 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30993
30994         [BZ #6803]
30995         * math/libm-test.inc (scalbln_test_date):
30996         Add errno expectations.
30997         * math/w_scalblnf.c: New File.
30998         Add wrapper which checks for setting errno to ERANGE.
30999         Add weak_alias for corresponding scalbln function.
31000         * math/w_scalbln.c: Likewise.
31001         * math/w_scalblnl.c: Likewise.
31002         * math/Makefile (libm-calls): Add w_scalbln.
31003         * sysdeps/ieee754/flt-32/s_scalblnf.c:
31004         Remove weak_alias for corresponding scalbln function.
31005         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
31006         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
31007         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31008         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31009         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
31010         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
31011         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
31012         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
31013         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
31014         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
31015         Remove long_double_symbol for scalblnl function in libm, libc.
31016         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
31017         Add wrapper which checks for setting errno to ERANGE.
31018         Add long_double_symbol for scalblnl function in libm, libc.
31019         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
31020         Remove long_double_symbol for scalblnl in libm.
31021         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
31022         Add wrapper which checks for setting errno to ERANGE.
31023         Add long_double_symbol for scalblnl function in libm.
31024         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
31025         Do not use wrapper because of own implementation.
31026
31027 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
31028
31029         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
31030         3 bytes for __pad1 for x32.
31031         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
31032
31033 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
31034             H.J. Lu  <hongjiu.lu@intel.com>
31035
31036         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
31037         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
31038         * sysdeps/x86_64/multiarch/memset.S: Likewise.
31039         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
31040         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
31041
31042 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
31043
31044         [BZ #17069]
31045         * posix/regcomp.c (parse_expression): Deallocate partially
31046         constructed tree before returning error.
31047         * posix/Makefile.c (tests): Add bug-regex36.
31048         (generated): Add bug-regex36.mtrace.
31049         (tests-special): Add $(objpfx)bug-regex36-mem.out
31050         (bug-regex36-ENV): New variable.
31051         ($(objpfx)bug-regex36-mem.out): New rule.
31052         * posix/bug-regex36.c: New file.
31053
31054 2014-06-19  Will Newton  <will.newton@linaro.org>
31055
31056         * malloc/malloc.c (systrim): If extra is zero then return
31057         early.
31058
31059 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31060
31061         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
31062
31063 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
31064
31065         * sysdeps/aarch64/strchr.S: New file.
31066
31067 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31068
31069         [BZ #17022]
31070         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
31071         from arguments -2 or below.
31072         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
31073         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
31074
31075 2014-06-18  Andreas Schwab  <schwab@suse.de>
31076
31077         [BZ #17062]
31078         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
31079         of a bracket expr not to run off the end of the string.
31080         * posix/Makefile (tests): Add tst-fnmatch3.
31081         * posix/tst-fnmatch3.c: New file.
31082
31083 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31084
31085         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
31086         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31087         [$(cross-compiling) = no]: Likewise.
31088         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31089         [$(cross-compiling) = no]: Likewise.
31090
31091 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31092
31093         [BZ #17031]
31094         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
31095         double, adjusted for any remainder from the high double.
31096         * math/libm-test.inc (nearbyint): Add tests.
31097         (rint): Likewise.
31098
31099 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31100
31101         * nptl/sysdeps/powerpc/Makefile: Moved ...
31102         * sysdeps/powerpc/nptl/Makefile: ... here.
31103         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
31104         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
31105         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
31106         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
31107         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
31108         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
31109         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
31110         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
31111         * nptl/sysdeps/powerpc/tls.h: Moved ...
31112         * sysdeps/powerpc/nptl/tls.h: ... here.
31113
31114 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
31115
31116         [BZ #16681]
31117         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
31118         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
31119         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
31120         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
31121         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
31122         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
31123         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
31124         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
31125         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
31126
31127 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
31128
31129         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31130
31131 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
31132
31133         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
31134         defined operator.
31135
31136         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
31137         $TIMEOUTFACTOR.
31138
31139 2014-06-16  Florian Weimer  <fweimer@redhat.com>
31140
31141         [BZ #17058]
31142         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
31143         non-executed part of the test.
31144
31145 2014-06-16  Andreas Schwab  <schwab@suse.de>
31146
31147         * string/bits/string2.h (strdup, strndup): Update feature guard.
31148
31149 2014-06-14  David S. Miller  <davem@davemloft.net>
31150
31151         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31152
31153 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
31154
31155         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
31156         that was previously under [RESET_PID].
31157         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
31158
31159         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
31160         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
31161         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
31162         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31163         (__libc_vfork): New strong alias.
31164         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
31165
31166 2014-06-14 Andi Kleen  <ak@linux.intel.com>
31167
31168         * sysdeps/generic/elide.h: New file.
31169
31170 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31171
31172         * Makefile (installed-headers): Adjust path of pthread.h header.
31173
31174 2014-06-13  Roland McGrath  <roland@hack.frob.com>
31175
31176         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
31177         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
31178         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
31179         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
31180
31181         * nptl/sysdeps/s390/Makefile: Moved ...
31182         * sysdeps/s390/nptl/Makefile: ... here.
31183         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
31184         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
31185         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
31186         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
31187         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
31188         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
31189         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
31190         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
31191         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
31192         * sysdeps/s390/nptl/pthreaddef.h: ... here.
31193         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
31194         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
31195         * nptl/sysdeps/s390/tls.h: Moved ...
31196         * sysdeps/s390/nptl/tls.h: ... here.
31197
31198         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
31199         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
31200
31201 2014-06-13  David S. Miller  <davem@davemloft.net>
31202
31203         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
31204         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
31205         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
31206         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
31207         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
31208         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
31209         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
31210         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
31211         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
31212         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
31213         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
31214         Remove RESET_PID cpp guards.
31215         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
31216         Remove RESET_PID cpp guards.
31217         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
31218
31219 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
31220
31221         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
31222         __sp to uintptr_t.
31223
31224 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31225
31226         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
31227         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
31228         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
31229         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
31230         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
31231         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
31232         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
31233         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
31234         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
31235         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
31236         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
31237         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
31238         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
31239         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
31240         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
31241         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
31242         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
31243         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
31244         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
31245         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
31246
31247         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
31248         (pthread_rwlock_rdlock): Add elision.
31249         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
31250         (pthread_rwlock_wrlock): Add elision.
31251         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
31252         (pthread_rwlock_trywrlock): Add elision.
31253         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
31254         (pthread_rwlock_tryrdlock): Add elision.
31255         * nptl/pthread_rwlock_unlock.c: Include elide.h.
31256         (pthread_rwlock_tryrdlock): Add elision unlock.
31257         * nptl/sysdeps/pthread/pthread.h:
31258         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
31259         (PTHREAD_RWLOCK_INITIALIZER,
31260         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
31261         Handle new elision field.
31262         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
31263         * sysdeps/arm/nptl/bits/pthreadtypes.h
31264         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31265         * sysdeps/sh/nptl/bits/pthreadtypes.h
31266         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31267         * sysdeps/tile/nptl/bits/pthreadtypes.h
31268         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31269         * sysdeps/a/nptl/bits/pthreadtypes.h
31270         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31271         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
31272         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31273         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
31274         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31275         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
31276         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31277         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
31278         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31279         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
31280         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31281         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
31282         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31283         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
31284         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31285         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
31286         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31287         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
31288         (elision_init): Set try_xbegin to zero when no RTM.
31289         * sysdeps/x86/nptl/bits/pthreadtypes.h
31290         (pthread_rwlock_t): Change __pad1 to __rwelision.
31291         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31292
31293 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31294
31295         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
31296         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
31297         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
31298         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
31299
31300 2014-06-13  Meador Inge  <meadori@codesourcery.com>
31301
31302         [BZ #16996]
31303         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
31304         that the cached result has been set before returning it.
31305
31306 2014-06-12  Roland McGrath  <roland@hack.frob.com>
31307
31308         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
31309         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
31310         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
31311         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
31312         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
31313         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
31314
31315         * nptl/sysdeps/sparc/Makefile: Moved ...
31316         * sysdeps/sparc/nptl/Makefile: ... here.
31317         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
31318         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
31319         * nptl/sysdeps/sparc/tls.h: Moved ...
31320         * sysdeps/sparc/nptl/tls.h: ... here.
31321         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
31322         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
31323         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
31324         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
31325         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
31326         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
31327         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
31328         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
31329         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
31330         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
31331         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
31332         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
31333         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
31334         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
31335         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
31336         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
31337         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
31338         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
31339         Update #include.
31340         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
31341         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
31342         Update #include.
31343         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
31344         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
31345         Update #include.
31346         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
31347         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
31348         Update #include.
31349
31350         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31351
31352         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
31353         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
31354
31355         * sysdeps/pthread/posix-timer.h: Include <list.h>.
31356         (struct list_links): Type removed.
31357         (struct thread_node, struct timer_node): Replace struct list_links
31358         with struct list_head.
31359         (list_unlink_ip): Likewise.
31360         * sysdeps/pthread/timer_routines.c
31361         (timer_free_list, thread_free_list, thread_active_list): Likewise.
31362         (list_append, list_insbefore): Likewise.
31363         (list_init): Function removed.
31364         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31365         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31366         * sysdeps/pthread/Makefile: ... here, new file.
31367
31368         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31369         * sysdeps/nptl/Implies: ... here.
31370         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31371         * nptl/sysdeps/pthread/list.h: Moved ...
31372         * include/list.h: ... here.
31373         * nptl/sysdeps/pthread/createthread.c: Moved ...
31374         * nptl/createthread.c: ... here.
31375         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31376         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31377         * nptl/pt-longjmp.c: ... here.
31378         * nptl/sysdeps/pthread/Makefile: Moved ...
31379         * sysdeps/nptl/Makefile: ... here.
31380         * nptl/sysdeps/pthread/Subdirs: Moved ...
31381         * sysdeps/nptl/Subdirs: ... here.
31382         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31383         * sysdeps/nptl/aio_misc.h: ... here.
31384         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31385         * sysdeps/nptl/bits/libc-lock.h: ... here.
31386         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31387         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31388         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31389         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31390         * nptl/sysdeps/pthread/configure: Moved ...
31391         * sysdeps/nptl/configure: ... here.
31392         * nptl/sysdeps/pthread/configure.ac: Moved ...
31393         * sysdeps/nptl/configure.ac: ... here.
31394         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31395         * sysdeps/nptl/gai_misc.h: ... here.
31396         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31397         * sysdeps/nptl/librt-cancellation.c: ... here.
31398         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31399         * sysdeps/nptl/malloc-machine.h: ... here.
31400         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31401         * sysdeps/nptl/pthread-functions.h: ... here.
31402         * nptl/sysdeps/pthread/pthread.h: Moved ...
31403         * sysdeps/nptl/pthread.h: ... here.
31404         * nptl/sysdeps/pthread/setxid.h: Moved ...
31405         * sysdeps/nptl/setxid.h: ... here.
31406         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31407         * sysdeps/nptl/sigfillset.c: ... here.
31408         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31409         * sysdeps/nptl/tcb-offsets.h: ... here.
31410         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31411         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31412         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31413         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31414         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31415         * sysdeps/pthread/allocalim.h: ... here.
31416         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31417         * sysdeps/pthread/bits/sigthread.h: ... here.
31418         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31419         * sysdeps/pthread/flockfile.c: ... here.
31420         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31421         * sysdeps/pthread/ftrylockfile.c: ... here.
31422         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31423         * sysdeps/pthread/funlockfile.c: ... here.
31424         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31425         * sysdeps/pthread/posix-timer.h: ... here.
31426         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31427         * sysdeps/pthread/timer_create.c: ... here.
31428         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31429         * sysdeps/pthread/timer_delete.c: ... here.
31430         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31431         * sysdeps/pthread/timer_getoverr.c: ... here.
31432         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31433         * sysdeps/pthread/timer_gettime.c: ... here.
31434         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31435         * sysdeps/pthread/timer_routines.c: ... here.
31436         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31437         * sysdeps/pthread/timer_settime.c: ... here.
31438         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31439         * sysdeps/pthread/tst-timer.c: ... here.
31440         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31441         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31442
31443         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31444         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31445
31446         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31447         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31448         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31449         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31450         Update #include target.
31451         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31452         * sysdeps/i386/i686/nptl/Makefile: ... here.
31453         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31454         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31455         Update #include target.
31456         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31457         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31458         * nptl/sysdeps/i386/Makefile: Moved ...
31459         * sysdeps/i386/nptl/Makefile: ... here.
31460         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31461         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31462         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31463         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31464         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31465         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31466         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31467         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31468         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31469         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31470         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31471         * nptl/sysdeps/i386/tls.h: Moved ...
31472         * sysdeps/i386/nptl/tls.h: ... here.
31473
31474         * sysdeps/sh/Makefile [$(subdir) = csu]
31475         (gen-as-const-headers): Add tcb-offsets.sym.
31476         * nptl/sysdeps/sh/Makefile: File removed.
31477         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31478         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31479         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31480         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31481         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31482         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31483         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31484         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31485         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31486         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31487         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31488         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31489         * nptl/sysdeps/sh/tls.h: Moved ...
31490         * sysdeps/sh/nptl/tls.h: ... here.
31491         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31492         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31493         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31494         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31495         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31496         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31497         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31498         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31499         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31500         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31501         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31502         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31503         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31504         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31505         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31506         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31507         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31508         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31509         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31510         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31511         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31512         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31513         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31514         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31515         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31516         Moved ...
31517         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31518         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31519         Moved ...
31520         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31521         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31522         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31523         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31524         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31525         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31526         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31527         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31528         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31529         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31530         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31531         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31532         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31533         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31534         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31535         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31536         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31537         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31538         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31539
31540 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31541
31542         * posix/spawn_faction_addopen.c: Include string.h.
31543
31544 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31545
31546         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31547         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31548         * nptl/sysdeps/x86_64/Makefile: Moved ...
31549         * sysdeps/x86_64/nptl/Makefile: ... here.
31550         * nptl/sysdeps/x86_64/configure: Moved ...
31551         * sysdeps/x86_64/nptl/configure: ... here.
31552         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31553         * sysdeps/x86_64/nptl/configure.ac: ... here.
31554         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31555         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31556         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31557         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31558         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31559         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31560         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31561         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31562         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31563         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31564         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31565         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31566         * nptl/sysdeps/x86_64/tls.h: Moved ...
31567         * sysdeps/x86_64/nptl/tls.h: ... here.
31568         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31569         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31570         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31571         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31572
31573         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31574
31575 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31576
31577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31578
31579 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31580
31581         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31582         type.
31583         [POSIX] (off_t): Likewise.
31584         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31585         [POSIX] (S_ISBLK): Require macro.
31586         [POSIX] (S_ISCHR): Likewise.
31587         [POSIX] (S_ISDIR): Likewise.
31588         [POSIX] (S_ISFIFO): Likewise.
31589         [POSIX] (S_ISREG): Likewise.
31590         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31591         optional-macro.
31592         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31593         type.
31594         [POSIX] (time_t): Likewise.
31595         [POSIX] (timer_t): Likewise.
31596
31597 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31598
31599         [BZ #17048]
31600         * posix/spawn_int.h (struct __spawn_action): Make the path string
31601         non-const to support deallocation.
31602         * posix/spawn_faction_addopen.c
31603         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31604         * posix/spawn_faction_destroy.c
31605         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31606         path in all spawn_do_open actions.
31607         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31608         posix_spawn_file_actions_addopen.
31609
31610 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31611
31612         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31613         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31614         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31615         conditional code always true.
31616         (__libc_vfork): New alias.
31617
31618 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31619
31620         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31621         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31622
31623         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31624
31625         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31626         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31627
31628         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31629         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31630
31631         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31632         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31633
31634 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31635
31636         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31637         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31638         multiarch strcmp for PPC64.
31639         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31640         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31641         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31642         multiarch optimizations.
31643         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31644         (__libc_ifunc_impl_list): Likewise.
31645
31646 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31647
31648         * benchtests/scripts/validate_benchout.py: New script.
31649         * benchtests/Makefile (bench-func): Call it.
31650         * benchtests/scripts/benchout.schema.json: New file.
31651
31652 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31653
31654         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31655         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31656         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31657         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31658         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31659         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31660         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31661         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31662         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31663         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31664         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31665         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31666         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31667         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31668         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31669         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31670         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31671         Moved ...
31672         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31673         ... here.
31674         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31675         Moved ...
31676         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31677         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31678         Moved ...
31679         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31680         ... here.
31681         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31682         Moved ...
31683         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31684         ... here.
31685         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31686         Moved ...
31687         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31688         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31689         Moved ...
31690         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31691         ... here.
31692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31693         Moved ...
31694         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31695         ... here.
31696         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31697         Moved ...
31698         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31699         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31700         Moved ...
31701         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31702         ... here.
31703         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31704         Moved ...
31705         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31706         ... here.
31707         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31708         Moved ...
31709         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31710         ... here.
31711         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31712         Moved ...
31713         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31714         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31715         Moved ...
31716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31717         ... here.
31718         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31719         Moved ...
31720         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31721         ... here.
31722         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31723         Moved ...
31724         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31725         ... here.
31726         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31727         Moved ...
31728         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31729         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31730         Moved ...
31731         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31732         ... here.
31733         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31734         Moved ...
31735         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31736         ... here.
31737         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31738         Moved ...
31739         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31741         Moved ...
31742         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31743         ... here.
31744         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31745         Moved ...
31746         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31747         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31748         Moved ...
31749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31750         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31751         Moved ...
31752         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31753         ... here.
31754         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31755         Moved ...
31756         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31757         ... here.
31758         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31759         Moved ...
31760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31761         ... here.
31762         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31763         Moved ...
31764         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31765         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31766         Moved ...
31767         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31768         ... here.
31769         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31770         Moved ...
31771         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31772         ... here.
31773         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31774         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31775         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31776         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31777         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31778         Moved ...
31779         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31780         ... here.
31781         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31782         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31783         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31784         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31785         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31786         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31787         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31788         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31789         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31790         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31791         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31792         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31793         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31794         Moved ...
31795         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31796         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31797         Moved ...
31798         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31799         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31800         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31801         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31802         Moved ...
31803         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31804         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31805         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31806         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31807         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31808         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31809         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31810
31811 2014-06-10  Wilco  <wdijkstr@arm.com>
31812
31813         * math/test-fenv-return.c: New file.
31814         * math/Makefile: Add new test test-fenv-return.
31815
31816 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31817
31818         [BZ #17042]
31819         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31820         when x - 1 is zero.
31821         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31822         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31823         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31824         0.0L for an argument of 1.0L.
31825         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31826         Likewise.
31827         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31828         value when x - 1 is zero.
31829         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31830         * sysdeps/i386/fpu/libm-test-ulps: Update.
31831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31832
31833 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31834
31835         [BZ #15119]
31836         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31837
31838 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31839
31840         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31841         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31842
31843 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31844
31845         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31846         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31847
31848         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31849         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31850
31851         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31852         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31853
31854         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31855         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31856
31857         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31858         if not already defined.
31859         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31860         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31861         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31862         (TLS_INIT_TP): Use it.
31863         (TLS_DEFINE_INIT_TP): New macro.
31864         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31865
31866 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31867
31868         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31869         constant.
31870         [POSIX] (IXANY): Likewise.
31871         [POSIX] (OLCUC): Likewise.
31872         [POSIX || POSIX2008] (CBAUD): Do not allow.
31873         [POSIX || POSIX2008] (DEFECHO): Likewise.
31874         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31875         [POSIX || POSIX2008] (ECHOKE): Likewise.
31876         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31877         [POSIX || POSIX2008] (EXTA): Likewise.
31878         [POSIX || POSIX2008] (EXTB): Likewise.
31879         [POSIX || POSIX2008] (FLUSHO): Likewise.
31880         [POSIX || POSIX2008] (LOBLK): Likewise.
31881         [POSIX || POSIX2008] (PENDIN): Likewise.
31882         [POSIX || POSIX2008] (SWTCH): Likewise.
31883         [POSIX || POSIX2008] (VDISCARD): Likewise.
31884         [POSIX || POSIX2008] (VDSUSP): Likewise.
31885         [POSIX || POSIX2008] (VLNEXT): Likewise.
31886         [POSIX || POSIX2008] (VREPRINT): Likewise.
31887         [POSIX || POSIX2008] (VSTATUS): Likewise.
31888         [POSIX || POSIX2008] (VWERASE): Likewise.
31889         (B*): Change to B[0123456789]*.
31890         * conform/data/time.h-data [POSIX || UNIX98]
31891         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31892         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31893         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31894         [POSIX] (tm_*): Do not allow.
31895
31896 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31897
31898         * Makefile (install): Don't set LANGUAGE.
31899         * Makefile.in (install): Likewise.
31900         * assert/Makefile (test-assert-ENV): Remove variable.
31901         (test-assert-perr-ENV): Likewise.
31902         * elf/Makefile (neededtest4-ENV): Likewise.
31903         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31904         [$(cross-compiling) = no]: Don't set LANGUAGE.
31905         * io/ftwtest-sh (LANG): Remove variable.
31906         * libio/Makefile (tst-widetext-ENV): Likewise.
31907         * manual/install.texi (Running make install): Don't refer to
31908         environment settings for make install.
31909         * INSTALL: Regenerated.
31910         * nptl/tst-tls6.sh: Don't set LANG.
31911         * posix/globtest.sh (LANG): Remove variable.
31912         * string/Makefile (tester-ENV): Likewise.
31913         (inl-tester-ENV): Likewise.
31914         (noinl-tester-ENV): Likewise.
31915         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31916         [$(cross-compiling) = no]: Don't set LANGUAGE.
31917         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31918         without explicit environment settings.
31919
31920 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31921
31922         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31923         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31924         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31925         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31926
31927 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31928
31929         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31930         other files in the crypt directory.
31931         * crypt/crypt.c: Remove duplicate includes.
31932         * crypt/crypt-entry.c: Likewise.
31933         * crypt/crypt_util.c: Likewise.
31934
31935 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31936
31937         * Makeconfig (run-program-env): New variable.
31938         (run-program-prefix-before-env): Likewise.
31939         (run-program-prefix-after-env): Likewise.
31940         (run-program-prefix): Define in terms of new variables.
31941         (built-program-cmd-before-env): New variable.
31942         (built-program-cmd-after-env): Likewise.
31943         (built-program-cmd): Define in terms of new variables.
31944         (test-program-prefix-before-env): New variable.
31945         (test-program-prefix-after-env): Likewise.
31946         (test-program-prefix): Define in terms of new variables.
31947         (test-program-cmd-before-env): New variable.
31948         (test-program-cmd-after-env): Likewise.
31949         (test-program-cmd): Define in terms of new variables.
31950         * Rules (make-test-out): Use $(run-program-env).
31951         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31952         (help): Do not mention environment variables.  Mention
31953         --timeoutfactor option.
31954         (timeoutfactor): New variable.
31955         (blacklist_exports): Remove function.
31956         (exports): Remove variable.
31957         (command): Do not include ${exports}.
31958         * manual/install.texi (Configuring and compiling): Do not mention
31959         test wrappers preserving environment variables.  Mention that last
31960         assignment to a variable must take precedence.
31961         * INSTALL: Regenerated.
31962         * benchtests/Makefile (run-bench): Use $(run-program-env).
31963         * catgets/Makefile ($(objpfx)test1.cat): Use
31964         $(built-program-cmd-before-env), $(run-program-env) and
31965         $(built-program-cmd-after-env).
31966         ($(objpfx)test2.cat): Do not specify environment variables
31967         explicitly.
31968         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31969         $(run-program-env) and $(built-program-cmd-after-env).
31970         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31971         $(run-program-env) and $(test-program-cmd-after-env).
31972         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31973         explicitly.
31974         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31975         run_program_env and test_program_cmd_after_env arguments.
31976         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31977         * elf/tst-pathopt.sh: Use run_program_env argument.
31978         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31979         $(test-wrapper-env) and $(run-program-env).
31980         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31981         run_program_env arguments.
31982         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31983         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31984         $(test-program-prefix-before-env), $(run-program-env) and
31985         $(test-program-prefix-after-env).
31986         ($(objpfx)tst-gettext2.out): Likewise.
31987         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31988         run_program_env and test_program_prefix_after_env arguments.
31989         * intl/tst-gettext2.sh: Likewise.
31990         * intl/tst-gettext4.sh: Do not set environment variables
31991         explicitly.
31992         * intl/tst-gettext6.sh: Likewise.
31993         * intl/tst-translit.sh: Likewise.
31994         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31995         $(test-program-prefix-before-env), $(run-program-env) and
31996         $(test-program-prefix-after-env).
31997         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31998         run_program_env and test_program_prefix_after_env arguments.
31999         * math/Makefile (run-regen-ulps): Use $(run-program-env).
32000         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
32001         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
32002         explicitly with each use of ${test_wrapper_env}.
32003         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
32004         $(test-program-prefix-before-env), $(run-program-env) and
32005         $(test-program-prefix-after-env).
32006         * posix/tst-getconf.sh: Do not set environment variables
32007         explicitly.
32008         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
32009         run_program_env and test_program_prefix_after_env arguments.
32010         * stdio-common/tst-printf.sh: Do not set environment variables
32011         explicitly.
32012         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
32013         $(test-program-prefix-before-env), $(run-program-env) and
32014         $(test-program-prefix-after-env).
32015         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
32016         run_program_env and test_program_prefix_after_env arguments.
32017         Split $test calls into $test_pre and $test.
32018         * timezone/Makefile (build-testdata): Use
32019         $(built-program-cmd-before-env), $(run-program-env) and
32020         $(built-program-cmd-after-env).
32021
32022 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32023
32024         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
32025         strlen for non SHARED builds.
32026
32027 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
32028
32029         * nptl/allocatestack.c (check_list): Inlined function...
32030         (__reclaim_stacks): ... here.
32031
32032 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32033
32034         [BZ #15698]
32035         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
32036         memory overrun.
32037
32038 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
32039
32040         * Rules (make-test-out): Include
32041         LOCPATH=$(common-objpfx)localedata in default environment.
32042         * debug/Makefile (tst-chk1-ENV): Remove variable.
32043         (tst-chk2-ENV): Likewise.
32044         (tst-chk3-ENV): Likewise.
32045         (tst-chk4-ENV): Likewise.
32046         (tst-chk5-ENV): Likewise.
32047         (tst-chk6-ENV): Likewise.
32048         (tst-lfschk1-ENV): Likewise.
32049         (tst-lfschk2-ENV): Likewise.
32050         (tst-lfschk3-ENV): Likewise.
32051         (tst-lfschk4-ENV): Likewise.
32052         (tst-lfschk5-ENV): Likewise.
32053         (tst-lfschk6-ENV): Likewise.
32054         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
32055         (tst-iconv7-ENV): Likewise.
32056         * intl/Makefile (LOCPATH-ENV): Likewise.
32057         (tst-codeset-ENV): Likewise.
32058         (tst-gettext3-ENV): Likewise.
32059         (tst-gettext5-ENV): Likewise.
32060         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
32061         (tst-fopenloc-ENV): Likewise.
32062         (tst-fgetws-ENV): Remove variable.
32063         (tst-ungetwc1-ENV): Likewise.
32064         (tst-ungetwc2-ENV): Likewise.
32065         (bug-ungetwc2-ENV): Likewise.
32066         (tst-swscanf-ENV): Likewise.
32067         (bug-ftell-ENV): Likewise.
32068         (tst-fgetwc-ENV): Likewise.
32069         (tst-fseek-ENV): Likewise.
32070         (tst-ftell-partial-wide-ENV): Likewise.
32071         (tst-ftell-active-handler-ENV): Likewise.
32072         (tst-ftell-append-ENV): Likewise.
32073         * posix/Makefile (tst-fnmatch-ENV): Likewise.
32074         (tst-regexloc-ENV): Likewise.
32075         (bug-regex1-ENV): Likewise.
32076         (tst-regex-ENV): Likewise.
32077         (tst-regex2-ENV): Likewise.
32078         (bug-regex5-ENV): Likewise.
32079         (bug-regex6-ENV): Likewise.
32080         (bug-regex17-ENV): Likewise.
32081         (bug-regex18-ENV): Likewise.
32082         (bug-regex19-ENV): Likewise.
32083         (bug-regex20-ENV): Likewise.
32084         (bug-regex22-ENV): Likewise.
32085         (bug-regex23-ENV): Likewise.
32086         (bug-regex25-ENV): Likewise.
32087         (bug-regex26-ENV): Likewise.
32088         (bug-regex30-ENV): Likewise.
32089         (bug-regex32-ENV): Likewise.
32090         (bug-regex33-ENV): Likewise.
32091         (bug-regex34-ENV): Likewise.
32092         (bug-regex35-ENV): Likewise.
32093         (tst-rxspencer-ENV): Likewise.
32094         (tst-rxspencer-no-utf8-ENV): Likewise.
32095         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
32096         (tst-sscanf-ENV): Likewise.
32097         (tst-swprintf-ENV): Likewise.
32098         (tst-swscanf-ENV): Likewise.
32099         (test-vfprintf-ENV): Likewise.
32100         (scanf13-ENV): Likewise.
32101         (bug14-ENV): Likewise.
32102         (tst-grouping-ENV): Likewise.
32103         * stdlib/Makefile (tst-strtod-ENV): Likewise.
32104         (tst-strtod3-ENV): Likewise.
32105         (tst-strtod4-ENV): Likewise.
32106         (tst-strtod5-ENV): Likewise.
32107         (testmb2-ENV): Likewise./
32108         * string/Makefile (tst-strxfrm-ENV): Likewise.
32109         (tst-strxfrm2-ENV): Likewise.
32110         (bug-strcoll1-ENV): Likewise.
32111         (test-strcasecmp-ENV): Likewise.
32112         (test-strncasecmp-ENV): Likewise.
32113         * time/Makefile (tst-strptime-ENV): Likewise.
32114         (tst-ftime_l-ENV): Likewise.
32115         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
32116         (tst-mbrtowc-ENV): Likewise.
32117         (tst-wcrtomb-ENV): Likewise.
32118         (tst-mbrtowc2-ENV): Likewise.
32119         (tst-c16c32-1-ENV): Likewise.
32120         (tst-mbsnrtowcs-ENV): Likewise.
32121
32122 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32123
32124         * manual/resource.texi (How to get information about the memory
32125         subsystem?): Fix typo.
32126         Reported by Peon de la Parra Ivan <peon@keba.com>
32127
32128 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
32129
32130         [BZ #16882]
32131         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
32132         (pthread_spin_lock): Branch out of spin loop to proper location.
32133         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
32134         (pthread_spin_lock): Likewise.
32135
32136         * nptl/tst-spin4.c: New test.
32137         * nptl/Makefile (tests): Add tst-spin4.
32138
32139 2014-06-03  Andreas Schwab  <schwab@suse.de>
32140
32141         [BZ #15946]
32142         * resolv/res_send.c (send_dg): Reload file descriptor after
32143         calling reopen.
32144
32145 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
32146
32147         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32148
32149 2014-06-03  Richard Henderson  <rth@redhat.com>
32150
32151         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
32152         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
32153         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
32154         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
32155         in the SAVE_PID block.
32156         (__libc_vfork): New alias.
32157         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
32158
32159         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
32160         child in registers, not on the stack.  Remove RESET_PID conditionals.
32161         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
32162
32163 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32164
32165         * sysdeps/aarch64/libm-test-ulps: Regenerate.
32166
32167 2014-06-03  Wilco  <wdijkstr@arm.com>
32168
32169         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
32170         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
32171         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32172         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
32173         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
32174         Likewise.
32175
32176 2014-06-03  Wilco  <wdijkstr@arm.com>
32177
32178         * sysdeps/aarch64/fpu/math_private.h
32179         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
32180         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
32181         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
32182         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32183         Fix declarations.
32184
32185 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32186
32187         * crypt/crypt-private.h: Include ufc-crypt.h.
32188         (__b64_from_24bit): Declare extern.
32189         * crypt/crypt_util.c(__b64_from_24bit): New function.
32190         (b64t): New static const variable.
32191         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
32192         (b64t): Remove variable.
32193         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
32194         * crypt/sha256-crypt.c: Include crypt-private.h.
32195         (b64t): Remove variable.
32196         (__sha256_crypt_r): Remove b64_from_24bit and replace
32197         with __b64_from_24bit.
32198         * crypt/sha512-crypt.c: Likewise.
32199
32200 2014-06-02  Roland McGrath  <roland@hack.frob.com>
32201
32202         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
32203         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
32204         Label the code __libc_vfork rather than __vfork.
32205         [!NOT_IN_libc] (vfork): Define as weak alias.
32206         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
32207         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
32208         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
32209
32210 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32211
32212         * malloc/malloc.c (malloc_info): Fix format specifier for
32213         n_mmaps.
32214
32215 2014-06-02  Wilco  <wdijkstr@arm.com>
32216
32217         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
32218         FPCR write.
32219
32220 2014-06-02  Wilco  <wdijkstr@arm.com>
32221
32222         [BZ #17009]
32223         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
32224         Rewrite to reduce FPCR/FPSR accesses.
32225
32226 2014-06-01  David S. Miller  <davem@davemloft.net>
32227
32228         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32229
32230 2014-05-31  David S. Miller  <davem@davemloft.net>
32231
32232         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
32233         to occur in round to nearest mode when |x| >= 2.0
32234
32235 2014-05-30  Richard Henderson  <rth@twiddle.net>
32236
32237         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
32238         (PSEUDO_RET_NOERRNO): Remove.
32239         (ret): Don't redefine.
32240         (ret_NOERRNO): Define in terms of ret.
32241         (ret_ERRVAL): Likewise.
32242
32243         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
32244         use of PSEUDO_RET; perform the error check directly.
32245
32246 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
32247
32248         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
32249         with __int128_t.
32250
32251 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32252
32253         * malloc/malloc (malloc_info): Fix formatting.
32254
32255 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32256             Roland McGrath  <roland@hack.frob.com>
32257
32258         * malloc/malloc (malloc_info): Also print mmapped statistics.
32259
32260 2014-05-30  Roland McGrath  <roland@hack.frob.com>
32261
32262         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
32263         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
32264
32265 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
32266
32267         * malloc/malloc.c (malloc_info): Inline mi_arena.
32268
32269 2014-05-29  Richard Henderson  <rth@twiddle.net>
32270
32271         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
32272         Remove comma before expanding ASM_ARGS_##nr.
32273         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
32274         Make _x0 a strict output; make _x8 a strict input; adjust expansion
32275         of ASM_ARGS_##nr.
32276         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
32277         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
32278         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
32279         (ASM_ARGS_1): Add leading comma.
32280
32281         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
32282         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
32283         to __errno_location.
32284         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
32285         Remove the expected plt for __errno_location.
32286
32287         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32288         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
32289         call to __read_tp.
32290
32291         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32292         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
32293         it and break it down.
32294         (DOCARGS_0, DOCARGS_1): Do nothing.
32295         (DOCARGS_2): Update to store into the new stack frame.
32296         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
32297         (UNDOCARGS_1): Update to restore from the new stack frame.
32298         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
32299         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
32300
32301         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32302         (SINGLE_THREAD_P): New parameter for result regno.
32303         (PSEUDO): Update to match; use cbz instead of beq.
32304
32305         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32306         Use ENTRY to define the _nocancel entry point.  Share the syscall
32307         and syscall error check paths with the cancel path.
32308         (PSEUDO_END): New.
32309
32310         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
32311         whitespace; tabs before and after asm mnemonics.
32312
32313 2014-05-29  Eric Wong  <normalperson@yhbt.net>
32314
32315         [BZ #15132]
32316         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32317         Call fstat64 or stat64 internally, depending on arguments passed.
32318         Replace stat buffer argument with file descriptor argument.
32319         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
32320         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
32321         Pass fd to __internal_statvfs instead of calling fstat64.
32322         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
32323         Pass fd to __internal_statvfs64 instead of calling fstat64.
32324         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
32325         Pass -1 to __internal_statvfs instead of calling stat64.
32326         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
32327         Pass -1 to __internal_statvfs64 instead of calling stat64.
32328
32329 2014-05-28  Roland McGrath  <roland@hack.frob.com>
32330
32331         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
32332         that was previously under [RESET_PID].
32333         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
32334
32335         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
32336         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
32337
32338 2014-05-27  Roland McGrath  <roland@hack.frob.com>
32339
32340         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
32341
32342         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
32343         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
32344
32345 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
32346
32347         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
32348
32349 2014-05-27  Andreas Schwab  <schwab@suse.de>
32350
32351         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
32352         TLS_INIT_TP macro.
32353         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
32354         * elf/rtld.c (init_tls, dl_main): Likewise.
32355         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
32356         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
32357         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
32358         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
32359         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
32360         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
32361         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
32362         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
32363         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32364         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32365         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32366         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32367         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32368         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32369         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32370         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32371         * sysdeps/generic/tls.h: Update description.
32372
32373 2014-05-27  Will Newton  <will.newton@linaro.org>
32374
32375         [BZ #16990]
32376         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32377         and restore r2 rather than just restoring.
32378
32379 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32380
32381         [BZ #16724]
32382         * libio/tst-ftell-append.c: New test case.
32383         * libio/Makefile (tests): Add test case.
32384         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32385         append mode.
32386         * libio/wfileops.c (do_ftell_wide): Likewise.
32387
32388 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32389
32390         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32391
32392         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32393         ...
32394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32396         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32397         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32398         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32399         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32400         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32401         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32402         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32403         Moved ...
32404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32405         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32406         Moved ...
32407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32408         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32409         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32410         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32411         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32412         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32413         ...
32414         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32415         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32416         Moved ...
32417         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32418         here.
32419         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32420         ...
32421         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32422         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32423         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32424
32425         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32426         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32427         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32428         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32429
32430         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32431         merge into ...
32432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32433         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32434         ...
32435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32436         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32437         ...
32438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32439         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32440         Moved ...
32441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32442         here.
32443         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32444         Moved ...
32445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32446         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32447         Moved ...
32448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32449
32450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32451         conditional [RESET_PID].
32452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32453         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32454         removed.
32455         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32456         removed.
32457
32458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32459         <tcb-offsets.h>.
32460         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32461         (__libc_vfork): New strong alias.
32462         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32463         removed.
32464         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32465         Removed.
32466
32467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32468         <tcb-offsets.h>.
32469         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32470         (__libc_vfork): New strong alias.
32471         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32472         removed.
32473         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32474         removed.
32475
32476 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32477
32478         * malloc/malloc.c (mi_arena): New function.
32479         (malloc_info): Remove nested function mi_arena. Call non-nosted
32480         function mi_arena.
32481
32482 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32483
32484         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32485         by insrwi.
32486         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32487         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32488         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32489         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32490         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32491         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32492         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32493
32494 2014-05-26  Andreas Schwab  <schwab@suse.de>
32495
32496         [BZ #16984]
32497         * locale/programs/repertoire.c (repertoire_read): Add slash
32498         between I18NPATH element and file name.
32499         * locale/programs/locfile.c (locfile_read): Likewise.
32500
32501 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32502
32503         * nptl/pthread_mutexattr_settype.c
32504         (__pthread_mutexattr_settype):
32505         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32506
32507 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32508
32509         * nptl/tst-mutex5 (do_test):
32510         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32511
32512 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32513
32514         * benchtests/README: Document 'init' directive.
32515         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32516         BENCH_INIT.
32517         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32518         (parse_file): Recognize 'init' directive.
32519
32520 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32521
32522         [BZ #16796]
32523         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32524         alignment of struct pthread.
32525
32526 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32527
32528         [BZ #16878]
32529         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32530         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32531         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32532         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32533
32534 2014-05-25  Richard Henderson  <rth@twiddle.net>
32535
32536         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32537         (SINGLE_THREAD_P_PIC): Remove.
32538         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32539         (SINGLE_THREAD_P_PIC): Remove.
32540
32541         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32542         branch to syscall error ...
32543         (PSEUDO): ... here.
32544         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32545         from __local_syscall_error to .Lsyscall_error.
32546         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32547         (SYSCALL_ERROR): Update label name.
32548
32549         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32550         Do not use DOARGS/UNDOARGS.
32551         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32552         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32553         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32554         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32555         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32556
32557         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32558         block comment.
32559
32560         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32561         define if !NOT_IN_libc.
32562         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32563         define with non-default symbol versions.
32564
32565 2014-05-23  Richard Henderson  <rth@twiddle.net>
32566
32567         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32568         (vfork, __vfork): Define via compat_symbol.
32569
32570         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32571         [!HAVE_IFUNC] (vfork_compat): Remove.
32572         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32573
32574 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32575
32576         [BZ #16978]
32577         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32578         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32579         variable.
32580
32581 2014-05-23  Richard Henderson  <rth@twiddle.net>
32582
32583         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32584         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32585         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32586         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32587
32588         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32589         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32590         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32591         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32592         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32593         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32594         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32595         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32596         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32597         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32598         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32599         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32600         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32601         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32602         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32603         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32604         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32605         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32606         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32607         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32608         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32609         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32610         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32611         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32612         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32613         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32614         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32615         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32616         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32617         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32618         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32619         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32620         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32621         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32622         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32623         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32624         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32625         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32626         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32627         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32628         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32629         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32630         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32631         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32632         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32633         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32634         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32635         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32636         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32637         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32638         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32639         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32640         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32641         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32642         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32643         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32644
32645         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32646         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32647         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32648         before exiting on error.
32649         (__libc_vfork): New strong alias.
32650         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32651         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32652
32653         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32654         that was previously under [RESET_PID].
32655         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32656
32657         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32658
32659 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32660
32661         [BZ #16977]
32662         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32663         value when x - 1 is zero.
32664         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32665         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32666         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32667         0.0L for an argument of 1.0L.
32668         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32669         Likewise.
32670         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32671         value when x - 1 is zero.
32672         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32673         * sysdeps/i386/fpu/libm-test-ulps: Update.
32674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32675
32676 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32677
32678         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32679         alphasort and versionsort.
32680
32681 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32682
32683         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32684         macro.
32685         [copysignf]: Likewise.
32686
32687 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32688
32689         * crypt/md5-crypt.c: Fix formatting.
32690
32691 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32692
32693         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32694         (b64_from_24bit): New function.
32695
32696 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32697
32698         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32699         libc_hidden_builtin_def to ifunc.
32700         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32701         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32702
32703 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32704
32705         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32706         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32707
32708 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32709
32710         * nscd/Depend (linuxthreads): Remove.
32711         (nptl): Add.
32712         * resolv/Depend (linuxthreads): Remove.
32713         * rt/Depend (linuxthreads): Remove.
32714
32715         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32716         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32717         $(common-objpfx)elf/.
32718         (link-libc-before-gnulib): Likewise.
32719         (elfobjdir): Remove variable.
32720         * Makefile (install): Use $(elf-objpfx) instead of
32721         $(common-objpfx)elf/.
32722         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32723         $(elfobjdir)/.
32724         (link-libc-deps): Likewise.
32725         ($(common-objpfx)libc.so): Likewise.
32726         ($(common-objpfx)linkobj/libc.so): Likewise.
32727         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32728         instead of $(common-objpfx)elf/.
32729         (symbolic-link-list): Likewise.
32730         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32731         [$(cross-compiling) = no]: Likewise.
32732         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32733         $(elfobjdir)/.
32734         (static-gnulib-arch): Likewise.
32735         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32736         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32737         $(common-objpfx)elf/.
32738
32739 2014-05-21  Richard Henderson  <rth@redhat.com>
32740
32741         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32742         (SINGLE_THREAD_P): Use the correct width load.  Fold
32743         into the ldr offset.
32744
32745         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32746         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32747
32748 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32749
32750         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32751         (libgcc_s_resume): Use __attribute_used__.
32752         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32753         Likewise.
32754
32755 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32756
32757         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32758         optimization when used with float constants.
32759
32760         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32761
32762 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32763
32764         [BZ #16915]
32765         * locale/nl_langinfo_l.c: Make direct reference to every
32766         _nl_current_CATEGORY symbol.
32767         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32768         (tests-static): Add tst-langinfo-static.
32769         (tests-special): Add tst-langinfo-static.out.
32770         ($(objpfx)tst-langinfo.out): Redirect output.
32771         ($(objpfx)tst-langinfo-static.out): New.
32772         * localedata/tst-langinfo.sh: Send output to stdout.
32773         * localedata/tst-langinfo-static.c: New file.
32774
32775         [BZ #16965]
32776         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32777         when the shift amount is modulo the limb size.
32778
32779 2014-05-20  Richard Henderson  <rth@redhat.com>
32780
32781         [BZ #16967]
32782         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32783         Change type of sa_flags from unsigned int to int.
32784
32785         [BZ #16966]
32786         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32787
32788         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32789
32790 2014-05-20  Will Newton  <will.newton@linaro.org>
32791
32792         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32793         Test the return value of the system call in the nocancel case.
32794
32795 2014-05-20  Will Newton  <will.newton@linaro.org>
32796             Yvan Roux  <yvan.roux@linaro.org>
32797
32798         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32799         #include of asm/ptrace.h.
32800         (PTRACE_GET_THREAD_AREA): Remove #undef.
32801         (PTRACE_GETHBPREGS): Likewise.
32802         (PTRACE_SETHBPREGS): Likewise.
32803         (struct user_regs_struct): New structure.
32804         (struct user_fpsimd_struct): New structure.
32805         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32806         #include of asm/ptrace.h and second #include of sys/user.h.
32807         (PTRACE_GET_THREAD_AREA): Remove #undef.
32808         (PTRACE_GETHBPREGS): Likewise.
32809         (PTRACE_SETHBPREGS): Likewise.
32810         (ELF_NGREG): Use new struct user_regs_struct.
32811         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32812
32813 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32814
32815         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32816         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32817
32818 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32819
32820         [BZ #16958]
32821         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32822         membar to avoid block loads/stores to overlap previous stores.
32823
32824 2014-05-17  Richard Henderson  <rth@redhat.com>
32825
32826         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32827         Create the __##syscall_name##_nocancel entry point.
32828         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32829         Remove; let the sysdep-cancel.h code create it.
32830
32831 2014-05-17  David S. Miller  <davem@davemloft.net>
32832
32833         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32834         Protect with __USE_GNU.
32835         (TIOCSET_TEMPT): Likewise.
32836         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32837         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32838         these are already provided in bits/ioctl-types.h
32839
32840 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32841
32842         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32843         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32844
32845         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32846         Use wait4 regardless of [__NR_waitpid].
32847
32848 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32849
32850         PR libgcc/60166
32851         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32852         (_FP_NANSIGN_Q): Set the quiet bit.
32853
32854 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32855
32856         * benchtests/Makefile
32857         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32858         not $(common-objpfx)math/libm.so.
32859         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32860         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32861         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32862         $(common-objpfx)dlfcn/libdl.so.
32863         ($(objpfx)tst-audit8): Depend on $(libm), not
32864         $(common-objpfx)math/libm.so.
32865         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32866         not $(common-objpfx)dlfcn/libdl.so.
32867         * math/Makefile
32868         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32869         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32870         [$(build-shared) = yes].
32871         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32872         $(common-objpfx)nptl/libpthread.so.
32873         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32874         $(common-objpfx)math/libm.so$(libm.so-version) or
32875         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32876         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32877         $(common-objpfx)dlfcn/libdl.so.
32878         * setjmp/Makefile (link-libm): Remove variable.
32879         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32880         * stdio-common/Makefile (link-libm): Remove variable.
32881         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32882         * stdlib/Makefile (link-libm): Remove variable.
32883         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32884         ($(objpfx)tst-strtod-round): Likewise.
32885         ($(objpfx)tst-tininess): Likewise.
32886         ($(objpfx)tst-strtod-underflow): Likewise.
32887         ($(objpfx)tst-strtod6): Likewise.
32888         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32889         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32890         $(common-objpfx)dlfcn/libdl.so.
32891
32892 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32893
32894         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32895         BSD terminal modes definitions.
32896
32897 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32898
32899         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32900         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32901
32902         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32903         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32904         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32905         Don't do #include_next.
32906         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32907         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32908         Don't do #include_next.
32909         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32910         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32911         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32912         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32913
32914 2014-05-16  Allan McRae  <allan@archlinux.org>
32915
32916         * po/sv.po: Update Swedish translation from translation project.
32917
32918         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32919         in sed expression.
32920
32921 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32922
32923         [BZ #16917]
32924         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32925         errno if the TIOCGPTN ioctl fails with an error different than
32926         EINVAL.
32927         * login/tst-ptsname.c: New file.
32928         * login/Makefile (tests): Add tst-ptsname.
32929
32930         [BZ #16943]
32931         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32932         and prlimit64.
32933
32934 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32935
32936         [BZ #16849]
32937         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32938         herrno to return EAI_AGAIN.
32939
32940 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32941
32942         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32943         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32944         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32945         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32946         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32947         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32948         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32949         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32950         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32951         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32952         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32953         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32954         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32955         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32956         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32957         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32958         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32959         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32960         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32961         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32962         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32963         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32964         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32965         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32966         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32967         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32968         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32969         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32970         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32971         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32972         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32973         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32974         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32975         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32976         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32977         Moved ...
32978         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32979         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32980         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32981         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32982         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32983         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32984         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32985         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32986         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32987         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32988         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32989         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32990         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32991         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32992         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32993         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32994         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32995         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32996         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32997         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32998         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32999         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
33000         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
33001         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
33002         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
33003         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
33004         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
33005         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
33006         Moved ...
33007         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
33008         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
33009         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
33010         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
33011         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
33012         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
33013         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
33014         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
33015         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
33016         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
33017         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
33018         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
33019         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
33020         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
33021         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
33022         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
33023         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
33024         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
33025         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
33026         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
33027         Moved ...
33028         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
33029         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
33030         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
33031
33032         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
33033         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
33034         (libpthread-sysdep_routines): Add elision-related stuff here instead.
33035         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
33036         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
33037         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
33038         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
33039         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
33040         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
33041         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
33042         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
33043         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
33044         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
33045         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
33046         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
33047         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
33048         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
33049         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
33050         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
33051         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
33052         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
33053         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
33054         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
33055         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
33056         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
33057         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
33058         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
33059         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
33060         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
33061         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
33062         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
33063
33064         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
33065         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
33066
33067         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
33068         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
33069         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
33070         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
33071         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
33072         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
33073         Moved ...
33074         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
33075         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
33076         Moved ...
33077         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
33078         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
33079         Moved ...
33080         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
33081         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
33082         Moved ...
33083         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
33084         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
33085         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
33086         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
33087         Moved ...
33088         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
33089         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
33090         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
33091         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
33092         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
33093         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
33094         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
33095         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
33096         Moved ...
33097         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
33098         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33099         Moved ...
33100         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33101         ... here.
33102         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
33103         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
33104         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
33105         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
33106         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33107         Moved ...
33108         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33109         ... here.
33110         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
33111         Moved ...
33112         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
33113         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
33114         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
33115         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
33116         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
33117         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
33118         Moved ...
33119         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
33120         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
33121         Moved ...
33122         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
33123         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
33124         Moved ...
33125         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
33126         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
33127         Moved ...
33128         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
33129         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
33130         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
33131         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
33132         Moved ...
33133         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
33134         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
33135         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
33136         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
33137         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
33138         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
33139         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
33140         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
33141         Moved ...
33142         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
33143         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33144         Moved ...
33145         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33146         ... here.
33147         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
33148         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
33149         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
33150         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
33151         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33152         Moved ...
33153         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33154         ... here.
33155         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
33156         Moved ...
33157         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
33158         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
33159         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
33160         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
33161         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
33162         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
33163         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
33164         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
33165         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
33166         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
33167         Moved ...
33168         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
33169         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
33170         Moved ...
33171         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
33172         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
33173         Moved ...
33174         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
33175         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
33176         Moved ...
33177         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
33178         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
33179         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
33180         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
33181         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
33182         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
33183         Moved ...
33184         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
33185         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
33186         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
33187         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
33188         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
33189         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
33190         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
33191         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
33192         Moved ...
33193         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
33194         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33195         Moved ...
33196         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33197         ... here.
33198         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
33199         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
33200         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
33201         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
33202         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33203         Moved ...
33204         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33205         ... here.
33206         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
33207         Moved ...
33208         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
33209         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
33210         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
33211         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
33212         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
33213         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
33214         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
33215         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
33216         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
33217         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
33218         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
33219
33220         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
33221         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
33222
33223         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
33224         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
33225
33226         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
33227         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
33228         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
33229         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
33230         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
33231         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
33232         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
33233         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
33234         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
33235         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
33236         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
33237         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
33238         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
33239         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
33240         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
33241         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
33242         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
33243         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
33244         Moved ...
33245         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
33246         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
33247         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
33248         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
33249         Moved ...
33250         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
33251         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
33252         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
33253         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
33254         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
33255         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
33256         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
33257         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
33258         Moved ...
33259         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
33260         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
33261         Moved ...
33262         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
33263         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
33264         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
33265         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
33266         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
33267         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
33268         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
33269         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
33270         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
33271         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
33272         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
33273         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
33274         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
33275         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
33276         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
33277         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
33278         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
33279
33280         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
33281         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
33282         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
33283         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
33284         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
33285
33286         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
33287         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
33288         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
33289         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
33290         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
33291         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
33292         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
33293         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
33294         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
33295         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
33296
33297         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
33298         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
33299
33300         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
33301         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
33302         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
33303         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
33304         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
33305         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
33306         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
33307         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
33308         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
33309         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
33310         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
33311         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
33312         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
33313         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
33314         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
33315         Update #include.
33316         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
33317         Likewise.
33318         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
33319         Likewise.
33320         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
33321         Likewise.
33322         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
33323         Likewise.
33324         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
33325         Likewise.
33326         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
33327         Likewise.
33328         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33329         Likewise.
33330         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
33331         Likewise.
33332         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
33333         Likewise.
33334         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
33335         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
33336         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
33337         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
33338         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
33339         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
33340         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
33341         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
33342         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
33343         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
33344         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
33345         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
33346         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
33347         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
33348         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
33349
33350         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
33351         that was previously under [RESET_PID].
33352         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
33353         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
33354         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
33355
33356         * sysdeps/i386/nptl/Implies: New file.
33357         * sysdeps/x86_64/nptl/Implies: New file.
33358         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
33359         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
33360         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
33361         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
33362
33363         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33364         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33365         (__libc_vfork): New strong alias.
33366         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33367         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33368
33369         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33370         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33371         (__libc_vfork): New strong alias.
33372         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33373         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33374
33375         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33376         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33377         (__libc_vfork): New strong alias.
33378         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33379         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33380         * nptl/pt-vfork.c: New file.
33381         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33382         (libpthread: GLIBC_2.20): New version set (empty).
33383
33384 2014-05-14  Will Newton  <will.newton@linaro.org>
33385
33386         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33387         rather than #if.
33388
33389 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33390
33391         [BZ #16564]
33392         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33393         arguments with exponent 65 or above.
33394         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33395         arguments 0x1p113L or above.
33396         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33397         to arguments 0x1p107L or above.
33398         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33399         positive arguments with exponent 65 or above.
33400         * math/auto-libm-test-in: Add more tests of log1p.
33401         * math/auto-libm-test-out: Regenerated.
33402
33403         [BZ #16928]
33404         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33405         non-finite arguments is +0.
33406         * math/s_cacosf.c (__cacosf): Likewise.
33407         * math/s_cacosl.c (__cacosl): Likewise.
33408         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33409         * sysdeps/i386/fpu/libm-test-ulps: Update.
33410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33411
33412         [BZ #16927]
33413         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33414         value.
33415         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33416         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33417         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33418         for explicit high bit of mantissa when testing for argument equal
33419         to 1.
33420         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33421         * sysdeps/i386/fpu/libm-test-ulps: Update.
33422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33423
33424         [BZ #16516]
33425         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33426         (__erf): Scale by 16 instead of 8 in potentially underflowing
33427         case.  Ensure exception if result actually underflows.
33428         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33429         (__erff): Scale by 16 instead of 8 in potentially underflowing
33430         case.  Ensure exception if result actually underflows.
33431         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33432         (efx8): Remove variable.
33433         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33434         case.  Ensure exception if result actually underflows.
33435         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33436         (efx8): Remove variable.
33437         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33438         case.  Ensure exception if result actually underflows.
33439         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33440         (efx8): Remove variable.
33441         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33442         case.  Ensure exception if result actually underflows.
33443         * math/auto-libm-test-in: Add more tests of erf.
33444         * math/auto-libm-test-out: Regenerated.
33445
33446 2014-05-14  Andreas Schwab  <schwab@suse.de>
33447
33448         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33449         Remove code conditionalized on USE___THREAD.
33450
33451         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33452         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33453         not definedness.
33454
33455 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33456
33457         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33458         Define unconditionally.
33459         (__ASSUME_O_CLOEXEC): Likewise.
33460         (__ASSUME_SOCK_CLOEXEC): Likewise.
33461         (__ASSUME_IN_NONBLOCK): Likewise.
33462         (__ASSUME_PIPE2): Likewise.
33463         (__ASSUME_EVENTFD2): Likewise.
33464         (__ASSUME_SIGNALFD4): Likewise.
33465         (__ASSUME_DUP3): Likewise.
33466         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33467         (__ASSUME_DUP3): Do not define.
33468         (__ASSUME_EVENTFD2): Likewise.
33469         (__ASSUME_IN_NONBLOCK): Likewise.
33470         (__ASSUME_O_CLOEXEC): Likewise.
33471         (__ASSUME_PIPE2): Likewise.
33472         (__ASSUME_SIGNALFD4): Likewise.
33473         (__ASSUME_SOCK_CLOEXEC): Likewise.
33474         (__ASSUME_UTIMES): Undefine.
33475         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33476         (__ASSUME_UTIMES): Do not define.
33477         (__ASSUME_O_CLOEXEC): Likewise.
33478         (__ASSUME_SOCK_CLOEXEC): Likewise.
33479         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33480         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33481         0x020621].
33482         (__ASSUME_PIPE2): Likewise.
33483         (__ASSUME_EVENTFD2): Likewise.
33484         (__ASSUME_SIGNALFD4): Likewise.
33485         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33486         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33487         Do not define.
33488         (__ASSUME_EVENTFD2): Likewise.
33489         (__ASSUME_SIGNALFD4): Likewise.
33490         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33491         (__ASSUME_32BITUIDS): Likewise.
33492         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33493         (__ASSUME_IPC64): Likewise.
33494         (__ASSUME_ST_INO_64_BIT): Likewise.
33495         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33496         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33497         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33498         (__ASSUME_UTIMES): Do not define.
33499         (__ASSUME_PSELECT): Likewise.
33500         (__ASSUME_PPOLL): Likewise.
33501         (__ASSUME_O_CLOEXEC): Likewise.
33502         (__ASSUME_SOCK_CLOEXEC): Likewise.
33503         (__ASSUME_IN_NONBLOCK): Likewise.
33504         (__ASSUME_PIPE2): Likewise.
33505         (__ASSUME_EVENTFD2): Likewise.
33506         (__ASSUME_SIGNALFD4): Likewise.
33507         (__ASSUME_DUP3): Likewise.
33508         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33509         (__ASSUME_UTIMES): Likewise.
33510         (__ASSUME_O_CLOEXEC): Likewise.
33511         (__ASSUME_SOCK_CLOEXEC): Likewise.
33512         (__ASSUME_IN_NONBLOCK): Likewise.
33513         (__ASSUME_PIPE2): Likewise.
33514         (__ASSUME_EVENTFD2): Likewise.
33515         (__ASSUME_SIGNALFD4): Likewise.
33516         (__ASSUME_DUP3): Likewise.
33517         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33518         (__ASSUME_UTIMES): Likewise.
33519         (__ASSUME_O_CLOEXEC): Likewise.
33520         (__ASSUME_SOCK_CLOEXEC): Likewise.
33521         (__ASSUME_IN_NONBLOCK): Likewise.
33522         (__ASSUME_PIPE2): Likewise.
33523         (__ASSUME_EVENTFD2): Likewise.
33524         (__ASSUME_SIGNALFD4): Likewise.
33525         (__ASSUME_DUP3): Likewise.
33526         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33527         Likewise.
33528         (__ASSUME_UTIMES): Likewise.
33529         (__ASSUME_EVENTFD2): Likewise.
33530         (__ASSUME_SIGNALFD4): Likewise.
33531         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33532         (__ASSUME_O_CLOEXEC): Likewise.
33533         (__ASSUME_SOCK_CLOEXEC): Likewise.
33534         (__ASSUME_IN_NONBLOCK): Likewise.
33535         (__ASSUME_PIPE2): Likewise.
33536         (__ASSUME_EVENTFD2): Likewise.
33537         (__ASSUME_SIGNALFD4): Likewise.
33538         (__ASSUME_DUP3): Likewise.
33539         (__ASSUME_UTIMES): Undefine.
33540
33541         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33542         feclearexcept.  Remove symbol versioning code.
33543         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33544         symbol versioning code.
33545         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33546         symbol versioning code.
33547         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33548         feupdateenv.  Remove symbol versioning code.
33549         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33550         fegetexceptflag.  Remove symbol versioning code.
33551         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33552         fesetexceptflag.  Remove symbol versioning code.
33553         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33554         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33555         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33556         (__posix_fadvise64_l32): Remove prototype.
33557         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33558         code.
33559
33560 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33561
33562         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33563         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33564         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33565         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33566
33567 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33568
33569         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33570         current working directory
33571
33572 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33573
33574         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33575         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33576         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33577         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33578         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33579         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33580         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33581         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33582         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33583         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33584         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33585         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33586         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33587         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33588         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33589         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33590         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33591         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33592         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33593         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33594         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33595         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33596         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33597         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33598         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33599         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33600         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33601         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33602         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33603         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33604         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33605         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33606         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33607         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33608         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33609         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33610         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33611         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33612         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33613         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33614         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33615         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33616
33617         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33618         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33619
33620         * sysdeps/unix/sysv/linux/arm/Makefile
33621         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33622         Add rt-aeabi_unwind_cpp_pr1.
33623         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33624         Add nptl-aeabi_unwind_cpp_pr1.
33625         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33626         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33627         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33628         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33629         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33630         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33631
33632         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33633         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33634         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33635         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33636
33637         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33638         Deconditionalize the code that was previously under [RESET_PID].
33639         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33640
33641         * sysdeps/generic/exit-thread.h: New file.
33642         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33643         * include/unistd.h (__exit_thread): Remove declaration.
33644         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33645         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33646         * csu/libc-start.c: Include <exit-thread.h>.
33647         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33648         * nptl/pthread_create.c: Include <exit-thread.h>.
33649         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33650         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33651         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33652         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33653         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33654         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33655         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33656         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33657         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33658         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33659         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33660         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33661         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33662         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33663         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33664         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33665         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33666
33667 2014-05-13  Andreas Schwab  <schwab@suse.de>
33668
33669         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33670
33671 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33672
33673         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33674         (__ASSUME_UTIMES): Do not condition on kernel version.
33675         (__ASSUME_PSELECT): Define unconditionally.
33676         (__ASSUME_PPOLL): Likewise.
33677         (__ASSUME_ATFCTS): Likewise.
33678         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33679         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33680         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33681         (__ASSUME_UTIMENSAT): Define unconditionally.
33682         (__ASSUME_PRIVATE_FUTEX): Likewise.
33683         (__ASSUME_FALLOCATE): Likewise.
33684         (__ASSUME_O_CLOEXEC): Likewise.
33685         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33686         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33687         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33688         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33689         (__ASSUME_IN_NONBLOCK): Likewise.
33690         (__ASSUME_PIPE2): Likewise.
33691         (__ASSUME_EVENTFD2): Likewise.
33692         (__ASSUME_SIGNALFD4): Likewise.
33693         (__ASSUME_DUP3): Likewise.
33694         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33695         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33696         (__ASSUME_AT_RANDOM): Likewise.
33697         (__ASSUME_PREADV): Likewise.
33698         (__ASSUME_PWRITEV): Likewise.
33699         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33700         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33701         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33702         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33703         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33704         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33705         (__ASSUME_O_CLOEXEC): Define unconditionally.
33706         (__ASSUME_PSELECT): Do not undefine conditionally.
33707         (__ASSUME_PPOLL): Likewise.
33708         (__ASSUME_ATFCTS): Likewise.
33709         (__ASSUME_SET_ROBUST_LIST): Likewise.
33710         (__ASSUME_UTIMENSAT): Likewise.
33711         (__ASSUME_FDATASYNC): Define unconditionally.
33712         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33713         (__ASSUME_SIGFRAME_V2): Likewise.
33714         )__ASSUME_EVENTFD2): Likewise.
33715         (__ASSUME_SIGNALFD4): Likewise.
33716         (__ASSUME_PSELECT): Do not undefine conditionally.
33717         (__ASSUME_PPOLL): Likewise.
33718         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33719         (__ASSUME_PSELECT): Define unconditionally.
33720         (__ASSUME_PPOLL): Likewise.
33721         (__ASSUME_O_CLOEXEC): Likewise.
33722         (__ASSUME_SOCK_CLOEXEC): Likewise.
33723         (__ASSUME_IN_NONBLOCK): Likewise.
33724         (__ASSUME_PIPE2): Likewise.
33725         (__ASSUME_EVENTFD2): Likewise.
33726         (__ASSUME_SIGNALFD4): Likewise.
33727         (__ASSUME_DUP3): Likewise.
33728         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33729         (__ASSUME_O_CLOEXEC): Likewise.
33730         (__ASSUME_SOCK_CLOEXEC): Likewise.
33731         (__ASSUME_IN_NONBLOCK): Likewise.
33732         (__ASSUME_PIPE2): Likewise.
33733         (__ASSUME_EVENTFD2): Likewise.
33734         (__ASSUME_SIGNALFD4): Likewise.
33735         (__ASSUME_DUP3): Likewise.
33736         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33737         (__ASSUME_EVENTFD2): Likewise.
33738         (__ASSUME_SIGNALFD4): Likewise.
33739         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33740
33741 2014-05-12  Andreas Schwab  <schwab@suse.de>
33742
33743         [BZ #16932]
33744         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33745         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33746         than maximum RPC packet size.
33747         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33748         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33749         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33750         (_nss_nis_getservbyport_r): Likewise.
33751
33752 2014-05-12  Will Newton  <will.newton@linaro.org>
33753
33754         * malloc/Makefile (tests): Add tst-mallopt.
33755         * malloc/tst-mallopt.c: New file.
33756
33757 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33758
33759         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33760         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33761
33762 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33763
33764         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33765         (tst-tlsmod6.so): Likewise.
33766
33767 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33768
33769         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33770
33771 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33772
33773         [BZ #16064]
33774         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33775         and <dl-procinfo.h>.
33776         (__fegetenv): Save SSE state in envp->__eip if supported.
33777         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33778         envp->__eip if supported.
33779         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33780         and <dl-procinfo.h>.
33781         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33782         __data_offset and __data_selector in environment to 0.  Set SSE
33783         state if supported.
33784         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33785         test-fenv-sse.
33786         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33787         -mfpmath=sse.
33788         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33789
33790 2014-05-09  Will Newton  <will.newton@linaro.org>
33791
33792         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33793         and libc_relro_required for ARM.
33794         * sysdeps/arm/preconfigure: Regenerate.
33795
33796 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33797             Stefan Liebler  <stli@linux.vnet.ibm.com>
33798
33799         * config.make.in (enable-lock-elision): New Makefile variable.
33800         * configure.ac: Likewise.
33801         * configure: Regenerate.
33802         * sysdeps/s390/configure.ac:
33803         Add check for gcc transactions support.
33804         * sysdeps/s390/configure: Regenerate.
33805         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33806         Build elision files if enabled.
33807         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33808         Add lock elision support for s390.
33809         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33810         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33811         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33812         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33813         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33814         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33815         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33816         Likewise.
33817         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33818         Likewise.
33819         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33820         Likewise.
33821         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33822         Likewise.
33823         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33824         (__lll_timedlock_elision, __lll_lock_elision)
33825         (__lll_unlock_elision, __lll_trylock_elision)
33826         (lll_timedlock_elision, lll_lock_elision)
33827         (lll_unlock_elision, lll_trylock_elision): Add.
33828         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33829         (pthread_mutex_t): Add lock elision support for s390.
33830
33831 2014-05-14  Wilco  <wdijkstr@arm.com>
33832
33833         * sysdeps/arm/fclrexcpt.c: Cleanup.
33834         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33835         * sysdeps/arm/feenablxcpt.c: Cleanup.
33836         * sysdeps/arm/fegetenv.c: Cleanup.
33837         * sysdeps/arm/fegetexcept.c: Cleanup.
33838         * sysdeps/arm/fegetround.c: Cleanup.
33839         * sysdeps/arm/feholdexcpt.c: Cleanup.
33840         * sysdeps/arm/fesetenv.c: Cleanup.
33841         * sysdeps/arm/fesetround.c: Cleanup.
33842         * sysdeps/arm/feupdateenv.c: Cleanup.
33843         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33844         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33845         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33846         * sysdeps/arm/ftestexcept.c: Cleanup.
33847         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33848         * sysdeps/arm/setfpucw.c: Cleanup.
33849
33850 2014-05-09  Will Newton  <will.newton@linaro.org>
33851
33852         * sysdeps/arm/armv7/strcmp.S: New file.
33853         * NEWS: Mention addition of ARMv7 optimized strcmp.
33854
33855 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33856
33857         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33858         look for %.ac rather than %.in.
33859
33860         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33861         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33862         * sysdeps/mach/hurd/configure: Regenerated.
33863         * sysdeps/unix/sysv/linux/configure: Regenerated.
33864
33865         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33866
33867 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33868
33869         [BZ# 16922]
33870         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33871         (LONG_SUB): Ditto.
33872         (PTR_SUB): Ditto.
33873
33874 2014-05-07  Andreas Schwab  <schwab@suse.de>
33875
33876         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33877         when skipping over non-matching result from nscd.
33878
33879 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33880
33881         [BZ #16876]
33882         * nptl/sockperf.c (client): Check socket return value.
33883
33884         [BZ #16877]
33885         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33886         nscd security class.
33887
33888 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33889
33890         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33891         * sysdeps/arm/unwind.h: ... here.
33892
33893 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33894
33895         [BZ# 16916]
33896         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33897         Define.
33898
33899 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33900
33901         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33902         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33903         multiarch strncpy for PPC64.
33904         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33905         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33906         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33907         multiarch optimizations.
33908         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33909         (__libc_ifunc_impl_list): Likewise.
33910         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33911         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33912         multiarch stpncpy for PPC64.
33913         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33914         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33915
33916 2014-05-06  Andreas Schwab  <schwab@suse.de>
33917
33918         [BZ #16912]
33919         * gmon/mcount.c (_MCOUNT_DECL): Use
33920         atomic_compare_and_exchange_bool_acq instead of
33921         catomic_compare_and_exchange_bool_acq.
33922
33923 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33924
33925         * elf/Makefile (others, install-bin): Remove pldd.
33926         (pldd-modules): Variable removed.
33927         ($(objpfx)pldd): Target removed.
33928         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33929         (others, install-bin): Append pldd here.
33930         ($(objpfx)pldd): New target.
33931
33932         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33933         to 0, so the first #if test emitted later doesn't see it undefined.
33934         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33935         * sysdeps/gnu/errlist.c: Regenerated.
33936
33937 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33938
33939         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33940         [libc_hidden_builtin_def]: Define to empty value.
33941         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33942         [libc_hidden_builtin_def]: Likewise.
33943         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33944         [libc_hidden_builtin_def]: Likewise.
33945         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33946         [libc_hidden_builtin_def]: Likewise.
33947         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33948         __redirect_memcpy and define ifunc as default hidden symbol.
33949         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33950         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33951
33952 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33953
33954         * locale/iso-4217.def: Reintroduce XDR currency.
33955
33956 2014-05-04  Allan McRae  <allan@archlinux.org>
33957
33958         * po/eo.po: Update Esperanto translation from translation project.
33959
33960 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33961
33962         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33963         and FEATURE_INDEX_MAX to 1.
33964         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33965
33966 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33967
33968         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33969         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33970         * iconvdata/big5.c (ONE_DIRECTION): Define.
33971         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33972         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33973         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33974         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33975         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33976         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33977         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33978         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33979         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33980         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33981         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33982         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33983         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33984         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33985         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33986         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33987         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33988         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33989         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33990         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33991         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33992         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33993         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33994         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33995         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33996         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33997         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33998         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33999         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
34000         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
34001         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
34002         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
34003         * iconvdata/johab.c (ONE_DIRECTION): Define.
34004         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
34005         * iconvdata/sjis.c (ONE_DIRECTION): Define.
34006         * iconvdata/t.61.c (ONE_DIRECTION): Define.
34007         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
34008         * iconvdata/tscii.c (ONE_DIRECTION): Define.
34009         * iconvdata/uhc.c (ONE_DIRECTION): Define.
34010         * iconvdata/unicode.c (ONE_DIRECTION): Define.
34011         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
34012         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
34013         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
34014
34015 2014-05-01  Roland McGrath  <roland@hack.frob.com>
34016
34017         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
34018         (_IO_JUMPS_OFFSET): Define to 0.
34019
34020         * nptl/sysdeps/pthread/bits/libc-lock.h
34021         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
34022         (__libc_lock_define_initialized_recursive): Always define using
34023         initializer.  Modern compilers treat uninitialized (implicit zero) and
34024         explicit zero initializers the same (i.e. put the datum in bss).
34025
34026 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34027
34028         * nscd/nscd-client.h: Include <string.h>.
34029
34030 2014-05-01  David S. Miller  <davem@davemloft.net>
34031
34032         [BZ #16885]
34033         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
34034         multiple zero bytes exist at the end of a string.
34035         Reported by Aurelien Jarno <aurelien@aurel32.net>
34036
34037         * string/test-strcmp.c (check): Add explicit test for situations where
34038         there are multiple zero bytes after the first.
34039
34040 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34041
34042         [BZ #16890]
34043         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
34044         when compiling wprintf.
34045         * stdio-common/tstdiomisc.c (t3): New function.
34046         (main): Call it.
34047
34048 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34049
34050         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
34051         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
34052         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
34053         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
34054
34055 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34056
34057         * stdlib/longlong.h: Updated from GCC.
34058
34059 2014-05-01  Will Newton  <will.newton@linaro.org>
34060             Bernard Ogden  <bernie.ogden@linaro.org>
34061
34062         * NEWS: Update fixed bug list.
34063
34064         [BZ #15119]
34065         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
34066
34067 2014-04-30  David S. Miller  <davem@davemloft.net>
34068
34069         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
34070         (libc_feholdexcept_setround_sparc_ctx): New function.
34071         (libc_fesetenv_sparc_ctx): Likewise.
34072         (libc_feupdateenv_sparc_ctx): Likewise.
34073         (libc_feholdsetround_sparc_ctx): Likewise.
34074         (libc_feholdexcept_setround_ctx): Define.
34075         (libc_feholdexcept_setroundf_ctx): Likewise.
34076         (libc_feholdexcept_setroundl_ctx): Likewise.
34077         (libc_fesetenv_ctx): Likewise.
34078         (libc_fesetenvf_ctx): Likewise.
34079         (libc_fesetenvl_ctx): Likewise.
34080         (libc_feupdateenv_ctx): Likewise.
34081         (libc_feupdateenvf_ctx): Likewise.
34082         (libc_feupdateenvl_ctx): Likewise.
34083         (libc_feresetround_ctx): Likewise.
34084         (libc_feresetroundf_ctx): Likewise.
34085         (libc_feresetroundl_ctx): Likewise.
34086         (libc_feholdsetround_ctx): Likewise.
34087         (libc_feholdsetroundf_ctx): Likewise.
34088         (libc_feholdsetroundl_ctx): Likewise.
34089
34090         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34091         with __USE_GNU instead of XOPEN cpp guards.
34092
34093         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
34094         0.
34095
34096         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34097         with XOPEN cpp guards.
34098
34099 2014-04-30  Julian Brown  <julian@codesourcery.com>
34100
34101         [BZ #16888]
34102         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
34103         handling.
34104
34105 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
34106
34107         [BZ #9894]
34108         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
34109         Change to 2.6.32.
34110         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
34111         * sysdeps/unix/sysv/linux/configure: Regenerated.
34112         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
34113         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
34114         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
34115         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
34116         * README: Update reference to required Linux kernel version.
34117         * manual/install.texi (Linux): Update reference to required Linux
34118         kernel headers version.
34119         * INSTALL: Regenerated.
34120
34121         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
34122         header inclusion.
34123         [POSIX] (limits.h): Likewise.
34124         [POSIX] (math.h): Likewise.
34125         [POSIX] (sys/wait.h): Likewise.
34126         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
34127         function.
34128         [POSIX] (stddef.h): Do not allow header inclusion.
34129
34130 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34131
34132         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
34133
34134 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
34135
34136         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
34137         Return immediately after lll_futex_wake.
34138
34139 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34140
34141         [BZ #16791]
34142         * nscd/nscd-client.h (datahead_init_common): Initialize entire
34143         structure.
34144         (datahead_init_pos): Call datahead_init_common early.
34145         (datahead_init_neg): Likewise.
34146
34147         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
34148         datahead_init_neg): New functions.
34149         * nscd/aicache.c (addhstaiX): Use them.
34150         * nscd/grpcache.c (cache_addgr): Likewise.
34151         * nscd/hstcache.c (cache_addhst): Likewise.
34152         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34153         * nscd/netgroupcache.c (do_notfound): Likewise.
34154         (addgetnetgrentX): Likewise.
34155         (addinnetgrX): Likewise.
34156         * nscd/pwdcache.c (cache_addpw): Likewise.
34157         * nscd/servicescache.c (cache_addserv): Likewise.
34158
34159 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34160             Atsushi Onoe  <atsushi@onoe.org>
34161
34162         [BZ #14308]
34163         [BZ #12994]
34164         [BZ #13651]
34165         * resolv/res_query.c (__libc_res_nsearch): Return if at least
34166         one response is valid.
34167         * resolv/res_send.c (send_dg): Check for validity of other
34168         response if the current response is a referral.
34169
34170 2014-04-29  Steve Ellcey  <sellcey@mips.com>
34171
34172         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
34173
34174 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
34175
34176         [BZ #16823]
34177         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
34178         Always divide by positive zero when computing -Inf result.
34179         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
34180         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
34181
34182 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34183
34184         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
34185         FPSCR if value do not change.
34186         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
34187         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
34188         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34189         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
34190         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
34191         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
34192         function.
34193
34194 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
34195
34196         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
34197         * sysdeps/unix/sysv/linux/hppa: Move directory from
34198         ports/systeps/unix/sysv/linux/hppa.
34199         * README: Update listing for hppa-*-linux-gnu.
34200
34201 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
34202
34203         [BZ #16754]
34204         * manual/stdio.texi (Hook functions): Fix types of stream hook
34205         functions.
34206         [BZ #16854]
34207         * socket/sys/socket.h: Fix typo in comment.
34208
34209 2014-04-28  Wilco  <wdijkstr@arm.com>
34210
34211         * sysdeps/arm/fenv_private.h: New file.
34212         * sysdeps/arm/math_private.h: New file.
34213         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
34214
34215 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
34216
34217         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
34218         with __int128_t.
34219         (La_x86_64_retval): Likewise.
34220
34221 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
34222
34223         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
34224         fpsr if value didn't change.
34225         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
34226         to fpcr if value didn't change.
34227         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
34228         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
34229         fpsr or fpcr if value didn't change.
34230         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
34231         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
34232         fpcr if value didn't change.
34233         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
34234         to fpsr if value didn't change.
34235
34236 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
34237
34238         * nptl/tst-sem3.c: Use test-skeleton.c
34239         (main): Rename to do_test.  Use return instead of
34240         exit.
34241         * nptl/tst-sem4.c: Use test-skeleton.c
34242         (main): Rename to do_test.
34243
34244 2014-04-22  David S. Miller  <davem@davemloft.net>
34245
34246         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34247         (struct sigaction): New struct member __glibc_reserved0, change
34248         type of sa_flags to int.
34249
34250 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
34251
34252         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
34253         (COUNT_LEADING_ZEROS_0): Define for AArch64.
34254
34255 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34256
34257         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
34258         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
34259
34260 2014-04-22  Will Newton  <will.newton@linaro.org>
34261             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
34262
34263         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
34264         (__longjmp): Add longjmp and longjmp_target SystemTap
34265         probes.
34266         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
34267         (__sigsetjmp): Add setjmp SystemTap probe.
34268
34269 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
34270
34271         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
34272         match manual order.
34273
34274 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34275
34276         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
34277
34278         * sysdeps/powerpc/fpu/fenv_private.h
34279         (libc_feholdexcept_setroundl_ctx): Define to
34280         libc_feholdexcept_setround_ppc_ctx.
34281         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
34282         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
34283         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
34284         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
34285
34286 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34287
34288         * sysdeps/aarch64/math-tests.h: New file.
34289
34290 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
34291
34292         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
34293         New.
34294         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34295         Check and set bit_AVX2_Usable.
34296         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
34297         macro.
34298         (bit_AVX2): Likewise.
34299         (index_AVX2_Usable): Likewise.
34300         (CPUID_AVX2): Likewise.
34301         (HAS_AVX2): Likewise.
34302
34303 2014-04-17  Will Newton  <will.newton@linaro.org>
34304
34305         * manual/setjmp.texi (System V contexts): Add note that
34306         calling setcontext on a context created by a call to a
34307         signal handler is undefined.  Update text to note that
34308         setcontext from a signal handler is possible but not
34309         recommended.
34310
34311         [BZ #16629]
34312         * stdlib/tst-setcontext.c: Include signal.h.
34313         (main): Check that the signal stack before and
34314         after swapcontext is the same.
34315
34316         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
34317         Re-implement to restore registers in user code and avoid
34318         rt_sigreturn system call.
34319
34320 2014-04-17  Wilco  <wdijkstr@arm.com>
34321
34322         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
34323         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
34324         * math/test-fenv.c: Skip exception trap tests on targets which only
34325         support non-stop mode.
34326
34327 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34328             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34329
34330         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
34331         (libc_feholdsetround_aarch64_ctx)
34332         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
34333         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
34334         (libc_feresetround_ctx, libc_feresetroundf_ctx)
34335         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
34336         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
34337         (libc_feresetround_noexl_ctx): Define.
34338
34339 2014-04-16  Richard Henderson  <rth@redhat.com>
34340
34341         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
34342
34343         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
34344         unwind tables.
34345
34346         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
34347         const from the non-libc, non-ldso copy.
34348
34349         * sysdeps/alpha/libm-test-ulps: Regenerate.
34350
34351 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
34352             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34353
34354         * sysdeps/aarch64/fpu/math_private.h: New file.
34355
34356 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34357
34358         * sysdeps/aarch64/libm-test-ulps: Regenerate.
34359
34360 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
34361
34362         [BZ #16275]
34363         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34364         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34365         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34366         Intel MPX bound registers before _dl_profile_fixup.
34367         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34368         registers after _dl_profile_fixup.  Save and restore bound
34369         registers bnd0/bnd1 when calling _dl_call_pltexit.
34370         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34371         (LR_BND_OFFSET): Likewise.
34372         (LRV_BND0_OFFSET): Likewise.
34373         (LRV_BND1_OFFSET): Likewise.
34374
34375 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34376
34377         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34378         to...
34379         * sysdeps/mach/hurd/i386/tls.h: ... here.
34380         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34381         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34382         fields.
34383
34384 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34385
34386         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34387
34388 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34389
34390         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34391
34392 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34393
34394         [BZ #14770]
34395         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34396         * sysdeps/s390/configure: Regenerate.
34397
34398         [BZ #16824]
34399         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34400         Set round-to-nearest internally to reduce error accumulation.
34401
34402 2014-04-16  Alan Modra  <amodra@gmail.com>
34403
34404         [BZ #16740]
34405         [BZ #16619]
34406         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34407         * math/libm-test.inc (frexp_test_data): Add tests.
34408         * NEWS: Update fixed bug list.
34409
34410 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34411
34412         * benchtests/Makefile: Depend on libraries in build directory.
34413         (bench-math): Separate out math tests.
34414         (bench-pthread): Separate out pthread tests.
34415         (bench): Include math and pthread tests.
34416
34417 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34418
34419         [BZ #16831]
34420         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34421         _dl_debug_initialize.
34422
34423         * configure.ac: Remove SELinux header check.
34424         * configure: Regenerate.
34425         * nscd/selinux.c (perms): Array of const char* to permission names.
34426         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34427         default policy. Call string_to_security_class and string_to_av_perm to
34428         translate strings. Enforce default policy and call avs_has_perm with
34429         results of translated strings.
34430
34431 2014-04-13  David S. Miller  <davem@davemloft.net>
34432
34433         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34434
34435 2014-04-12  Allan McRae  <allan@archlinux.org>
34436
34437         [BZ #16838]
34438         * manual/string.texi (Collation Functions): Fix qsort argument
34439         order in example.
34440         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34441
34442 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34443
34444         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34445         Make the test a no-op if there are no exceptions defined.
34446
34447 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34448
34449         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34450         enable-hardcoded-path-in-tests
34451
34452 2014-04-11  Will Newton  <will.newton@linaro.org>
34453
34454         * benchtests/Makefile (extra-objs): Add json-lib.o.
34455         (bench-func): Tidy up JSON output.
34456         * benchtests/bench-skeleton.c: Include json-lib.h.
34457         (main): Use JSON library functions to do output of
34458         benchmark results.
34459         * benchtests/bench-timing-type.c (main): Output the
34460         timing type simply, leaving formatting to the user.
34461         * benchtests/json-lib.c: New file.
34462         * benchtests/json-lib.h: Likewise.
34463
34464 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34465
34466         [BZ #15215]
34467         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34468         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34469         memory barriers.  Add comments.
34470         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34471         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34472         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34473         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34474         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34475         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34476
34477 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34478
34479         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34480         * sysdeps/s390/s390-64/configure.ac: ... this ...
34481         * sysdeps/s390/configure.ac: ... to here.
34482         * sysdeps/s390/s390-32/configure: Delete file.
34483         * sysdeps/s390/s390-64/configure: Delete file.
34484         * sysdeps/s390/configure: Regenerate.
34485
34486 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34487
34488         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34489
34490 2014-04-11  Will Newton  <will.newton@linaro.org>
34491
34492         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34493         to zero if it is not defined elsewhere.  (mtrim): Test
34494         the value of MALLOC_DEBUG with #if rather than #ifdef.
34495
34496 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34497
34498         * benchtests/pthread_once-inputs: New file.
34499         * benchtests/pthread_once-source.c: New file.
34500         * benchtests/README: Update documentation.
34501
34502 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34503             H.J. Lu  <hongjiu.lu@intel.com>
34504
34505         [BZ #16275]
34506         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34507         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34508         * sysdeps/x86_64/configure: Regenerated.
34509         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34510         macro.
34511         (REGISTER_SAVE_RAX): Likewise.
34512         (REGISTER_SAVE_RCX): Likewise.
34513         (REGISTER_SAVE_RDX): Likewise.
34514         (REGISTER_SAVE_RSI): Likewise.
34515         (REGISTER_SAVE_RDI): Likewise.
34516         (REGISTER_SAVE_R8): Likewise.
34517         (REGISTER_SAVE_R9): Likewise.
34518         (REGISTER_SAVE_BND0): Likewise.
34519         (REGISTER_SAVE_BND1): Likewise.
34520         (REGISTER_SAVE_BND2): Likewise.
34521         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34522         bound registers when calling _dl_fixup.
34523
34524 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34525
34526         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34527         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34528         of its definition.
34529         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34530         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34531         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34532         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34533         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34534         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34535         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34536
34537 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34538
34539         [BZ #15514]
34540         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34541         pathconf(_PC_NAME_MAX).
34542
34543 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34544
34545         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34546         Remove macro usage.
34547         (__PTHREAD_SPINS): Move definition to ...
34548         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34549         (__PTHREAD_SPINS): ... here.
34550         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34551         (__PTHREAD_SPIN): Likewise.
34552         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34553         (__PTHREAD_SPIN): Likewise.
34554         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34555         (__PTHREAD_SPIN): Likewise.
34556         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34557         (__PTHREAD_SPIN): Likewise.
34558         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34559         (__PTHREAD_SPIN): Likewise.
34560         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34561         (__PTHREAD_SPIN): Likewise.
34562         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34563         (__PTHREAD_SPIN): Likewise.
34564         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34565         (__PTHREAD_SPIN): Likewise.
34566         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34567         (__PTHREAD_SPIN): Likewise.
34568         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34569         (__PTHREAD_SPIN): Likewise.
34570         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34571         (__PTHREAD_SPIN): Likewise.
34572         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34573         (__PTHREAD_SPIN): Likewise.
34574
34575         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34576         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34577         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34578         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34579         imply folder.
34580         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34581         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34582         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34583         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34584         correct imply path.
34585         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34586         strlen symbol for non multi-arch builds.
34587         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34588         missing hidden_def and weak_alias.
34589
34590 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34591
34592         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34593
34594 2014-04-07  Will Newton  <will.newton@linaro.org>
34595
34596         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34597         and contents.  [!_LIBC] Remove #ifndef and contents.
34598         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34599         * string/memccpy.c (__memccpy): Use ANSI prototype.
34600         * string/memfrob.c (memfrob): Likewise.
34601         * string/strcoll.c (STRCOLL): Likewise.
34602         * string/strlen.c (strlen): Likewise.
34603         * string/strtok.c (STRTOK): Likewise.
34604         * string/strcat.c: Remove unused #include of memcopy.h.
34605         (strcat): Use ANSI prototype.
34606         * string/strchr.c: Remove unused #include of memcopy.h.
34607         (strchr): Use ANSI prototype.
34608         * string/strcmp.c: Remove unused #include of memcopy.h.
34609         (strcmp): Use ANSI prototype.
34610         * string/strcpy.c: Remove unused #include of memcopy.h.
34611         (strcpy): Use ANSI prototype.
34612
34613 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34614
34615         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34616         * config.make.in (config-extra-cppflags): Set it from
34617         libc_extra_cppflags.
34618         * configure.ac (libc_extra_cflags): Make it accumulate over
34619         configure fragments.
34620         (libc_extra_cppflags): New flag.
34621         * configure. Regenerate.
34622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34623         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34624         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34626
34627         [BZ #16815]
34628         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34629         result for FE_DOWNWARD rounding mode.
34630         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34631         Likewise.
34632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34633
34634 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34635
34636         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34637         in function argument name.
34638
34639 2014-04-03  David Svoboda  <svoboda@cert.org>
34640
34641         [BZ #5666]
34642         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34643         explicitly.
34644
34645 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34646
34647         * elf/dl-unmap-segments.h: New file.
34648         * sysdeps/generic/ldsodefs.h
34649         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34650         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34651         * elf/dl-fptr.c: Likewise.
34652         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34653         * sysdeps/aarch64/tlsdesc.c: Likewise.
34654         * sysdeps/arm/tlsdesc.c: Likewise.
34655         * sysdeps/i386/tlsdesc.c: Likewise.
34656         * sysdeps/tile/dl-runtime.c: Likewise.
34657         * sysdeps/x86_64/tlsdesc.c: Likewise.
34658         * elf/dl-load.h: New file.
34659         * elf/dl-load.c: Include it.
34660         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34661         Macros moved to dl-load.h.
34662         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34663         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34664         Use _dl_unmap_segments in place of __munmap.
34665         Break out segment-mapping loop into ...
34666         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34667
34668 2014-04-03  Will Newton  <will.newton@linaro.org>
34669
34670         * elf/dl-lookup.c (do_lookup_x): Remove comment
34671         referring to nested function and move variable
34672         declarations down to before first use.
34673
34674 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34675
34676         [BZ #16799]
34677         [BZ #16800]
34678         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34679         with 0 numerator.
34680         * math/s_catanf.c (__catanf): Likewise.
34681         * math/s_catanh.c (__catanh): Likewise.
34682         * math/s_catanhf.c (__catanhf): Likewise.
34683         * math/s_catanhl.c (__catanhl): Likewise.
34684         * math/s_catanl.c (__catanl): Likewise.
34685         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34686         by positive zero when computing -Inf result.
34687         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34688         (catanh_test): Likewise.
34689         * sysdeps/i386/fpu/libm-test-ulps: Update.
34690         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34691
34692         [BZ #16789]
34693         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34694         instead of using underflowing value in computing result.
34695         * math/s_clog10.c (__clog10): Likewise.
34696         * math/s_clog10f.c (__clog10f): Likewise.
34697         * math/s_clog10l.c (__clog10l): Likewise.
34698         * math/s_clogf.c (__clogf): Likewise.
34699         * math/s_clogl.c (__clogl): Likewise.
34700         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34701         (clog10_test): Likewise.
34702         * sysdeps/i386/fpu/libm-test-ulps: Update.
34703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34704
34705 2014-04-02  Alan Modra  <amodra@gmail.com>
34706
34707         [BZ #16739]
34708         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34709         output when value is near a power of two.  Use int64_t for lx and
34710         remove casts.  Use decimal rather than hex exponent constants.
34711         Don't use long double multiplication when double will suffice.
34712         * math/libm-test.inc (nextafter_test_data): Add tests.
34713         * NEWS: Add 16739 and 16786 to bug list.
34714
34715         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34716
34717         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34718
34719 2014-04-01  Will Newton  <will.newton@linaro.org>
34720
34721         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34722         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34723
34724 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34725
34726         [BZ #13347]
34727         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34728         * nptl/tst-setuid2.c: New file.
34729         * nptl/Makefile (xtests): Add tst-setuid2.
34730
34731 2014-04-01  Alan Modra  <amodra@gmail.com>
34732
34733         [BZ #16786]
34734         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34735
34736 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34737
34738         [BZ #6803]
34739         [BZ #6804]
34740         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34741         set errno as appropriate.
34742         * math/w_scalbf.c (__scalbf): Likewise.
34743         * math/w_scalbl.c (__scalbl): Likewise.
34744         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34745         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34746         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34747         Add more NaN tests.
34748
34749         [BZ #16349]
34750         * math/w_atan2.c: Include <errno.h>.
34751         (__atan2): Set errno for result underflowing to zero.
34752         * math/w_atan2f.c: Include <errno.h>.
34753         (__atan2f): Set errno for result underflowing to zero.
34754         * math/w_atan2l.c: Include <errno.h>.
34755         (__atan2l): Set errno for result underflowing to zero.
34756         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34757         tests.
34758         * math/auto-libm-test-out: Regenerated.
34759
34760 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34761
34762         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34763         Encode instruction correctly in little endian.
34764         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34765         Likewise.
34766         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34767         Likewise.
34768         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34769         Likewise.
34770         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34771         Likewise.
34772
34773 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34774
34775         [BZ #9894]
34776         * sysdeps/unix/sysv/linux/kernel-features.h
34777         [__sparc__ && !__arch64__ && !__sparc_v9__]
34778         (__ASSUME_SET_ROBUST_LIST): Do not define.
34779         [__sparc__ && !__arch64__ && !__sparc_v9__]
34780         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34781         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34782         Likewise.
34783         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34784         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34785         (__ASSUME_REQUEUE_PI): Likewise.
34786         (__ASSUME_SET_ROBUST_LIST): Likewise.
34787         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34788         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34789         Undefine.
34790         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34791         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34792         Likewise.
34793         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34794         Likewise.
34795         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34796         Likewise.
34797         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34798         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34799         Undefine.
34800         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34801         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34802         Likewise.
34803
34804         [BZ #16648]
34805         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34806         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34807         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34808
34809 2014-03-31  Will Newton  <will.newton@linaro.org>
34810
34811         * benchtests/Makefile (bench): Add ffs and ffsll to list
34812         of tests.
34813         * benchtests/ffs-inputs: New file.
34814         * benchtests/ffsll-inputs: Likewise.
34815
34816 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34817
34818         [BZ #16770]
34819         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34820         too large before casting to int.
34821         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34822         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34823         * math/libm-test.inc (scalb_test_data): Add more tests.
34824
34825 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34826
34827         * benchtests/Makefile (DETAILED_OPT): New make option.
34828         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34829         set.
34830         * benchtests/bench-skeleton.c: Include stdbool.h.
34831         (main): Store and print timings per input.
34832         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34833         member to each argument value.
34834         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34835         (_print_arg_data): Initialize per-input timing to 0.
34836
34837         * benchtests/Makefile (timing-type): New binary.
34838         (bench-clean): Also remove bench-timing-type.
34839         (bench): New target for timing-type.
34840         (bench-func): Print output in JSON format.
34841         * benchtests/bench-skeleton.c (main): Print output in JSON
34842         format.
34843         * benchtests/bench-timing-type.c: New file.
34844         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34845         (TIMING_PRINT_STATS): Remove.
34846         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34847         name separately.
34848
34849         * benchtests/bench-modf.c: Remove.
34850         * benchtests/modf-inputs: New inputs file.
34851
34852 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34853
34854         [BZ #16362]
34855         * math/s_clog10.c (M_PI_LOG10E): New macro.
34856         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34857         imaginary parts are 0.
34858         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34859         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34860         imaginary parts are 0.
34861         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34862         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34863         imaginary parts are 0.
34864         * math/libm-test.inc (clog10_test_data): Update expected results
34865         for when real and imaginary parts are 0.
34866
34867 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34868
34869         * elf/dl-load.c: Finish conversion of __builtin_expect into
34870         __glibc_{un}likely.
34871
34872 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34873
34874         [BZ #16348]
34875         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34876         1+x for argument with exponent below -67.
34877         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34878         Likewise.
34879         * math/auto-libm-test-in: Add more tests of exp.
34880         * math/auto-libm-test-out: Regenerated.
34881
34882 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34883
34884         [BZ #16759]
34885         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34886         (nscd_getnetgrent): Use it.
34887
34888         [BZ #16760]
34889         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34890         of stpcpy.
34891
34892 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34893
34894         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34895         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34896         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34897         (lll_robust_unlock): Remove out of line section. Use cfi
34898         intrinsics.
34899         (LLL_STUB_UNWIND_INFO*): Remove.
34900         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34901         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34902         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34903         (lll_robust_unlock): Remove out of line section. Use cfi
34904         intrinsics.
34905         (LLL_STUB_UNWIND_INFO*): Remove.
34906
34907 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34908
34909         [BZ #16758]
34910         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34911         blank values.
34912
34913 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34914
34915         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34916
34917 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34918
34919         [BZ #16198]
34920         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34921         fnstenv.
34922         * math/test-fenv-preserve.c: New file.
34923         * math/Makefile (tests): Add test-fenv-preserve.
34924
34925 2014-03-26  Will Newton <will.newton@linaro.org>
34926
34927         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34928
34929 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34930
34931         * scripts/versionlist.awk: Partition the version sets and emit all
34932         GLIBC_* (sorted) before all others (sorted).
34933
34934 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34935
34936         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34937         GLIBC_2.2.5 version.
34938
34939 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34940
34941         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34942         calls.
34943
34944         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34945         previous change.
34946
34947         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34948
34949 2014-03-25  Andreas Schwab  <schwab@suse.de>
34950
34951         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34952         label to be used after in6ailist is initialized.
34953
34954 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34955
34956         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34957         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34958
34959 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34960
34961         [BZ #16357]
34962         [BZ #16599]
34963         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34964         min_plus_half.
34965         (fp_formats): Update initializers.
34966         (init_fp_formats): Initialize new field.
34967         (output_for_one_input_case): Allow underflow for results up to
34968         min_plus_half.
34969         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34970         * math/auto-libm-test-in: Don't mark some underflows from asin and
34971         atanh as spurious.
34972         * math/auto-libm-test-out: Regenerated.
34973         * sysdeps/i386/fpu/libm-test-ulps: Update.
34974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34975
34976 2014-03-25  Andreas Schwab  <schwab@suse.de>
34977
34978         * libio/Makefile (tst-ftell-partial-wide-ENV)
34979         (tst-ftell-active-handler-ENV): Define.
34980
34981 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34982
34983         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34984
34985 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34986
34987         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34988
34989 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34990
34991         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34992         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34993         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34994
34995 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34996
34997         [BZ #16634]
34998         * elf/dl-load.c (open_verify): Add mode parameter.
34999         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
35000         (open_path): Change from boolean 'secure' to complete flag 'mode'
35001         (_dl_map_object): Adjust.
35002         * elf/Makefile (tests): Add tst-dlopen-aout.
35003         * elf/tst-dlopen-aout.c: New test.
35004
35005 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
35006
35007         [BZ #16714]
35008         * sysdeps/unix/sysv/linux/s390/bits/stat.h
35009         (struct stat): Rename member pad0 to __glibc_reserved0.
35010
35011         [BZ #16712]
35012         * sysdeps/s390/s390-32/bits/wordsize.h
35013         (__WORDSIZE32_SIZE_ULONG): New define.
35014         * sysdeps/s390/s390-64/bits/wordsize.h
35015         (__WORDSIZE32_SIZE_ULONG): Likewise.
35016         * sysdeps/generic/stdint.h (SIZE_MAX):
35017         Define as UL if __WORDSIZE32_SIZE_ULONG.
35018
35019         [BZ #16713]
35020         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
35021         (__glibc_reserved0): New variable.
35022         (sa_flags): Change type to int.
35023
35024         * posix/Makefile (before-compile): Use += before-compile instead
35025         of a :=.
35026
35027         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
35028         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35029
35030 2014-03-20  Andreas Schwab  <schwab@suse.de>
35031
35032         [BZ #16743]
35033         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
35034         non-matching result from nscd.
35035
35036 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35037
35038         * scripts/bench.py: Moved to ...
35039         * benchtests/scripts/bench.py: ... here.
35040         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
35041
35042 2014-03-24  Andreas Schwab  <schwab@suse.de>
35043
35044         [BZ #16002]
35045         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
35046         alloca_account and account alloca use for struct in6ailist.
35047
35048 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35049
35050         [BZ #16284]
35051         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
35052         rounding mode to recompute results that overflow to infinity or
35053         underflow to zero.
35054         * math/auto-libm-test-in: Don't mark tests as expected to fail for
35055         bug 16284.
35056         * math/auto-libm-test-out: Regenerated.
35057         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
35058         (ccosh_test): Likewise.
35059         (csin_test_data): Use plus_oflow.
35060         (csin_test): Use ALL_RM_TEST.
35061         (csinh_test_data): Use plus_oflow.
35062         (csinh_test): Use ALL_RM_TEST.
35063         * sysdeps/i386/fpu/libm-test-ulps: Update.
35064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35065
35066 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
35067
35068         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
35069         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
35070         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
35071
35072         [BZ #16731]
35073         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
35074         when x - 1 is zero.
35075         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
35076         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
35077         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
35078         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
35079         argument is 1.
35080         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
35081         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
35082         zero.
35083         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
35084         * sysdeps/i386/fpu/libm-test-ulps: Update.
35085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35086
35087 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
35088
35089         * scripts/bench.pl: Remove file.
35090         * scripts/bench.py: New benchmark script.
35091         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
35092         * benchtests/README: Mention python dependency.
35093         * scripts/pylintrc: New file.
35094         * scripts/pylint: New file.
35095
35096         * bits/mathdef.h: Use #ifdef instead of #if.
35097         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
35098         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35099         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
35100         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35101         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
35102         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35103
35104 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35105             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35106
35107         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
35108         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
35109         and strpbrk-ppc64 objects.
35110         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35111         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
35112         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
35113         multiarch strpbrk for POWER7.
35114         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
35115         multiarch strpbrk for PPC64.
35116         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
35117         ifunc selector.
35118         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
35119         strpbrk for POWER7.
35120
35121 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35122
35123         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
35124         (atan_test): Likewise.
35125         (atanh_test_data): Use NO_TEST_INLINE for two tests.
35126         (atanh_test): Use ALL_RM_TEST.
35127         (atan2_test_data): Likewise.
35128         (cabs_test): Likewise.
35129         (cacosh_test): Likewise.
35130         (carg_test): Likewise.
35131         (casin_test): Likewise.
35132         (casinh_test): Likewise.
35133         (cbrt_test): Likewise.
35134         (csqrt_test): Likewise.
35135         (erf_test): Likewise.
35136         (erfc_test): Likewise.
35137         (pow10_test): Likewise.
35138         (exp2_test): Likewise.
35139         (hypot_test): Likewise.
35140         (j0_test): Likewise.
35141         (j1_test): Likewise.
35142         (lgamma_test): Likewise.
35143         (gamma_test): Likewise.
35144         (sincos_test): Likewise.
35145         (tanh_test): Likewise.
35146         (y0_test): Likewise.
35147         (y1_test): Likewise.
35148         * sysdeps/i386/fpu/libm-test-ulps: Update.
35149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35150
35151 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35152
35153         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
35154         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
35155         and strcspn-ppc64 objects.
35156         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35157         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
35158         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
35159         multiarch strcspn for POWER7.
35160         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
35161         multiarch strcspn for PPC64.
35162         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
35163         ifunc selector.
35164         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
35165         strcspn for POWER7.
35166
35167 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35168
35169         * math/gen-libm-test.pl (generate_testfile): Expect only function
35170         name as argument to AUTO_TESTS_* and pass results for all rounding
35171         modes to parse_args.
35172         (parse_auto_input): Separate inputs of automatic tests from
35173         outputs before storing in %auto_tests.
35174         * math/libm-test.inc (acos_test_data): Update call to
35175         AUTO_TESTS_f_f.
35176         (acos_test): Use ALL_RM_TEST.
35177         (acos_tonearest_test_data): Remove.
35178         (acos_test_tonearest): Likewise.
35179         (acos_towardzero_test_data): Likewise.
35180         (acos_test_towardzero): Likewise.
35181         (acos_downward_test_data): Likewise.
35182         (acos_test_downward): Likewise.
35183         (acos_upward_test_data): Likewise.
35184         (acos_test_upward): Likewise.
35185         (acosh_test_data): Update call to AUTO_TESTS_f_f.
35186         (asin_test_data): Likewise.
35187         (asin_test): Use ALL_RM_TEST.
35188         (asin_tonearest_test_data): Remove.
35189         (asin_test_tonearest): Likewise.
35190         (asin_towardzero_test_data): Likewise.
35191         (asin_test_towardzero): Likewise.
35192         (asin_downward_test_data): Likewise.
35193         (asin_test_downward): Likewise.
35194         (asin_upward_test_data): Likewise.
35195         (asin_test_upward): Likewise.
35196         (asinh_test_data): Update call to AUTO_TESTS_f_f.
35197         (atan_test_data): Likewise.
35198         (atanh_test_data): Likewise.
35199         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
35200         (cabs_test_data): Update call to AUTO_TESTS_c_f.
35201         (carg_test_data): Likewise.
35202         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
35203         (ccos_test_data): Update call to AUTO_TESTS_c_c.
35204         (ccosh_test_data): Likewise.
35205         (cexp_test_data): Likewise.
35206         (clog_test_data): Likewise.
35207         (clog10_test_data): Likewise.
35208         (cos_test_data): Update call to AUTO_TESTS_f_f.
35209         (cos_test): Use ALL_RM_TEST.
35210         (cos_tonearest_test_data): Remove.
35211         (cos_test_tonearest): Likewise.
35212         (cos_towardzero_test_data): Likewise.
35213         (cos_test_towardzero): Likewise.
35214         (cos_downward_test_data): Likewise.
35215         (cos_test_downward): Likewise.
35216         (cos_upward_test_data): Likewise.
35217         (cos_test_upward): Likewise.
35218         (cosh_test_data): Update call to AUTO_TESTS_f_f.
35219         (cosh_test): Use ALL_RM_TEST.
35220         (cosh_tonearest_test_data): Remove.
35221         (cosh_test_tonearest): Likewise.
35222         (cosh_towardzero_test_data): Likewise.
35223         (cosh_test_towardzero): Likewise.
35224         (cosh_downward_test_data): Likewise.
35225         (cosh_test_downward): Likewise.
35226         (cosh_upward_test_data): Likewise.
35227         (cosh_test_upward): Likewise.
35228         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
35229         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
35230         (ctan_test_data): Likewise.
35231         (ctan_test): Use ALL_RM_TEST.
35232         (ctan_tonearest_test_data): Remove.
35233         (ctan_test_tonearest): Likewise.
35234         (ctan_towardzero_test_data): Likewise.
35235         (ctan_test_towardzero): Likewise.
35236         (ctan_downward_test_data): Likewise.
35237         (ctan_test_downward): Likewise.
35238         (ctan_upward_test_data): Likewise.
35239         (ctan_test_upward): Likewise.
35240         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
35241         (ctanh_test): Use ALL_RM_TEST.
35242         (ctanh_tonearest_test_data): Remove.
35243         (ctanh_test_tonearest): Likewise.
35244         (ctanh_towardzero_test_data): Likewise.
35245         (ctanh_test_towardzero): Likewise.
35246         (ctanh_downward_test_data): Likewise.
35247         (ctanh_test_downward): Likewise.
35248         (ctanh_upward_test_data): Likewise.
35249         (ctanh_test_upward): Likewise.
35250         (erf_test_data): Update call to AUTO_TESTS_f_f.
35251         (erfc_test_data): Likewise.
35252         (exp_test_data): Likewise.
35253         (exp_test): Use ALL_RM_TEST.
35254         (exp_tonearest_test_data): Remove.
35255         (exp_test_tonearest): Likewise.
35256         (exp_towardzero_test_data): Likewise.
35257         (exp_test_towardzero): Likewise.
35258         (exp_downward_test_data): Likewise.
35259         (exp_test_downward): Likewise.
35260         (exp_upward_test_data): Likewise.
35261         (exp_test_upward): Likewise.
35262         (exp10_test_data): Update call to AUTO_TESTS_f_f.
35263         (exp10_test): Use ALL_RM_TEST.
35264         (exp10_tonearest_test_data): Remove.
35265         (exp10_test_tonearest): Likewise.
35266         (exp10_towardzero_test_data): Likewise.
35267         (exp10_test_towardzero): Likewise.
35268         (exp10_downward_test_data): Likewise.
35269         (exp10_test_downward): Likewise.
35270         (exp10_upward_test_data): Likewise.
35271         (exp10_test_upward): Likewise.
35272         (exp2_test_data): Update call to AUTO_TESTS_f_f.
35273         (expm1_test_data): Likewise.
35274         (expm1_test): Use ALL_RM_TEST.
35275         (expm1_tonearest_test_data): Remove.
35276         (expm1_test_tonearest): Likewise.
35277         (expm1_towardzero_test_data): Likewise.
35278         (expm1_test_towardzero): Likewise.
35279         (expm1_downward_test_data): Likewise.
35280         (expm1_test_downward): Likewise.
35281         (expm1_upward_test_data): Likewise.
35282         (expm1_test_upward): Likewise.
35283         (fma_test_data): Update call to AUTO_TESTS_fff_f.
35284         (fma_test): Use ALL_RM_TEST.
35285         (fma_towardzero_test_data): Remove.
35286         (fma_test_towardzero): Likewise.
35287         (fma_downward_test_data): Likewise.
35288         (fma_test_downward): Likewise.
35289         (fma_upward_test_data): Likewise.
35290         (fma_test_upward): Likewise.
35291         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
35292         (j0_test_data): Update call to AUTO_TESTS_f_f.
35293         (j1_test_data): Likewise.
35294         (jn_test_data): Update call to AUTO_TESTS_if_f.
35295         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
35296         (log_test_data): Update call to AUTO_TESTS_f_f.
35297         (log10_test_data): Likewise.
35298         (log1p_test_data): Likewise.
35299         (log2_test_data): Likewise.
35300         (pow_test_data): Update call to AUTO_TESTS_ff_f.
35301         (pow_tonearest_test_data): Likewise.
35302         (sin_test_data): Update call to AUTO_TESTS_f_f.
35303         (sin_test): Use ALL_RM_TEST.
35304         (sin_tonearest_test_data): Remove.
35305         (sin_test_tonearest): Likewise.
35306         (sin_towardzero_test_data): Likewise.
35307         (sin_test_towardzero): Likewise.
35308         (sin_downward_test_data): Likewise.
35309         (sin_test_downward): Likewise.
35310         (sin_upward_test_data): Likewise.
35311         (sin_test_upward): Likewise.
35312         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
35313         (sinh_test_data): Update call to AUTO_TESTS_f_f.
35314         (sinh_test): Use ALL_RM_TEST.
35315         (sinh_tonearest_test_data): Remove.
35316         (sinh_test_tonearest): Likewise.
35317         (sinh_towardzero_test_data): Likewise.
35318         (sinh_test_towardzero): Likewise.
35319         (sinh_downward_test_data): Likewise.
35320         (sinh_test_downward): Likewise.
35321         (sinh_upward_test_data): Likewise.
35322         (sinh_test_upward): Likewise.
35323         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
35324         (sqrt_test): Use ALL_RM_TEST.
35325         (sqrt_tonearest_test_data): Remove.
35326         (sqrt_test_tonearest): Likewise.
35327         (sqrt_towardzero_test_data): Likewise.
35328         (sqrt_test_towardzero): Likewise.
35329         (sqrt_downward_test_data): Likewise.
35330         (sqrt_test_downward): Likewise.
35331         (sqrt_upward_test_data): Likewise.
35332         (sqrt_test_upward): Likewise.
35333         (tan_test_data): Update call to AUTO_TESTS_f_f.
35334         (tan_test): Use ALL_RM_TEST.
35335         (tan_tonearest_test_data): Remove.
35336         (tan_test_tonearest): Likewise.
35337         (tan_towardzero_test_data): Likewise.
35338         (tan_test_towardzero): Likewise.
35339         (tan_downward_test_data): Likewise.
35340         (tan_test_downward): Likewise.
35341         (tan_upward_test_data): Likewise.
35342         (tan_test_upward): Likewise.
35343         (tanh_test_data): Update call to AUTO_TESTS_f_f.
35344         (tgamma_test_data): Likewise.
35345         (y0_test_data): Likewise.
35346         (y1_test_data): Likewise.
35347         (yn_test_data): Update call to AUTO_TESTS_if_f.
35348         (main): Do not call removed functions.
35349
35350 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35351
35352         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
35353         (ldexp_test_data): Remove.
35354         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
35355         scalbn_test_data.
35356         (scalb_test): Use ALL_RM_TEST.
35357
35358 2014-03-19  Andreas Schwab  <schwab@suse.de>
35359
35360         * nscd/nscd.service: Also invalidate netgroup cache on reload.
35361
35362 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35363
35364         [BZ #16649]
35365         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35366         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35367         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35368         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35369         (__ASSUME_PREADV): Undefine.
35370         (__ASSUME_PWRITEV): Likewise.
35371
35372 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35373
35374         * bits/mman-linux.h: Add comment about non-Linux use.
35375         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35376         bits/mman-linux.h resting place.
35377
35378         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35379         * bits/mman-linux.h: ... here.
35380
35381 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35382
35383         * conform/conformtest.pl: Add standard definition when calling C
35384         preprocessor on data files.
35385         (checknamespace): Remove unused variable.
35386
35387 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35388
35389         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35390         minus_oflow, plus_uflow and minus_uflow in expected results.
35391         * math/libm-test.inc (scalbn_test_data): Add more tests of
35392         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35393         minus_uflow.
35394         (scalbn_test): Use ALL_RM_TEST.
35395         (scalbln_test_data): Add more tests of negative arguments.  Use
35396         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35397         (scalbln_test): Use ALL_RM_TEST.
35398
35399 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35400
35401         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35402
35403 2014-03-18  Will Newton  <will.newton@linaro.org>
35404
35405         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35406         inaccurate comment.
35407
35408 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35409
35410         * Makerules [!subdir] (check-abi): Exit with error status if a
35411         test failed.
35412
35413 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35414
35415         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35416         for rint.  Include results for all rounding modes.
35417         (nearbyint_test): Use ALL_RM_TEST.
35418         (rint_test_data): Include all tests used for nearbyint.
35419
35420 2014-03-17  Will Newton  <will.newton@linaro.org>
35421
35422         * nptl/sysdeps/pthread/pthread.h: Revert previous
35423         change.
35424
35425         * sysdeps/generic/ldsodefs.h: Revert previous
35426         change.
35427
35428         * libio/genops.c: Revert previous change.
35429         * libio/libioP.h: Likewise.
35430         * stdio-common/vfprintf.c: Likewise.
35431
35432         * sysdeps/generic/math_private.h: Revert previous
35433         change.
35434
35435         * sysdeps/generic/math_private.h: Check whether
35436         HAVE_RM_CTX is defined with #ifdef rather
35437         than #if.
35438
35439         * argp/argp-fmtstream.h: Check whether
35440         __STRICT_ANSI__ is defined with #ifdef rather
35441         than #if.
35442         * argp/argp.h: Likewise.
35443
35444         * libio/genops.c: Check whether
35445         _IO_JUMPS_OFFSET is defined with #ifdef rather
35446         than #if.
35447         * libio/libioP.h: Likewise.
35448         * stdio-common/vfprintf.c: Likewise.
35449
35450         * sysdeps/generic/ldsodefs.h: Check whether
35451         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35452         than #if.
35453
35454         * nptl/sysdeps/pthread/pthread.h: Check
35455         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35456         its value.
35457
35458 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35459
35460         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35461         setting O_APPEND.
35462         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35463         test case.
35464
35465         [BZ #16680]
35466         * libio/fileops.c (_IO_file_open): Seek to end of file but
35467         don't cache the offset.
35468         (get_file_offset): Remove function.
35469         (do_ftell): Use cached offset when available.
35470         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35471         don't cache the offset.
35472         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35473         case.
35474         (do_one_test): Call it.
35475         (do_ftell_test): Fix up expected old offset for a+ mode.
35476         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35477         available.
35478
35479         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35480         up test status with function return status.
35481         (do_write_test): Likewise.
35482         (do_append_test): Likewise.
35483
35484         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35485         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35486         Remove.
35487
35488 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35489
35490         * math/gen-libm-test.pl (parse_args): Handle results specified for
35491         each rounding mode separately.
35492         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35493         tests and results from lrint_tonearest_test_data,
35494         lrint_towardzero_test_data, lrint_downward_test_data and
35495         lrint_upward_test_data.
35496         (lrint_test): Use ALL_RM_TEST.
35497         (lrint_tonearest_test_data): Remove.
35498         (lrint_test_tonearest): Likewise.
35499         (lrint_towardzero_test_data): Likewise.
35500         (lrint_test_towardzero): Likewise.
35501         (lrint_downward_test_data): Likewise.
35502         (lrint_test_downward): Likewise.
35503         (lrint_upward_test_data): Likewise.
35504         (lrint_test_upward): Likewise.
35505         (llrint_test_data): Merge in per-rounding-mode tests and results
35506         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35507         llrint_downward_test_data and llrint_upward_test_data.
35508         (llrint_test): Use ALL_RM_TEST.
35509         (llrint_tonearest_test_data): Remove.
35510         (llrint_test_tonearest): Likewise.
35511         (llrint_towardzero_test_data): Likewise.
35512         (llrint_test_towardzero): Likewise.
35513         (llrint_downward_test_data): Likewise.
35514         (llrint_test_downward): Likewise.
35515         (llrint_upward_test_data): Likewise.
35516         (llrint_test_upward): Likewise.
35517         (rint_test_data): Merge in per-rounding-mode tests and results
35518         from rint_tonearest_test_data, rint_towardzero_test_data,
35519         rint_downward_test_data and rint_upward_test_data.  Add
35520         per-rounding-mode results for tests not in those arrays.
35521         (rint_test): Use ALL_RM_TEST.
35522         (rint_tonearest_test_data): Remove.
35523         (rint_test_tonearest): Likewise.
35524         (rint_towardzero_test_data): Likewise.
35525         (rint_test_towardzero): Likewise.
35526         (rint_downward_test_data): Likewise.
35527         (rint_test_downward): Likewise.
35528         (rint_upward_test_data): Likewise.
35529         (rint_test_upward): Likewise.
35530         (main): Don't call removed functions.
35531
35532 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35533
35534         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35535         "Compiled on ..." crapola.  It is anti-useful.
35536
35537 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35538
35539         * scripts/evaluate-test.sh: Handle fourth argument to determine
35540         whether test run should stop on failure.
35541         * Makeconfig (stop-on-test-failure): New variable.
35542         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35543         $(stop-on-test-failure).
35544         * Makefile (tests): Give a summary of results from testing and
35545         exit with failure status if they include an ERROR or FAIL.
35546         (xtests): Likewise.
35547         * manual/install.texi (Configuring and compiling): Mention
35548         stop-on-test-failure=y.
35549         * INSTALL: Regenerated.
35550
35551 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35552
35553         * scripts/versionlist.awk: New file.
35554         * Makerules [$(build-shared) = yes]
35555         (postclean-generated): Add Versions.def, not Versions.def.v and
35556         Versions.def.v.i.
35557         ($(common-objpfx)Versions.def.v.i): Target removed.
35558         ($(common-objpfx)Versions.def): New target.
35559         ($(common-objpfx)Versions.all): Depend on that rather that
35560         $(common-objpfx)Versions.def.v.
35561         * Versions.def: File removed.
35562
35563         * Makeconfig (+gccwarn): Add -Wundef.
35564         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35565         a dl-sysdep.h breaking its contract.
35566         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35567         * include/stackinfo.h: New file.
35568         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35569         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35570         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35571         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35572         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35573         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35574         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35575         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35576         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35577         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35578         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35579         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35580         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35581         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35582         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35583
35584 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35585
35586         [BZ #16707]
35587         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35588         implementation.
35589         * math/libm-test.inc (round_test_data): Add more tests.
35590
35591         [BZ #16706]
35592         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35593         implementation.
35594         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35595
35596         [BZ #16701]
35597         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35598         implementation.
35599         * math/libm-test.inc (ceil_test_data): Add more tests.
35600
35601         * math/libm-test.inc (trunc_test_data): Add more tests related to
35602         BZ#16414.
35603
35604 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35605
35606         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35607         with #if rather than #ifdef.
35608         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35609
35610 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35611
35612         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35613         first.  Disable AVX-512 GCC support if assembler doesn't support
35614         it.
35615         * sysdeps/x86_64/configure: Regenerated.
35616
35617 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35618
35619         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35620         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35621         (__old_pthread_attr_setstack): Likewise.
35622         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35623         [!_STACK_GROWS_DOWN]: Likewise.
35624
35625 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35626
35627         * config.make.in (have-bash2): Delete.
35628         * configure.ac (libc_cv_have_bash2): Delete.
35629         * configure: Regenerate.
35630         * elf/Makefile (common-ldd-rewrite): Rename to ...
35631         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35632         (sh-ldd-rewrite): Delete.
35633         (bash-ldd-rewrite): Delete.
35634         (have-bash2): Delete checks.
35635         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35636         ldd-rewrite.
35637
35638         * config.make.in (have-ksh): Delete.
35639         (KSH): Delete.
35640         * configure.ac (libc_cv_have_ksh): Delete.
35641         * configure: Regenerate.
35642
35643         * elf/Makefile: Delete $(have-ksh) check.
35644         ($(objpfx)sotruss): Change KSH to BASH.
35645         * elf/sotruss.ksh: Rename to ...
35646         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35647         function style to match POSIX.  Drop ksh vim mode setting.
35648
35649         * manual/time.texi (Specifying the Time Zone with TZ): Change
35650         Tuesday to Thursday.
35651
35652         * debug/tst-longjmp_chk2.c: Update header comment.
35653         (stackoverflow_handler): Add comment.  Call assert on pass value.
35654
35655 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35656
35657         [BZ #16194]
35658         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35659         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35660         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35661         (La_x86_64_vector): Add zmm.
35662         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35663         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35664         ($(objpfx)tst-audit10): New target.
35665         ($(objpfx)tst-audit10.out): Likewise.
35666         (tst-audit10-ENV): New.
35667         (AVX512-CFLAGS): Likewise.
35668         (CFLAGS-tst-audit10.c): Likewise.
35669         (CFLAGS-tst-auditmod10a.c): Likewise.
35670         (CFLAGS-tst-auditmod10b.c): Likewise.
35671         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35672         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35673         * sysdeps/x86_64/configure: Regenerated.
35674         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35675         AVX-512 zmm register support.
35676         (_dl_x86_64_save_sse): Likewise.
35677         (_dl_x86_64_restore_sse): Likewise.
35678         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35679         size vector registers.
35680         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35681         (ZMM_SIZE): Likewise.
35682         * sysdeps/x86_64/tst-audit10.c: New file.
35683         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35684         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35685
35686 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35687
35688         * configure.ac (HAVE_EHDR_START): New check.
35689         * configure: Regenerated.
35690         * config.h.in (HAVE_EHDR_START): New #undef.
35691         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35692         assuming the lowest-addressed segment maps the start of the file.
35693
35694 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35695
35696         * INSTALL: Regenerated.
35697
35698 2014-03-13  Will Newton  <will.newton@linaro.org>
35699
35700         * manual/setjmp.texi (System V contexts): Improve
35701         clarity and grammar of documentation.
35702
35703 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35704
35705         [BZ #16381]
35706         * elf/Makefile (tests): Add tst-pie2.
35707         (tests-pie): Add tst-pie2.
35708         * elf/tst-pie2.c: New file.
35709         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35710         for ET_EXEC.
35711         * elf/rtld.c (map_doit): Load executable as lt_executable.
35712         (dl_main): Likewise.
35713
35714 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35715
35716         [BZ #16642]
35717         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35718         (__ASSUME_PSELECT): Undefine.
35719
35720 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35721
35722         [BZ #16689]
35723         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35724         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35725         static build.
35726         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35727         selector for static builds.
35728
35729 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35730
35731         [BZ #16695]
35732         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35733         key in the buffer.
35734
35735 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35736
35737         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35738         IFUNC selector for static builds.
35739
35740 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35741
35742         * sysdeps/mips/math_private.h [__mips_hard_float]
35743         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35744         libc_feresetround_mips_ctx.
35745         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35746         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35747         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35748
35749         [BZ #16677]
35750         * math/s_nextafter.c (__nextafter): Do not return value from
35751         overflowing computation.
35752         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35753         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35754         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35755         Likewise.
35756         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35757         Likewise.
35758         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35759         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35760
35761 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35762
35763         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35764         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35765         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35766         the new mov targetting sp.
35767
35768 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35769
35770         [BZ #16683]
35771         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35772         Define it for static builds as well.
35773         (NO_BZERO_IMPL): Likewise.
35774
35775 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35776
35777         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35778         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35779         multiarch strspn for PPC64.
35780         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35781         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35782         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35783         (__libc_ifunc_impl_list): Likewise.
35784         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35785         multiarch optimizations
35786         * string/strspn.c (strspn): Using macro to redefine symbol name.
35787
35788 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35789             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35790
35791         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35792         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35793         multiarch strncat for PPC64.
35794         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35795         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35796         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35797         (__libc_ifunc_impl_list): Likewise.
35798         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35799         multiarch optimizations
35800
35801 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35802
35803         [BZ #16639]
35804         * nscd/nscd.service: Make service type forking.
35805
35806 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35807
35808         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35809         sign in non default rounding modes.
35810         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35811
35812 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35813
35814         * math/libm-test.inc (ALL_RM_TEST): New macro.
35815         (ceil_test): Use ALL_RM_TEST.
35816         (cimag_test): Likewise.
35817         (conj_test): Likewise.
35818         (copysign_test): Likewise.
35819         (cproj_test): Likewise.
35820         (creal_test): Likewise.
35821         (fabs_test): Likewise.
35822         (floor_test): Likewise.
35823         (fmax_test): Likewise.
35824         (fmin_test): Likewise.
35825         (fmod_test): Likewise.
35826         (fpclassify_test): Likewise.
35827         (frexp_test): Likewise.
35828         (ilogb_test): Likewise.
35829         (isfinite_test): Likewise.
35830         (finite_test): Likewise.
35831         (isgreater_test): Likewise.
35832         (isgreaterequal_test): Likewise.
35833         (isinf_test): Likewise.
35834         (isless_test): Likewise.
35835         (islessequal_test): Likewise.
35836         (islessgreater_test): Likewise.
35837         (isnan_test): Likewise.
35838         (isnormal_test): Likewise.
35839         (issignaling_test): Likewise.
35840         (isunordered_test): Likewise.
35841         (logb_test): Likewise.
35842         (logb_downward_test_data): Remove.
35843         (logb_test_downward): Likewise.
35844         (lround_test): Use ALL_RM_TEST.
35845         (llround_test): Likewise.
35846         (modf_test): Likewise.
35847         (nexttoward_test): Likewise.
35848         (remainder_test): Likewise.
35849         (drem_test): Likewise.
35850         (remainder_tonearest_test_data): Likewise.
35851         (remainder_test_tonearest): Likewise.
35852         (drem_test_tonearest): Likewise.
35853         (remainder_towardzero_test_data): Likewise.
35854         (remainder_test_towardzero): Likewise.
35855         (drem_test_towardzero): Likewise.
35856         (remainder_downward_test_data): Likewise.
35857         (remainder_test_downward): Likewise.
35858         (drem_test_downward): Likewise.
35859         (remainder_upward_test_data): Likewise.
35860         (remainder_test_upward): Likewise.
35861         (drem_test_upward): Likewise.
35862         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35863         (round_test): Use ALL_RM_TEST.
35864         (signbit_test): Likewise.
35865         (trunc_test): Likewise.
35866         (significand_test): Likewise.
35867         (main): Don't call removed functions.
35868
35869 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35870
35871         [BZ #16674]
35872         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35873         || __USE_XOPEN2K8].
35874         (ILL_ILLOPN): Likewise.
35875         (ILL_ILLADR): Likewise.
35876         (ILL_ILLTRP): Likewise.
35877         (ILL_PRVOPC): Likewise.
35878         (ILL_PRVREG): Likewise.
35879         (ILL_COPROC): Likewise.
35880         (ILL_BADSTK): Likewise.
35881         (FPE_INTDIV): Likewise.
35882         (FPE_INTOVF): Likewise.
35883         (FPE_FLTDIV): Likewise.
35884         (FPE_FLTOVF): Likewise.
35885         (FPE_FLTUND): Likewise.
35886         (FPE_FLTRES): Likewise.
35887         (FPE_FLTINV): Likewise.
35888         (FPE_FLTSUB): Likewise.
35889         (SEGV_MAPERR): Likewise.
35890         (SEGV_ACCERR): Likewise.
35891         (BUS_ADRALN): Likewise.
35892         (BUS_ADRERR): Likewise.
35893         (BUS_OBJERR): Likewise.
35894         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35895         (TRAP_TRACE): Likewise.
35896         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35897         __USE_XOPEN2K8].
35898         (CLD_KILLED): Likewise.
35899         (CLD_DUMPED): Likewise.
35900         (CLD_TRAPPED): Likewise.
35901         (CLD_STOPPED): Likewise.
35902         (CLD_CONTINUED): Likewise.
35903         (POLL_IN): Likewise.
35904         (POLL_OUT): Likewise.
35905         (POLL_MSG): Likewise.
35906         (POLL_ERR): Likewise.
35907         (POLL_PRI): Likewise.
35908         (POLL_HUP): Likewise.
35909         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35910         Likewise.
35911         (ILL_ILLOPN): Likewise.
35912         (ILL_ILLADR): Likewise.
35913         (ILL_ILLTRP): Likewise.
35914         (ILL_PRVOPC): Likewise.
35915         (ILL_PRVREG): Likewise.
35916         (ILL_COPROC): Likewise.
35917         (ILL_BADSTK): Likewise.
35918         (FPE_INTDIV): Likewise.
35919         (FPE_INTOVF): Likewise.
35920         (FPE_FLTDIV): Likewise.
35921         (FPE_FLTOVF): Likewise.
35922         (FPE_FLTUND): Likewise.
35923         (FPE_FLTRES): Likewise.
35924         (FPE_FLTINV): Likewise.
35925         (FPE_FLTSUB): Likewise.
35926         (SEGV_MAPERR): Likewise.
35927         (SEGV_ACCERR): Likewise.
35928         (BUS_ADRALN): Likewise.
35929         (BUS_ADRERR): Likewise.
35930         (BUS_OBJERR): Likewise.
35931         (BUS_MCEERR_AR): Likewise.
35932         (BUS_MCEERR_AO): Likewise.
35933         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35934         (TRAP_TRACE): Likewise.
35935         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35936         __USE_XOPEN2K8].
35937         (CLD_KILLED): Likewise.
35938         (CLD_DUMPED): Likewise.
35939         (CLD_TRAPPED): Likewise.
35940         (CLD_STOPPED): Likewise.
35941         (CLD_CONTINUED): Likewise.
35942         (POLL_IN): Likewise.
35943         (POLL_OUT): Likewise.
35944         (POLL_MSG): Likewise.
35945         (POLL_ERR): Likewise.
35946         (POLL_PRI): Likewise.
35947         (POLL_HUP): Likewise.
35948         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35949         (ILL_ILLOPN): Likewise.
35950         (ILL_ILLADR): Likewise.
35951         (ILL_ILLTRP): Likewise.
35952         (ILL_PRVOPC): Likewise.
35953         (ILL_PRVREG): Likewise.
35954         (ILL_COPROC): Likewise.
35955         (ILL_BADSTK): Likewise.
35956         (FPE_INTDIV): Likewise.
35957         (FPE_INTOVF): Likewise.
35958         (FPE_FLTDIV): Likewise.
35959         (FPE_FLTOVF): Likewise.
35960         (FPE_FLTUND): Likewise.
35961         (FPE_FLTRES): Likewise.
35962         (FPE_FLTINV): Likewise.
35963         (FPE_FLTSUB): Likewise.
35964         (SEGV_MAPERR): Likewise.
35965         (SEGV_ACCERR): Likewise.
35966         (BUS_ADRALN): Likewise.
35967         (BUS_ADRERR): Likewise.
35968         (BUS_OBJERR): Likewise.
35969         (BUS_MCEERR_AR): Likewise.
35970         (BUS_MCEERR_AO): Likewise.
35971         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35972         (TRAP_TRACE): Likewise.
35973         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35974         __USE_XOPEN2K8].
35975         (CLD_KILLED): Likewise.
35976         (CLD_DUMPED): Likewise.
35977         (CLD_TRAPPED): Likewise.
35978         (CLD_STOPPED): Likewise.
35979         (CLD_CONTINUED): Likewise.
35980         (POLL_IN): Likewise.
35981         (POLL_OUT): Likewise.
35982         (POLL_MSG): Likewise.
35983         (POLL_ERR): Likewise.
35984         (POLL_PRI): Likewise.
35985         (POLL_HUP): Likewise.
35986         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35987         Likewise.
35988         (ILL_ILLOPN): Likewise.
35989         (ILL_ILLADR): Likewise.
35990         (ILL_ILLTRP): Likewise.
35991         (ILL_PRVOPC): Likewise.
35992         (ILL_PRVREG): Likewise.
35993         (ILL_COPROC): Likewise.
35994         (ILL_BADSTK): Likewise.
35995         (ILL_BADIADDR): Likewise.
35996         (ILL_BREAK): Likewise.
35997         (FPE_INTDIV): Likewise.
35998         (FPE_INTOVF): Likewise.
35999         (FPE_FLTDIV): Likewise.
36000         (FPE_FLTOVF): Likewise.
36001         (FPE_FLTUND): Likewise.
36002         (FPE_FLTRES): Likewise.
36003         (FPE_FLTINV): Likewise.
36004         (FPE_FLTSUB): Likewise.
36005         (FPE_DECOVF): Likewise.
36006         (FPE_DECDIV): Likewise.
36007         (FPE_DECERR): Likewise.
36008         (FPE_INVASC): Likewise.
36009         (FPE_INVDEC): Likewise.
36010         (SEGV_MAPERR): Likewise.
36011         (SEGV_ACCERR): Likewise.
36012         (SEGV_PSTKOVF): Likewise.
36013         (BUS_ADRALN): Likewise.
36014         (BUS_ADRERR): Likewise.
36015         (BUS_OBJERR): Likewise.
36016         (BUS_MCEERR_AR): Likewise.
36017         (BUS_MCEERR_AO): Likewise.
36018         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36019         (TRAP_TRACE): Likewise.
36020         (TRAP_BRANCH): Likewise.
36021         (TRAP_HWBKPT): Likewise.
36022         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36023         __USE_XOPEN2K8].
36024         (CLD_KILLED): Likewise.
36025         (CLD_DUMPED): Likewise.
36026         (CLD_TRAPPED): Likewise.
36027         (CLD_STOPPED): Likewise.
36028         (CLD_CONTINUED): Likewise.
36029         (POLL_IN): Likewise.
36030         (POLL_OUT): Likewise.
36031         (POLL_MSG): Likewise.
36032         (POLL_ERR): Likewise.
36033         (POLL_PRI): Likewise.
36034         (POLL_HUP): Likewise.
36035         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
36036         (ILL_ILLOPN): Likewise.
36037         (ILL_ILLADR): Likewise.
36038         (ILL_ILLTRP): Likewise.
36039         (ILL_PRVOPC): Likewise.
36040         (ILL_PRVREG): Likewise.
36041         (ILL_COPROC): Likewise.
36042         (ILL_BADSTK): Likewise.
36043         (FPE_INTDIV): Likewise.
36044         (FPE_INTOVF): Likewise.
36045         (FPE_FLTDIV): Likewise.
36046         (FPE_FLTOVF): Likewise.
36047         (FPE_FLTUND): Likewise.
36048         (FPE_FLTRES): Likewise.
36049         (FPE_FLTINV): Likewise.
36050         (FPE_FLTSUB): Likewise.
36051         (SEGV_MAPERR): Likewise.
36052         (SEGV_ACCERR): Likewise.
36053         (BUS_ADRALN): Likewise.
36054         (BUS_ADRERR): Likewise.
36055         (BUS_OBJERR): Likewise.
36056         (BUS_MCEERR_AR): Likewise.
36057         (BUS_MCEERR_AO): Likewise.
36058         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36059         (TRAP_TRACE): Likewise.
36060         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36061         __USE_XOPEN2K8].
36062         (CLD_KILLED): Likewise.
36063         (CLD_DUMPED): Likewise.
36064         (CLD_TRAPPED): Likewise.
36065         (CLD_STOPPED): Likewise.
36066         (CLD_CONTINUED): Likewise.
36067         (POLL_IN): Likewise.
36068         (POLL_OUT): Likewise.
36069         (POLL_MSG): Likewise.
36070         (POLL_ERR): Likewise.
36071         (POLL_PRI): Likewise.
36072         (POLL_HUP): Likewise.
36073         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
36074         (ILL_ILLOPN): Likewise.
36075         (ILL_ILLADR): Likewise.
36076         (ILL_ILLTRP): Likewise.
36077         (ILL_PRVOPC): Likewise.
36078         (ILL_PRVREG): Likewise.
36079         (ILL_COPROC): Likewise.
36080         (ILL_BADSTK): Likewise.
36081         (FPE_INTDIV): Likewise.
36082         (FPE_INTOVF): Likewise.
36083         (FPE_FLTDIV): Likewise.
36084         (FPE_FLTOVF): Likewise.
36085         (FPE_FLTUND): Likewise.
36086         (FPE_FLTRES): Likewise.
36087         (FPE_FLTINV): Likewise.
36088         (FPE_FLTSUB): Likewise.
36089         (SEGV_MAPERR): Likewise.
36090         (SEGV_ACCERR): Likewise.
36091         (BUS_ADRALN): Likewise.
36092         (BUS_ADRERR): Likewise.
36093         (BUS_OBJERR): Likewise.
36094         (BUS_MCEERR_AR): Likewise.
36095         (BUS_MCEERR_AO): Likewise.
36096         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36097         (TRAP_TRACE): Likewise.
36098         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36099         __USE_XOPEN2K8].
36100         (CLD_KILLED): Likewise.
36101         (CLD_DUMPED): Likewise.
36102         (CLD_TRAPPED): Likewise.
36103         (CLD_STOPPED): Likewise.
36104         (CLD_CONTINUED): Likewise.
36105         (POLL_IN): Likewise.
36106         (POLL_OUT): Likewise.
36107         (POLL_MSG): Likewise.
36108         (POLL_ERR): Likewise.
36109         (POLL_PRI): Likewise.
36110         (POLL_HUP): Likewise.
36111         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
36112         (ILL_ILLOPN): Likewise.
36113         (ILL_ILLADR): Likewise.
36114         (ILL_ILLTRP): Likewise.
36115         (ILL_PRVOPC): Likewise.
36116         (ILL_PRVREG): Likewise.
36117         (ILL_COPROC): Likewise.
36118         (ILL_BADSTK): Likewise.
36119         (FPE_INTDIV): Likewise.
36120         (FPE_INTOVF): Likewise.
36121         (FPE_FLTDIV): Likewise.
36122         (FPE_FLTOVF): Likewise.
36123         (FPE_FLTUND): Likewise.
36124         (FPE_FLTRES): Likewise.
36125         (FPE_FLTINV): Likewise.
36126         (FPE_FLTSUB): Likewise.
36127         (SEGV_MAPERR): Likewise.
36128         (SEGV_ACCERR): Likewise.
36129         (BUS_ADRALN): Likewise.
36130         (BUS_ADRERR): Likewise.
36131         (BUS_OBJERR): Likewise.
36132         (BUS_MCEERR_AR): Likewise.
36133         (BUS_MCEERR_AO): Likewise.
36134         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36135         (TRAP_TRACE): Likewise.
36136         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36137         __USE_XOPEN2K8].
36138         (CLD_KILLED): Likewise.
36139         (CLD_DUMPED): Likewise.
36140         (CLD_TRAPPED): Likewise.
36141         (CLD_STOPPED): Likewise.
36142         (CLD_CONTINUED): Likewise.
36143         (POLL_IN): Likewise.
36144         (POLL_OUT): Likewise.
36145         (POLL_MSG): Likewise.
36146         (POLL_ERR): Likewise.
36147         (POLL_PRI): Likewise.
36148         (POLL_HUP): Likewise.
36149         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
36150         (ILL_ILLOPN): Likewise.
36151         (ILL_ILLADR): Likewise.
36152         (ILL_ILLTRP): Likewise.
36153         (ILL_PRVOPC): Likewise.
36154         (ILL_PRVREG): Likewise.
36155         (ILL_COPROC): Likewise.
36156         (ILL_BADSTK): Likewise.
36157         (ILL_DBLFLT): Likewise.
36158         (ILL_HARDWALL): Likewise.
36159         (FPE_INTDIV): Likewise.
36160         (FPE_INTOVF): Likewise.
36161         (FPE_FLTDIV): Likewise.
36162         (FPE_FLTOVF): Likewise.
36163         (FPE_FLTUND): Likewise.
36164         (FPE_FLTRES): Likewise.
36165         (FPE_FLTINV): Likewise.
36166         (FPE_FLTSUB): Likewise.
36167         (SEGV_MAPERR): Likewise.
36168         (SEGV_ACCERR): Likewise.
36169         (BUS_ADRALN): Likewise.
36170         (BUS_ADRERR): Likewise.
36171         (BUS_OBJERR): Likewise.
36172         (BUS_MCEERR_AR): Likewise.
36173         (BUS_MCEERR_AO): Likewise.
36174         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36175         (TRAP_TRACE): Likewise.
36176         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36177         __USE_XOPEN2K8].
36178         (CLD_KILLED): Likewise.
36179         (CLD_DUMPED): Likewise.
36180         (CLD_TRAPPED): Likewise.
36181         (CLD_STOPPED): Likewise.
36182         (CLD_CONTINUED): Likewise.
36183         (POLL_IN): Likewise.
36184         (POLL_OUT): Likewise.
36185         (POLL_MSG): Likewise.
36186         (POLL_ERR): Likewise.
36187         (POLL_PRI): Likewise.
36188         (POLL_HUP): Likewise.
36189         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
36190         (ILL_ILLOPN): Likewise.
36191         (ILL_ILLADR): Likewise.
36192         (ILL_ILLTRP): Likewise.
36193         (ILL_PRVOPC): Likewise.
36194         (ILL_PRVREG): Likewise.
36195         (ILL_COPROC): Likewise.
36196         (ILL_BADSTK): Likewise.
36197         (FPE_INTDIV): Likewise.
36198         (FPE_INTOVF): Likewise.
36199         (FPE_FLTDIV): Likewise.
36200         (FPE_FLTOVF): Likewise.
36201         (FPE_FLTUND): Likewise.
36202         (FPE_FLTRES): Likewise.
36203         (FPE_FLTINV): Likewise.
36204         (FPE_FLTSUB): Likewise.
36205         (SEGV_MAPERR): Likewise.
36206         (SEGV_ACCERR): Likewise.
36207         (BUS_ADRALN): Likewise.
36208         (BUS_ADRERR): Likewise.
36209         (BUS_OBJERR): Likewise.
36210         (BUS_MCEERR_AR): Likewise.
36211         (BUS_MCEERR_AO): Likewise.
36212         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36213         (TRAP_TRACE): Likewise.
36214         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36215         __USE_XOPEN2K8].
36216         (CLD_KILLED): Likewise.
36217         (CLD_DUMPED): Likewise.
36218         (CLD_TRAPPED): Likewise.
36219         (CLD_STOPPED): Likewise.
36220         (CLD_CONTINUED): Likewise.
36221         (POLL_IN): Likewise.
36222         (POLL_OUT): Likewise.
36223         (POLL_MSG): Likewise.
36224         (POLL_ERR): Likewise.
36225         (POLL_PRI): Likewise.
36226         (POLL_HUP): Likewise.
36227         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
36228         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36229
36230         [BZ #16670]
36231         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
36232         before #include of <time.h>.
36233         [!__USE_XOPEN2K] (__need_timespec): Likewise.
36234         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
36235         (test-xfail-UNIX98/sched.h/conform): Likewise.
36236
36237 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36238
36239         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
36240         error absence of trapping exception support.
36241         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
36242
36243 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36244
36245         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
36246         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
36247         * timezone/Makefile (testdata): Move definition above include of
36248         Rules.
36249         (test-zones): New variable.
36250         (tests-special): Add zone files.
36251         (build-testdata): Use $(evaluate-test).
36252
36253         * elf/Makefile (tests-special): Rename tests to end with .out.
36254         ($(objpfx)noload-mem): Likewise.
36255         ($(objpfx)tst-leaks1-mem): Likewise.
36256         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
36257         * iconv/Makefile (xtests-special): Change test-iconvconfig to
36258         $(objpfx)test-iconvconfig.out.
36259         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
36260         set -e inside subshell and redirect output to file.
36261         * iconvdata/Makefile (generated): Rename tests to end with .out.
36262         Correct type.
36263         (tests-special): Rename tests to end with .out.
36264         ($(objpfx)mtrace-tst-loading): Likewise.
36265         * intl/Makefile (generated): Likewise.
36266         (tests-special): Likewise.
36267         ($(objpfx)mtrace-tst-gettext): Likewise.
36268         * misc/Makefile (generated): Likewise.
36269         (tests-special): Likewise.
36270         ($(objpfx)tst-error1-mem): Likewise.
36271         * nptl/Makefile (tests-special): Likewise.
36272         ($(objpfx)tst-stack3-mem): Likewise.
36273         (generated): Likewise.
36274         * posix/Makefile (generated): Likewise.
36275         (tests-special): Likewise.
36276         (xtests-special): Likewise.
36277         ($(objpfx)tst-fnmatch-mem): Likewise.
36278         ($(objpfx)bug-regex2-mem): Likewise.
36279         ($(objpfx)bug-regex14-mem): Likewise.
36280         ($(objpfx)bug-regex21-mem): Likewise.
36281         ($(objpfx)bug-regex31-mem): Likewise.
36282         ($(objpfx)tst-vfork3-mem): Likewise.
36283         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36284         ($(objpfx)tst-pcre-mem): Likewise.
36285         ($(objpfx)tst-boost-mem): Likewise.
36286         ($(objpfx)bug-ga2-mem): Likewise.
36287         ($(objpfx)bug-glob2-mem): Likewise.
36288         * resolv/Makefile (generate): Likewise.
36289         (tests-special): Likewise.
36290         (xtests-special): Likewise.
36291         (generated): Likewise.
36292         ($(objpfx)mtrace-tst-leaks): Likewise.
36293         ($(objpfx)mtrace-tst-leaks2): Likewise.
36294
36295         * scripts/merge-test-results.sh: New file.
36296         * Makefile (tests-special-notdir): New variable.
36297         (tests): Run merge-test-results.sh.
36298         (xtests): Likewise.
36299         * Rules (tests-special-notdir): New variable.
36300         (xtests-special-notdir): Likewise.
36301         (tests): Run merge-test-results.sh
36302         (xtests): Likewise.
36303
36304         * Makeconfig (test-xfail-name): New variable.
36305         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
36306         compute variable name for expected failures.
36307         * conform/Makefile (conformtest-headers-data): New variable.
36308         (conformtest-standards): Likewise.
36309         (conformtest-headers-ISO): Likewise.
36310         (conformtest-headers-ISO99): Likewise.
36311         (conformtest-headers-ISO11): Likewise.
36312         (conformtest-headers-POSIX): Likewise.
36313         (conformtest-headers-XPG3): Likewise.
36314         (conformtest-headers-XPG4): Likewise.
36315         (conformtest-headers-UNIX98): Likewise.
36316         (conformtest-headers-XOPEN2K): Likewise.
36317         (conformtest-headers-POSIX2008): Likewise.
36318         (conformtest-headers-XOPEN2K8): Likewise.
36319         (conformtest-header-list-base): Likewise.
36320         (conformtest-header-list-tests): Likewise.
36321         (conformtest-header-base): Likewise.
36322         (conformtest-header-tests): Likewise.
36323         (tests-special): Add $(conformtest-header-list-tests).  If
36324         [$(fast-check) && !$(cross-compiling)], add
36325         $(conformtest-header-tests) instead of
36326         $(objpfx)run-conformtest.out.
36327         (generated): Add $(conformtest-header-list-base).  If
36328         [$(fast-check) && !$(cross-compiling)], add
36329         $(conformtest-header-base).  Remove previous setting.
36330         ($(conformtest-header-list-tests)): New target.
36331         (test-xfail-run-conformtest): Remove variable.
36332         ($(objpfx)run-conformtest.out): Remove target.
36333         (test-xfail-ISO11/complex.h/conform): New variable.
36334         (test-xfail-ISO11/stdalign.h/conform): Likewise.
36335         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
36336         (test-xfail-XPG3/varargs.h/conform): Likewise.
36337         (test-xfail-XPG4/varargs.h/conform): Likewise.
36338         (test-xfail-UNIX98/varargs.h/conform): Likewise.
36339         (test-xfail-XPG4/ndbm.h/conform): Likewise.
36340         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
36341         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
36342         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
36343         (test-xfail-XPG3/fcntl.h/conform): Likewise.
36344         (test-xfail-XPG3/ftw.h/conform): Likewise.
36345         (test-xfail-XPG3/grp.h/conform): Likewise.
36346         (test-xfail-XPG3/langinfo.h/conform): Likewise.
36347         (test-xfail-XPG3/limits.h/conform): Likewise.
36348         (test-xfail-XPG3/pwd.h/conform): Likewise.
36349         (test-xfail-XPG3/search.h/conform): Likewise.
36350         (test-xfail-XPG3/signal.h/conform): Likewise.
36351         (test-xfail-XPG3/stdio.h/conform): Likewise.
36352         (test-xfail-XPG3/stdlib.h/conform): Likewise.
36353         (test-xfail-XPG3/string.h/conform): Likewise.
36354         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
36355         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
36356         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
36357         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
36358         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
36359         (test-xfail-XPG3/sys/types.h/conform): Likewise.
36360         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
36361         (test-xfail-XPG3/termios.h/conform): Likewise.
36362         (test-xfail-XPG3/time.h/conform): Likewise.
36363         (test-xfail-XPG3/unistd.h/conform): Likewise.
36364         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36365         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36366         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36367         (test-xfail-XPG4/netdb.h/conform): Likewise.
36368         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36369         (test-xfail-XPG4/signal.h/conform): Likewise.
36370         (test-xfail-XPG4/stdio.h/conform): Likewise.
36371         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36372         (test-xfail-XPG4/stropts.h/conform): Likewise.
36373         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36374         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36375         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36376         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36377         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36378         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36379         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36380         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36381         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36382         (test-xfail-XPG4/termios.h/conform): Likewise.
36383         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36384         (test-xfail-XPG4/unistd.h/conform): Likewise.
36385         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36386         (test-xfail-POSIX/sched.h/conform): Likewise.
36387         (test-xfail-POSIX/signal.h/conform): Likewise.
36388         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36389         (test-xfail-POSIX/tar.h/conform): Likewise.
36390         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36391         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36392         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36393         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36394         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36395         (test-xfail-UNIX98/sched.h/conform): Likewise.
36396         (test-xfail-UNIX98/signal.h/conform): Likewise.
36397         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36398         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36399         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36400         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36401         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36402         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36403         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36404         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36405         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36406         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36407         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36408         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36409         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36410         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36411         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36412         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36413         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36414         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36415         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36416         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36417         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36418         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36419         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36420         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36421         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36422         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36423         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36424         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36425         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36426         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36427         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36428         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36429         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36430         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36431         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36432         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36433         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36434         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36435         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36436         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36437         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36438         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36439         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36440         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36441         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36442         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36443         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36444         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36445         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36446         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36447         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36448         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36449         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36450         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36451         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36452         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36453         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36454         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36455         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36456         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36457         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36458         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36459         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36460         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36461         (conformtest-cc-flags): Likewise.
36462         ($(conformtest-header-tests): New target.
36463         * conform/check-header-lists.sh: New file.
36464         * conform/run-conformtest.sh: Remove.
36465
36466         * conform/conformtest.pl: Allow ' and \ in values given for
36467         constants.
36468         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36469         inclusion.
36470         [POSIX] (sys/types.h): Likewise.
36471         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36472         inclusion.
36473         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36474         inclusion.
36475         * conform/data/signal.h-data (SIGIO): Remove expectation.
36476         [XPG3] (SIGBUS): Do not expect.
36477         [POSIX || XPG3] (SIGPOLL): Likewise.
36478         [POSIX || XPG3] (SIGPROF): Likewise.
36479         [POSIX || XPG3] (SIGSYS): Likewise.
36480         [XPG3] (SIGTRAP): Likewise.
36481         [POSIX || XPG3] (SIGURG): Likewise.
36482         [POSIX || XPG3] (SIGVTALRM): Likewise.
36483         [POSIX || XPG3] (SIGXCPU): Likewise.
36484         [POSIX || XPG3] (SIGXFSZ): Likewise.
36485         [POSIX] (SA_SIGINFO): Expect.
36486         [XPG3] (siginfo_t): Do not expect type or contents.
36487         [POSIX] (si_pid): Do not expect element.
36488         [POSIX] (si_uid): Likewise.
36489         [POSIX] (si_addr): Likewise.
36490         [POSIX] (si_status): Likewise.
36491         [POSIX] (si_band): Likewise.
36492         [XPG4] (si_value): Likewise.
36493         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36494         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36495         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36496         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36497         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36498         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36499         [POSIX || XPG3] (ILL_COPROC): Likewise.
36500         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36501         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36502         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36503         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36504         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36505         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36506         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36507         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36508         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36509         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36510         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36511         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36512         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36513         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36514         [POSIX || XPG3] (CLD_EXITED): Likewise.
36515         [POSIX || XPG3] (CLD_KILLED): Likewise.
36516         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36517         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36518         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36519         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36520         [POSIX || XPG3] (POLL_IN): Likewise.
36521         [POSIX || XPG3] (POLL_OUT): Likewise.
36522         [POSIX || XPG3] (POLL_MSG): Likewise.
36523         [POSIX || XPG3] (POLL_ERR): Likewise.
36524         [POSIX || XPG3] (POLL_PRI): Likewise.
36525         [POSIX || XPG3] (POLL_HUP): Likewise.
36526         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36527         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36528         (SIG*): Do not allow.
36529         [XPG3] (si_*): Likewise.
36530         [XPG3] (SI_*): Likewise.
36531         [XPG3 || XPG4] (sigev_*): Likewise.
36532         [XPG3 || XPG4] (SIGEV_*): Likewise.
36533         [XPG3 || XPG4] (sival_*): Likewise.
36534         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36535         [POSIX || XPG3] (BUS_*): Likewise.
36536         [POSIX || XPG3] (CLD_*): Likewise.
36537         [POSIX || XPG3] (FPE_*): Likewise.
36538         [POSIX || XPG3] (ILL_*): Likewise.
36539         [POSIX || XPG3] (POLL_*): Likewise.
36540         [POSIX || XPG3] (SEGV_*): Likewise.
36541         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36542         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36543         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36544         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36545         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36546         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36547         Specify type and value.
36548         (TVERSLEN): Likewise.
36549         (REGTYPE): Likewise.
36550         (AREGTYPE): Likewise.
36551         (LNKTYPE): Likewise.
36552         (SYMTYPE): Likewise.
36553         (CHRTYPE): Likewise.
36554         (BLKTYPE): Likewise.
36555         (DIRTYPE): Likewise.
36556         (FIFOTYPE): Likewise.
36557         (CONTTYPE): Likewise.
36558         (TSUID): Likewise.
36559         (TSGID): Likewise.
36560         (TSVTX): Likewise.
36561         (TUREAD): Likewise.
36562         (TUWRITE): Likewise.
36563         (TUEXEC): Likewise.
36564         (TGREAD): Likewise.
36565         (TGWRITE): Likewise.
36566         (TGEXEC): Likewise.
36567         (TOREAD): Likewise.
36568         (TOWRITE): Likewise.
36569         (TOEXEC): Likewise.
36570         [POSIX] (TSVTX): Expect constant.
36571
36572 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36573
36574         * Makefile (tests): Change dependencies to ....
36575         (tests-special): ... additions to this variable.
36576         (tests): Depend on $(tests-special).
36577         * Makerules (check-abi-list): New variable.
36578         (check-abi): Depend on $(check-abi-list).
36579         [$(subdir) = elf] (tests-special): Add
36580         $(objpfx)check-abi-libc.out.
36581         [$(build-shared) = yes && subdir] (tests-special): Add
36582         $(check-abi-list).
36583         [$(build-shared) = yes && subdir] (tests): Do not depend on
36584         check-abi.
36585         * Rules (tests): Depend on $(tests-special).
36586         (xtests): Depend on $(xtests-special).
36587         * catgets/Makefile (tests): Change dependencies to ....
36588         (tests-special): ... additions to this variable.
36589         * conform/Makefile (tests): Change dependencies to ....
36590         (tests-special): ... additions to this variable.
36591         * elf/Makefile (tests): Change dependencies to ....
36592         (tests-special): ... additions to this variable.
36593         * grp/Makefile (tests): Change dependencies to ....
36594         (tests-special): ... additions to this variable.
36595         * iconv/Makefile (xtests): Change dependencies to ....
36596         (xtests-special): ... additions to this variable.
36597         * iconvdata/Makefile (tests): Change dependencies to ....
36598         (tests-special): ... additions to this variable.
36599         * intl/Makefile (tests): Change dependencies to ....
36600         (tests-special): ... additions to this variable.  Also add
36601         $(objpfx)tst-gettext.out.
36602         * io/Makefile (tests): Change dependencies to ....
36603         (tests-special): ... additions to this variable.
36604         * libio/Makefile (tests): Change dependencies to ....
36605         (tests-special): ... additions to this variable.
36606         * malloc/Makefile (tests): Change dependencies to ....
36607         (tests-special): ... additions to this variable.
36608         * misc/Makefile (tests): Change dependencies to ....
36609         (tests-special): ... additions to this variable.
36610         * nptl/Makefile (tests): Change dependencies to ....
36611         (tests-special): ... additions to this variable.
36612         * nptl_db/Makefile (tests): Change dependencies to ....
36613         (tests-special): ... additions to this variable.
36614         * posix/Makefile (tests): Change dependencies to ....
36615         (tests-special): ... additions to this variable.
36616         (xtests): Change dependencies to ....
36617         (xtests-special): ... additions to this variable.
36618         * resolv/Makefile (tests): Change dependencies to ....
36619         (tests-special): ... additions to this variable.
36620         (xtests): Change dependencies to ....
36621         (xtests-special): ... additions to this variable.
36622         * stdio-common/Makefile (tests): Change dependencies to ....
36623         (tests-special): ... additions to this variable.
36624         (do-tst-unbputc): Remove target.
36625         (do-tst-printf): Likewise.
36626         * stdlib/Makefile (tests): Change dependencies to ....
36627         (tests-special): ... additions to this variable.
36628         * string/Makefile (tests): Change dependencies to ....
36629         (tests-special): ... additions to this variable.
36630         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36631         (tests-special): ... additions to this variable.
36632
36633         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36634         whole file.
36635         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36636         whole file.
36637         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36638         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36639
36640         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36641         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36642         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36643         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36644         * conform/data/libgen.h-data [XPG3]: Likewise.
36645         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36646         * conform/data/ndbm.h-data [XPG3]: Likewise.
36647         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36648         * conform/data/netdb.h-data [XPG3]: Likewise.
36649         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36650         * conform/data/poll.h-data [XPG3]: Likewise.
36651         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36652         * conform/data/strings.h-data [XPG3]: Likewise.
36653         * conform/data/stropts.h-data [XPG3]: Likewise.
36654         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36655         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36656         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36657         Likewise.
36658         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36659         * conform/data/sys/time.h-data [XPG3]: Likewise.
36660         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36661         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36662         * conform/data/sys/un.h-data [XPG3]: Likewise.
36663         * conform/data/syslog.h-data [XPG3]: Likewise.
36664         * conform/data/ucontext.h-data [XPG3]: Likewise.
36665         * conform/data/utmpx.h-data [XPG3]: Likewise.
36666         * conform/data/varargs.h-data [UNIX98]: Enable file.
36667
36668         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36669
36670         * math/libm-test.inc (struct test_f_f_data): Move expected results
36671         into structure for each rounding mode.
36672         (struct test_ff_f_data): Likewise.
36673         (struct test_ff_f_data_nexttoward): Likewise.
36674         (struct test_fi_f_data): Likewise.
36675         (struct test_fl_f_data): Likewise.
36676         (struct test_if_f_data): Likewise.
36677         (struct test_fff_f_data): Likewise.
36678         (struct test_c_f_data): Likewise.
36679         (struct test_f_f1_data): Likewise.
36680         (struct test_fF_f1_data): Likewise.
36681         (struct test_ffI_f1_data): Likewise.
36682         (struct test_c_c_data): Likewise.
36683         (struct test_cc_c_data): Likewise.
36684         (struct test_f_i_data): Likewise.
36685         (struct test_ff_i_data): Likewise.
36686         (struct test_f_l_data): Likewise.
36687         (struct test_f_L_data): Likewise.
36688         (struct test_fFF_11_data): Likewise.
36689         (RM_): New macro.
36690         (RM_FE_DOWNWARD): Likewise.
36691         (RM_FE_TONEAREST): Likewise.
36692         (RM_FE_TOWARDZERO): Likewise.
36693         (RM_FE_UPWARD): Likewise.
36694         (RUN_TEST_LOOP_f_f): Update references to expected results.
36695         (RUN_TEST_LOOP_2_f): Likewise.
36696         (RUN_TEST_LOOP_fff_f): Likewise.
36697         (RUN_TEST_LOOP_c_f): Likewise.
36698         (RUN_TEST_LOOP_f_f1): Likewise.
36699         (RUN_TEST_LOOP_fF_f1): Likewise.
36700         (RUN_TEST_LOOP_fI_f1): Likewise.
36701         (RUN_TEST_LOOP_ffI_f1): Likewise.
36702         (RUN_TEST_LOOP_c_c): Likewise.
36703         (RUN_TEST_LOOP_cc_c): Likewise.
36704         (RUN_TEST_LOOP_f_i): Likewise.
36705         (RUN_TEST_LOOP_f_i_tg): Likewise.
36706         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36707         (RUN_TEST_LOOP_f_b): Likewise.
36708         (RUN_TEST_LOOP_f_b_tg): Likewise.
36709         (RUN_TEST_LOOP_f_l): Likewise.
36710         (RUN_TEST_LOOP_f_L): Likewise.
36711         (RUN_TEST_LOOP_fFF_11): Likewise.
36712         * math/gen-libm-test.pl (parse_args): Output four copies of
36713         expected results for each test.
36714
36715         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36716         (__ASSUME_UTIMES): Remove.
36717         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36718         (__ASSUME_UTIMES): Likewise.
36719
36720         * math/gen-auto-libm-tests.c: Update comment on output format.
36721         (output_for_one_input_case): Generate before-rounding and
36722         after-rounding information as conditions on output flags not
36723         floating-point format.
36724         * math/auto-libm-test-out: Regenerated.
36725         * math/gen-libm-test.pl (cond_value): New function.
36726         (or_cond_value): Use cond_value.
36727         (generate_testfile): Handle conditional exceptions.
36728
36729 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36730
36731         * math/libm-test.inc (max_valid_error): New variable.
36732         (init_max_error): Take new argument specifying whether function
36733         results are exactly determined.  Set max_valid_error and bound
36734         other variables for errors based on this argument.
36735         (set_max_error): Do not record results above max_valid_error.
36736         (check_float_internal): Only accept errors of up to 0.5ulps if
36737         also at most max_valid_error.
36738         (START): Take new argument EXACT and pass it to init_max_error.
36739         (acos_test): Update call to START.
36740         (acos_test_tonearest): Likewise.
36741         (acos_test_towardzero): Likewise.
36742         (acos_test_downward): Likewise.
36743         (acos_test_upward): Likewise.
36744         (acosh_test): Likewise.
36745         (asin_test): Likewise.
36746         (asin_test_tonearest): Likewise.
36747         (asin_test_towardzero): Likewise.
36748         (asin_test_downward): Likewise.
36749         (asin_test_upward): Likewise.
36750         (asinh_test): Likewise.
36751         (atan_test): Likewise.
36752         (atanh_test): Likewise.
36753         (atan2_test): Likewise.
36754         (cabs_test): Likewise.
36755         (cacos_test): Likewise.
36756         (cacosh_test): Likewise.
36757         (carg_test): Likewise.
36758         (casin_test): Likewise.
36759         (casinh_test): Likewise.
36760         (catan_test): Likewise.
36761         (catanh_test): Likewise.
36762         (cbrt_test): Likewise.
36763         (ccos_test): Likewise.
36764         (ccosh_test): Likewise.
36765         (ceil_test): Likewise.
36766         (cexp_test): Likewise.
36767         (cimag_test): Likewise.
36768         (clog_test): Likewise.
36769         (clog10_test): Likewise.
36770         (conj_test): Likewise.
36771         (copysign_test): Likewise.
36772         (cos_test): Likewise.
36773         (cos_test_tonearest): Likewise.
36774         (cos_test_towardzero): Likewise.
36775         (cos_test_downward): Likewise.
36776         (cos_test_upward): Likewise.
36777         (cosh_test): Likewise.
36778         (cosh_test_tonearest): Likewise.
36779         (cosh_test_towardzero): Likewise.
36780         (cosh_test_downward): Likewise.
36781         (cosh_test_upward): Likewise.
36782         (cpow_test): Likewise.
36783         (cproj_test): Likewise.
36784         (creal_test): Likewise.
36785         (csin_test): Likewise.
36786         (csinh_test): Likewise.
36787         (csqrt_test): Likewise.
36788         (ctan_test): Likewise.
36789         (ctan_test_tonearest): Likewise.
36790         (ctan_test_towardzero): Likewise.
36791         (ctan_test_downward): Likewise.
36792         (ctan_test_upward): Likewise.
36793         (ctanh_test): Likewise.
36794         (ctanh_test_tonearest): Likewise.
36795         (ctanh_test_towardzero): Likewise.
36796         (ctanh_test_downward): Likewise.
36797         (ctanh_test_upward): Likewise.
36798         (erf_test): Likewise.
36799         (erfc_test): Likewise.
36800         (exp_test): Likewise.
36801         (exp_test_tonearest): Likewise.
36802         (exp_test_towardzero): Likewise.
36803         (exp_test_downward): Likewise.
36804         (exp_test_upward): Likewise.
36805         (exp10_test): Likewise.
36806         (exp10_test_tonearest): Likewise.
36807         (exp10_test_towardzero): Likewise.
36808         (exp10_test_downward): Likewise.
36809         (exp10_test_upward): Likewise.
36810         (pow10_test): Likewise.
36811         (exp2_test): Likewise.
36812         (expm1_test): Likewise.
36813         (expm1_test_tonearest): Likewise.
36814         (expm1_test_towardzero): Likewise.
36815         (expm1_test_downward): Likewise.
36816         (expm1_test_upward): Likewise.
36817         (fabs_test): Likewise.
36818         (fdim_test): Likewise.
36819         (floor_test): Likewise.
36820         (fma_test): Likewise.
36821         (fma_test_towardzero): Likewise.
36822         (fma_test_downward): Likewise.
36823         (fma_test_upward): Likewise.
36824         (fmax_test): Likewise.
36825         (fmin_test): Likewise.
36826         (fmod_test): Likewise.
36827         (fpclassify_test): Likewise.
36828         (frexp_test): Likewise.
36829         (hypot_test): Likewise.
36830         (ilogb_test): Likewise.
36831         (isfinite_test): Likewise.
36832         (finite_test): Likewise.
36833         (isgreater_test): Likewise.
36834         (isgreaterequal_test): Likewise.
36835         (isinf_test): Likewise.
36836         (isless_test): Likewise.
36837         (islessequal_test): Likewise.
36838         (islessgreater_test): Likewise.
36839         (isnan_test): Likewise.
36840         (isnormal_test): Likewise.
36841         (issignaling_test): Likewise.
36842         (isunordered_test): Likewise.
36843         (j0_test): Likewise.
36844         (j1_test): Likewise.
36845         (jn_test): Likewise.
36846         (ldexp_test): Likewise.
36847         (lgamma_test): Likewise.
36848         (gamma_test): Likewise.
36849         (lrint_test): Likewise.
36850         (lrint_test_tonearest): Likewise.
36851         (lrint_test_towardzero): Likewise.
36852         (lrint_test_downward): Likewise.
36853         (lrint_test_upward): Likewise.
36854         (llrint_test): Likewise.
36855         (llrint_test_tonearest): Likewise.
36856         (llrint_test_towardzero): Likewise.
36857         (llrint_test_downward): Likewise.
36858         (llrint_test_upward): Likewise.
36859         (log_test): Likewise.
36860         (log10_test): Likewise.
36861         (log1p_test): Likewise.
36862         (log2_test): Likewise.
36863         (logb_test): Likewise.
36864         (logb_test_downward): Likewise.
36865         (lround_test): Likewise.
36866         (llround_test): Likewise.
36867         (modf_test): Likewise.
36868         (nearbyint_test): Likewise.
36869         (nextafter_test): Likewise.
36870         (nexttoward_test): Likewise.
36871         (pow_test): Likewise.
36872         (pow_test_tonearest): Likewise.
36873         (pow_test_towardzero): Likewise.
36874         (pow_test_downward): Likewise.
36875         (pow_test_upward): Likewise.
36876         (remainder_test): Likewise.
36877         (drem_test): Likewise.
36878         (remainder_test_tonearest): Likewise.
36879         (drem_test_tonearest): Likewise.
36880         (remainder_test_towardzero): Likewise.
36881         (drem_test_towardzero): Likewise.
36882         (remainder_test_downward): Likewise.
36883         (drem_test_downward): Likewise.
36884         (remainder_test_upward): Likewise.
36885         (drem_test_upward): Likewise.
36886         (remquo_test): Likewise.
36887         (rint_test): Likewise.
36888         (rint_test_tonearest): Likewise.
36889         (rint_test_towardzero): Likewise.
36890         (rint_test_downward): Likewise.
36891         (rint_test_upward): Likewise.
36892         (round_test): Likewise.
36893         (scalb_test): Likewise.
36894         (scalbn_test): Likewise.
36895         (scalbln_test): Likewise.
36896         (signbit_test): Likewise.
36897         (sin_test): Likewise.
36898         (sin_test_tonearest): Likewise.
36899         (sin_test_towardzero): Likewise.
36900         (sin_test_downward): Likewise.
36901         (sin_test_upward): Likewise.
36902         (sincos_test): Likewise.
36903         (sinh_test): Likewise.
36904         (sinh_test_tonearest): Likewise.
36905         (sinh_test_towardzero): Likewise.
36906         (sinh_test_downward): Likewise.
36907         (sinh_test_upward): Likewise.
36908         (sqrt_test): Likewise.
36909         (sqrt_test_tonearest): Likewise.
36910         (sqrt_test_towardzero): Likewise.
36911         (sqrt_test_downward): Likewise.
36912         (sqrt_test_upward): Likewise.
36913         (tan_test): Likewise.
36914         (tan_test_tonearest): Likewise.
36915         (tan_test_towardzero): Likewise.
36916         (tan_test_downward): Likewise.
36917         (tan_test_upward): Likewise.
36918         (tanh_test): Likewise.
36919         (tgamma_test): Likewise.
36920         (trunc_test): Likewise.
36921         (y0_test): Likewise.
36922         (y1_test): Likewise.
36923         (yn_test): Likewise.
36924         (significand_test): Likewise.
36925
36926         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36927         individual tests in comment.
36928         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36929         (prev_max_error): New variable.
36930         (prev_real_max_error): Likewise.
36931         (prev_imag_max_error): Likewise.
36932         (compare_ulp_data): Don't refer to test names in comment.
36933         (find_test_ulps): Remove function.
36934         (find_function_ulps): Likewise.
36935         (find_complex_function_ulps): Likewise.
36936         (init_max_error): Take function name as argument.  Look up ulps
36937         for that function.
36938         (print_ulps): Remove function.
36939         (print_max_error): Use prev_max_error instead of calling
36940         find_function_ulps.
36941         (print_complex_max_error): Use prev_real_max_error and
36942         prev_imag_max_error instead of calling find_complex_function_ulps.
36943         (check_float_internal): Take max_ulp parameter instead of calling
36944         find_test_ulps.  Don't call print_ulps.
36945         (check_float): Update call to check_float_internal.
36946         (check_complex): Update calls to check_float_internal.
36947         (START): Pass argument to init_max_error.
36948         * math/gen-libm-test.pl (%results): Don't include "kind"
36949         information.
36950         (parse_ulps): Don't handle ulps of individual tests.
36951         (print_ulps_file): Likewise.
36952         (output_ulps): Likewise.
36953         * math/README.libm-test: Update.
36954         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36955         individual tests.
36956         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36957         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36958         * sysdeps/arm/libm-test-ulps: Likewise.
36959         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36960         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36961         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36962         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36963         * sysdeps/microblaze/libm-test-ulps: Likewise.
36964         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36965         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36966         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36967         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36968         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36969         * sysdeps/sh/libm-test-ulps: Likewise.
36970         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36971         * sysdeps/tile/libm-test-ulps: Likewise.
36972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36973
36974 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36975
36976         * math/libm-test.inc (print_complex_max_error): Check separately
36977         whether real and imaginary errors are within allowed range and
36978         pass 0 to print_complex_function_ulps instead of value within
36979         allowed range.
36980
36981 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36982
36983         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36984         formatting.
36985         (get_handles_fopen): Likewise.
36986         (do_write_test): Likewise.
36987
36988         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36989
36990         * libio/fileops.c (do_ftell): Use cached offset when
36991         available.
36992         * libio/iofwide.c (do_ftell_wide): Likewise.
36993         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36994         _IO_file_attach.
36995         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36996
36997         [BZ #16532]
36998         * libio/libioP.h (get_file_offset): New function.
36999         * libio/fileops.c (get_file_offset): Likewise.
37000         (do_ftell): Likewise.
37001         (_IO_new_file_seekoff): Split out ftell logic.
37002         * libio/wfileops.c (do_ftell_wide): Likewise.
37003         (_IO_wfile_seekoff): Split out ftell logic.
37004         * libio/tst-ftell-active-handler.c: New test case.
37005         * libio/Makefile (tests): Add it.
37006
37007 2014-03-03  Roland McGrath  <roland@hack.frob.com>
37008
37009         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
37010         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
37011
37012 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
37013
37014         [BZ #16639]
37015         * nscd/connections.c (nscd_init): Call do_exit.
37016         (start_threads): Call do_exit and notify_parent.
37017         (begin_drop_privileges): Call do_exit.
37018         (finish_drop_privileges): Likewise.
37019         * nscd/selinux.c (preserve_capabilities): Likewise.
37020         (install_real_capabilities): Likewise.
37021         (nscd_selinux_enabled): Likewise.
37022         (avc_create_thread): Likewise.
37023         (avc_alloc_lock): Likewise.
37024         (nscd_avc_init): Likewise.
37025         * nscd/nscd.c (parent_fd): New static variable.
37026         (main): Create a pipe between parent and child processes.
37027         Skip closing parent_fd.
37028         (monitor_child): New function.
37029         (do_exit): Likewise.
37030         (notify_parent): Likewise.
37031         * nscd/nscd.h (notify_parent): Likewise.
37032         (do_exit): Likewise.
37033
37034 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
37035
37036         * malloc/malloc.c (__libc_calloc): Revert last change.
37037
37038 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37039
37040         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37041
37042 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37043
37044         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
37045         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
37046         implementation.
37047         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37048         (__libc_ifunc_impl_list): Likewise.
37049         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
37050         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
37051         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
37052         * string/strrchr.c: Define STRRCHR.
37053
37054 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
37055
37056         * benchtest/bench-strtok.c (simple_strtok): Delete.
37057         (strtok_string): Use as benchmark.
37058         * string/strtok (STRTOK): New macro.
37059
37060 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
37061
37062         * manual/threads.texi: Add header and standard comments to all
37063         functions.
37064
37065         * elf/dl-lookup.c (check_match): New function.
37066         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
37067         (do_lookup_x): Remove nested function check_match. Use non-nested
37068         function check_match.
37069
37070 2014-02-28  Roland McGrath  <roland@hack.frob.com>
37071
37072         * csu/Makefile (generated, before-compile): Use += rather than =.
37073         * catgets/Makefile (generated, generated-dirs): Likewise.
37074         * debug/Makefile (generated): Likewise.
37075         * dlfcn/Makefile (generated): Likewise.
37076         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
37077         * iconvdata/Makefile (before-compile, generated): Likewise.
37078         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
37079         * libio/Makefile (generated): Likewise.
37080         * malloc/Makefile (generated): Likewise.
37081         * manual/Makefile (generated, generated-dirs): Likewise.
37082         * misc/Makefile (generated): Likewise.
37083         * posix/Makefile (generated): Likewise.
37084         * resolv/Makefile (generated): Likewise.
37085         * sunrpc/Makefile (generated, generated-dirs): Likewise.
37086         * timezone/Makefile (generated, generated-dirs): Likewise.
37087
37088         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
37089
37090 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37091
37092         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
37093         power8 implementation.
37094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
37095         file: POWER8 llround ifunc implementation.
37096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
37097         (__lllround): Add POWER8 implementation.
37098         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
37099         POWER8 llround implementation.
37100
37101         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
37102         power8 implementation.
37103         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
37104         file: POWER8 llrint ifunc implementation.
37105         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
37106         Add POWER8 implementation.
37107         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
37108         POWER8 llrint implementation.
37109
37110         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
37111         power8 implementation.
37112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
37113         file: POWER8 finite ifunc implementation.
37114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
37115         Add POWER8 implementation.
37116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
37117         Likewise.
37118         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
37119         POWER8 finite implementation.
37120         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
37121
37122         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
37123         power8 implementation.
37124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
37125         file: POWER8 isinf ifunc implementation.
37126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
37127         POWER8 implementation.
37128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
37129         Likewise.
37130         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
37131         isinf implementation.
37132         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
37133
37134         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
37135         (INIT_ARCH): Add hwcap2 initialization.
37136         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
37137         power8 implementation.
37138         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
37139         file: POWER8 isnan ifunc implementation.
37140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
37141         POWER8 implementation.
37142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
37143         Likewise.
37144         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
37145         isnan implementation.
37146         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
37147
37148 2014-02-27  Joey Ye  <joey.ye@arm.com>
37149
37150         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
37151         (_FP_NANFRAC_Q): Set to zero.
37152
37153 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37154
37155         [BZ #16623]
37156         * math/auto-libm-test-in: New test inputs.
37157         * math/auto-libm-test-out: Regenerate.
37158         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
37159         and DA.
37160         (__cos): Likewise.
37161         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
37162
37163 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
37164
37165         * scripts/evaluate-test.sh: Take new argument indicating whether
37166         failure is expected.
37167         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
37168         indicating whether failure is expected.
37169         * conform/Makefile (test-xfail-run-conformtest): New variable.
37170         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
37171         level.
37172         * posix/Makefile (test-xfail-annexc): New variable.
37173         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
37174
37175 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
37176
37177         * argp/Makefile: Include Makeconfig immediately after defining
37178         subdir.
37179         * assert/Makefile: Likewise.
37180         * benchtests/Makefile: Likewise.
37181         * catgets/Makefile: Likewise.
37182         * conform/Makefile: Likewise.
37183         * crypt/Makefile: Likewise.
37184         * csu/Makefile: Likewise.
37185         (all): Remove target.
37186         * ctype/Makefile: Include Makeconfig immediately after defining
37187         subdir.
37188         * debug/Makefile: Likewise.
37189         * dirent/Makefile: Likewise.
37190         * dlfcn/Makefile: Likewise.
37191         * gmon/Makefile: Likewise.
37192         * gnulib/Makefile: Likewise.
37193         * grp/Makefile: Likewise.
37194         * gshadow/Makefile: Likewise.
37195         * hesiod/Makefile: Likewise.
37196         * hurd/Makefile: Likewise.
37197         (all): Remove target.
37198         * iconvdata/Makefile: Include Makeconfig immediately after
37199         defining subdir.
37200         * inet/Makefile: Likewise.
37201         * intl/Makefile: Likewise.
37202         * io/Makefile: Likewise.
37203         * libio/Makefile: Likewise.
37204         (all): Remove target.
37205         * locale/Makefile: Include Makeconfig immediately after defining
37206         subdir.
37207         * login/Makefile: Likewise.
37208         * mach/Makefile: Likewise.
37209         (all): Remove target.
37210         * malloc/Makefile: Include Makeconfig immediately after defining
37211         subdir.
37212         (all): Remove target.
37213         * manual/Makefile: Include Makeconfig immediately after defining
37214         subdir.
37215         * math/Makefile: Likewise.
37216         * misc/Makefile: Likewise.
37217         * nis/Makefile: Likewise.
37218         * nss/Makefile: Likewise.
37219         * po/Makefile: Likewise.
37220         (all): Remove target.
37221         * posix/Makefile: Include Makeconfig immediately after defining
37222         subdir.
37223         * pwd/Makefile: Likewise.
37224         * resolv/Makefile: Likewise.
37225         * resource/Makefile: Likewise.
37226         * rt/Makefile: Likewise.
37227         * setjmp/Makefile: Likewise.
37228         * shadow/Makefile: Likewise.
37229         * signal/Makefile: Likewise.
37230         * socket/Makefile: Likewise.
37231         * soft-fp/Makefile: Likewise.
37232         * stdio-common/Makefile: Likewise.
37233         * stdlib/Makefile: Likewise.
37234         * streams/Makefile: Likewise.
37235         * string/Makefile: Likewise.
37236         * sunrpc/Makefile: Likewise.
37237         (all): Remove target.
37238         * sysvipc/Makefile: Include Makeconfig immediately after defining
37239         subdir.
37240         * termios/Makefile: Likewise.
37241         * time/Makefile: Likewise.
37242         * timezone/Makefile: Likewise.
37243         (all): Remove target.
37244         * wcsmbs/Makefile: Include Makeconfig immediately after defining
37245         subdir.
37246         * wctype/Makefile: Likewise.
37247
37248 2014-02-26  Steve Ellcey  <sellcey@mips.com>
37249
37250         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
37251         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
37252         (libc_feholdexcept_setround_mips): Ditto.
37253         (libc_feholdsetround): New.
37254         (libc_feholdsetroundf): New.
37255         (libc_feholdsetroundl): New.
37256         (libc_feupdateenv_test_mips): New.
37257         (libc_feupdateenv_test): New.
37258         (libc_feupdateenv_testf): New.
37259         (libc_feupdateenv_testl): New.
37260         (libc_feresetround): New.
37261         (libc_feresetroundf): New.
37262         (libc_feresetroundl): New.
37263         (libc_fetestexcept_mips): New.
37264         (libc_fetestexcept): New.
37265         (libc_fetestexceptf): New.
37266         (libc_fetestexceptl): New.
37267         (HAVE_RM_CTX): New.
37268         (libc_feholdexcept_setround_mips_ctx): New.
37269         (libc_feholdexcept_setround_ctx): New.
37270         (libc_feholdexcept_setroundf_ctx): New.
37271         (libc_feholdexcept_setroundl_ctx): New.
37272         (libc_fesetenv_mips_ctx): New.
37273         (libc_fesetenv_ctx): New.
37274         (libc_fesetenv_ctxf): New.
37275         (libc_fesetenv_ctxl): New.
37276         (libc_feupdateenv_mips_ctx): New.
37277         (libc_feupdateenv_ctx): New.
37278         (libc_feupdateenvf_ctx): New.
37279         (libc_feupdateenvl_ctx): New.
37280         (libc_feholdsetround_mips_ctx): New.
37281         (libc_feholdsetround_ctx): New.
37282         (libc_feholdsetroundf_ctx): New.
37283         (libc_feholdsetroundl_ctx): New.
37284         (libc_feresetround_mips_ctx): New.
37285         (libc_feresetround_ctx): New.
37286         (libc_feresetroundf_ctx): New.
37287         (libc_feresetroundl_ctx): New.
37288
37289 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
37290
37291         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
37292
37293         * manual/ipc.texi: New file.
37294         * manual/Makefile (chapters): Add ipc.
37295         * manual/job.texi: Add "Inter-Process Communication" to next.
37296         * manual/process.texi: Add "Inter-Process Communication" to prev.
37297
37298 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37299
37300         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37301
37302 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
37303
37304         * malloc/malloc.c (__libc_calloc): Simplify implementation.
37305
37306         * manual/arith.texi: Fix spaces after sentences.
37307         * manual/charset.texi: Likewise.
37308         * manual/errno.texi: Likewise.
37309         * manual/install.texi: Likewise.
37310         * manual/llio.texi: Likewise.
37311         * manual/locale.texi: Likewise.
37312         * manual/maint.texi: Likewise.
37313         * manual/math.texi: Likewise.
37314         * manual/memory.texi: Likewise.
37315         * manual/message.texi: Likewise.
37316         * manual/probes.texi: Likewise.
37317         * manual/resource.texi: Likewise.
37318         * manual/signal.texi: Likewise.
37319         * manual/socket.texi: Likewise.
37320         * manual/stdio.texi: Likewise.
37321         * manual/string.texi: Likewise.
37322         * manual/time.texi: Likewise.
37323         * manual/users.texi: Likewise.
37324
37325 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
37326
37327         [BZ #16632]
37328         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
37329         _DEFAULT_SOURCE is defined.
37330
37331 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
37332             Carlos O'Donell  <carlos@redhat.com>
37333
37334         [BZ #16613]
37335         * elf/dl-tls.c (_dl_count_modids): New function.
37336         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
37337         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
37338         audit library and increment generation counter.
37339         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
37340         * elf/tst-audit9.c: New file.
37341         * elf/tst-auditmod9a.c: New file.
37342         * elf/tst-auditmod9b.c: New file.
37343         * elf/Makefile: Add rules to build and run tst-audit9.
37344
37345 2014-02-25  Florian Weimer  <fweimer@redhat.com>
37346
37347         [BZ #15347]
37348         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
37349
37350 2014-02-25  Will Newton  <will.newton@linaro.org>
37351
37352         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
37353         (__longjmp): Restore sp and lr before restoring callee
37354         saved registers.  Add longjmp and longjmp_target
37355         SystemTap probe point.
37356         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
37357         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
37358         Define to zero to match jmpbuf layout.
37359         * sysdeps/arm/setjmp.S: Include stap-probe.h.
37360         (__sigsetjmp): Save sp and lr before saving callee
37361         saved registers.  Add setjmp SystemTap probe point.
37362
37363 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37364
37365         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37366
37367 2014-02-24  Andreas Schwab  <schwab@suse.de>
37368
37369         [BZ #15804]
37370         * elf/pldd.c (wait_for_ptrace_stop): New function.
37371         (main): Call it after attaching.
37372
37373 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37374
37375         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37376         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37377         Versions files is now verboten.
37378         * hurd/Versions (libc: GLIBC_2.0):
37379         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37380         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37381         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37382         * mach/Versions: Likewise.
37383
37384         * csu/Versions: Remove unused %include.
37385         * resolv/Versions: Likewise.
37386
37387 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37388
37389         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37390         ($(objpfx)check-local-headers.out): Likewise.
37391         ($(objpfx)begin-end-check.out): Likewise.
37392         * Makerules (check-abi-%.out): Likewise.
37393         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37394         ($(objpfx)test2.cat): Likewise.
37395         ($(objpfx)de/libc.cat): Likewise.
37396         ($(objpfx)test-gencat.out): Likewise.
37397         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37398         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37399         ($(objpfx)noload-mem): Likewise.
37400         ($(objpfx)tst-pathopt.out): Likewise.
37401         ($(objpfx)tst-rtld-load-self.out): Likewise.
37402         ($(objpfx)tst-array1-cmp.out): Likewise.
37403         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37404         ($(objpfx)tst-array2-cmp.out): Likewise.
37405         ($(objpfx)tst-array3-cmp.out): Likewise.
37406         ($(objpfx)tst-array4-cmp.out): Likewise.
37407         ($(objpfx)tst-array5-cmp.out): Likewise.
37408         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37409         ($(objpfx)check-textrel.out): Likewise.
37410         ($(objpfx)check-execstack.out): Likewise.
37411         ($(objpfx)check-localplt.out): Likewise.
37412         ($(objpfx)order2-cmp.out): Likewise.
37413         ($(objpfx)tst-leaks1-mem): Likewise.
37414         ($(objpfx)tst-leaks1-static-mem): Likewise.
37415         ($(objpfx)tst-initorder-cmp.out): Likewise.
37416         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37417         ($(objpfx)tst-unused-dep.out): Likewise.
37418         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37419         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37420         * iconv/Makefile (test-iconvconfig): Likewise.
37421         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37422         ($(objpfx)iconv-test.out): Likewise.
37423         ($(objpfx)tst-tables.out): Likewise.
37424         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37425         ($(objpfx)tst-gettext.out): Likewise.
37426         ($(objpfx)tst-translit.out): Likewise.
37427         ($(objpfx)tst-gettext2.out): Likewise.
37428         ($(objpfx)tst-gettext4.out): Likewise.
37429         ($(objpfx)tst-gettext6.out): Likewise.
37430         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37431         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37432         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37433         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37434         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37435         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37436         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37437         ($(objpfx)wordexp-tst.out): Likewise.
37438         ($(objpfx)annexc.out): Likewise.
37439         ($(objpfx)tst-fnmatch-mem): Likewise.
37440         ($(objpfx)bug-regex2-mem): Likewise.
37441         ($(objpfx)bug-regex14-mem): Likewise.
37442         ($(objpfx)bug-regex21-mem): Likewise.
37443         ($(objpfx)bug-regex31-mem): Likewise.
37444         ($(objpfx)tst-vfork3-mem): Likewise.
37445         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37446         ($(objpfx)tst-pcre-mem): Likewise.
37447         ($(objpfx)tst-boost-mem): Likewise.
37448         ($(objpfx)tst-getconf.out): Likewise.
37449         ($(objpfx)bug-ga2-mem): Likewise.
37450         ($(objpfx)bug-glob2-mem): Likewise.
37451         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37452         ($(objpfx)mtrace-tst-leaks2): Likewise.
37453         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37454         ($(objpfx)tst-printf.out): Likewise.
37455         ($(objpfx)tst-setvbuf1.out): Likewise.
37456         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37457         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37458         ($(objpfx)tst-fmtmsg.out): Likewise.
37459         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37460         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37461
37462         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37463         * bits/sigaction.h [__USE_MISC]: Likewise.
37464         * bits/waitstatus.h: Update #endif comments.
37465         * ctype/ctype.h: Likewise.
37466         * dirent/dirent.h: Likewise.
37467         [__USE_MISC]: Remove redundant conditionals.
37468         * grp/grp.h: Update #endif comments.
37469         [__USE_GNU]: Remove redundant conditionals.
37470         [__USE_MISC]: Likewise.
37471         * inet/netinet/in.h [__USE_GNU]: Likewise.
37472         * io/sys/stat.h [__USE_MISC]: Likewise.
37473         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37474         * libio/bits/stdio.h: Update #endif comments.
37475         [__USE_MISC]: Remove redundant conditionals.
37476         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37477         * libio/stdio.h: Update #endif comments.
37478         [__USE_MISC]: Remove redundant conditionals.
37479         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37480         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37481         * math/math.h: Update #else and #endif comments.
37482         [__USE_MISC]: Remove redundant conditionals.
37483         * misc/sys/uio.h: Update #endif comments.
37484         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37485         * posix/glob.h [__USE_MISC]: Likewise.
37486         * posix/sys/types.h: Update #endif comments.
37487         [__USE_MISC]: Remove redundant conditionals.
37488         * posix/sys/wait.h: Update #endif comments.
37489         [__USE_MISC]: Remove redundant conditionals.
37490         * posix/unistd.h: Update #endif comments.
37491         [__USE_MISC]: Remove redundant conditionals.
37492         * pwd/pwd.h [__USE_GNU]: Likewise.
37493         [__USE_MISC]: Likewise.
37494         * resolv/netdb.h [__USE_GNU]: Likewise.
37495         * signal/signal.h: Update #endif comments.
37496         [__USE_MISC]: Remove redundant conditionals.
37497         * stdlib/stdlib.h: Update #else and #endif comments.
37498         [__USE_MISC]: Remove redundant conditionals.
37499         [__USE_GNU]: Likewise.
37500         * string/bits/string2.h [__USE_MISC]: Likewise.
37501         * string/string.h: Update #endif comments.
37502         [__USE_MISC]: Remove redundant conditionals.
37503         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37504         Likewise.
37505         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37506         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37507         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37508         Likewise.
37509         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37510         Likewise.
37511         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37512         comments.
37513         [__USE_MISC]: Remove redundant conditionals.
37514         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37515         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37516         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37517         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37518         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37519         Likewise.
37520         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37521         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37522         Likewise.
37523         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37524         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37525         Likewise.
37526         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37527         Likewise.
37528         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37529         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37530         Likewise.
37531         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37532         Likewise.
37533         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37534         * sysdeps/x86/bits/string.h: Update #endif comments.
37535         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37536         conditionals.
37537         * time/sys/time.h: Update #endif comments.
37538         * time/time.h: Likewise.
37539         [__USE_MISC]: Remove redundant conditionals.
37540
37541 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37542
37543         [BZ #16600]
37544         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37545
37546 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37547
37548         * Versions.def (librt): Add GLIBC_2.17.
37549
37550 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37551
37552         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37553         synonym for _SYS_AUXV_H to allow direct inclusion.
37554         * sysdeps/sparc/bits/hwcap.h: Likewise.
37555         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37556         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37557         * sysdeps/sparc/sysdep.h: Likewise.
37558
37559 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37560
37561         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37562
37563 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37564
37565         * benchtests/bench-strrchr.c: Print length instead of position.
37566
37567 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37568
37569         [BZ #16611]
37570         * sysdeps/unix/sysv/linux/kernel-features.h
37571         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37572         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37573         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37574         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37575         Likewise.
37576         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37577         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37578         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37579         (__ASSUME_SENDMMSG): Define instead of using previous
37580         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37581         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37582         (__ASSUME_SENDMMSG_SYSCALL): Define.
37583         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37584         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37585         Likewise.
37586         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37587         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37588         Likewise.
37589         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37590         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37591         Likewise.
37592         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37593         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37594         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37595         [__ASSUME_SENDMMSG]: Change conditionals to
37596         [__ASSUME_SENDMMSG_SOCKETCALL].
37597         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37598         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37599         Define.
37600         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37601         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37602         Likewise.
37603         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37604         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37605         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37606         [!__ASSUME_SENDMMSG]: Change conditional to
37607         [!__ASSUME_SENDMMSG_SOCKETCALL].
37608         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37609         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37610         Define.
37611
37612         [BZ #16610]
37613         * sysdeps/unix/sysv/linux/kernel-features.h
37614         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37615         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37616         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37617         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37618         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37619         [__i386__ || __sparc__]
37620         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37621         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37622         (__ASSUME_RECVMMSG): Define instead of using previous
37623         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37624         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37625         (__ASSUME_RECVMMSG_SYSCALL): Define.
37626         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37627         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37628         Likewise.
37629         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37630         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37631         Likewise.
37632         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37633         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37634         Likewise.
37635         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37636         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37637         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37638         [__ASSUME_RECVMMSG]: Change condition to
37639         [__ASSUME_RECVMMSG_SOCKETCALL].
37640         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37641         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37642         Define.
37643         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37644         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37645         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37646         Likewise.
37647         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37648         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37649         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37650         [!__ASSUME_RECVMMSG]: Change condition to
37651         [!__ASSUME_RECVMMSG_SOCKETCALL].
37652         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37653         (__ASSUME_RECVMMSG_SYSCALL): Define.
37654
37655         [BZ #16609]
37656         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37657         __powerpc__ || __s390__ || __sh__ || __sparc__]
37658         (__ASSUME_SOCKETCALL): Define.
37659         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37660         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37661         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37662         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37663         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37664         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37665         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37666         (__ASSUME_ACCEPT4): Define instead of using previous
37667         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37668         __powerpc__ || __sparc__ || __s390__)] condition.
37669         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37670         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37671         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37672         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37673         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37674         [!__ASSUME_ACCEPT4]: Change condition to
37675         [!__ASSUME_ACCEPT4_SOCKETCALL].
37676         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37677         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37678         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37679         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37680         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37681         __ASSUME_ACCEPT4_SYSCALL.
37682         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37683         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37684         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37685         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37686         __ASSUME_ACCEPT4_SYSCALL.
37687         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37688         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37689         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37690         [__ASSUME_ACCEPT4]: Change condition to
37691         [__ASSUME_ACCEPT4_SOCKETCALL].
37692         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37693         (__ASSUME_SOCKETCALL): Define.
37694         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37695         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37696         (__ASSUME_SOCKETCALL): Define.
37697         (__ASSUME_ACCEPT4): Remove.
37698         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37699         Define.
37700         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37701         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37702         Likewise.
37703         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37704         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37705
37706         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37707         macro.
37708         (HWCAP_ARM_LPAE): Likewise.
37709         (HWCAP_ARM_EVTSTRM): Likewise.
37710         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37711         Add vpfd32, lpae and evtstrm.
37712         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37713         Increase to 22.
37714
37715 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37716
37717         * math/auto-libm-test-in: Add tests of clog10.
37718         * math/auto-libm-test-out: Regenerated.
37719         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37720         * sysdeps/i386/fpu/libm-test-ulps: Update.
37721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37722
37723 2014-02-18  Andreas Schwab  <schwab@suse.de>
37724
37725         [BZ #16574]
37726         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37727         Store non-zero if the second buffer was newly allocated.
37728         (send_dg): Likewise.
37729         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37730         to send_vc and send_dg.
37731         (res_nsend): Pass NULL for ansp2_malloced.
37732         * resolv/res_query.c (__libc_res_nquery): Add parameter
37733         answerp2_malloced and pass it down to __libc_res_nsend.
37734         (res_nquery): Pass additional NULL to __libc_res_nquery.
37735         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37736         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37737         second answer buffer if answerp2_malloced was set.
37738         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37739         (__libc_res_nquerydomain): Add parameter
37740         answerp2_malloced and pass it down to __libc_res_nquery.
37741         (res_nquerydomain): Pass additional NULL to
37742         __libc_res_nquerydomain.
37743         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37744         additional NULL to __libc_res_nsend and __libc_res_nquery.
37745         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37746         additional NULL to __libc_res_nsearch.
37747         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37748         parameter of __libc_res_nsearch to check for separately allocated
37749         second buffer.
37750         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37751         __libc_res_nquery.
37752         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37753         additional NULL to __libc_res_nquery.
37754         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37755         __libc_res_nsearch.
37756         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37757         * include/resolv.h: Update prototypes of __libc_res_nquery,
37758         __libc_res_nsearch, __libc_res_nsend.
37759
37760 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37761
37762         * math/auto-libm-test-in: Add tests of fma.
37763         * math/auto-libm-test-out: Regenerated.
37764         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37765         (fma_towardzero_test_data): Likewise.
37766         (fma_downward_test_data): Likewise.
37767         (fma_upward_test_data): Likewise.
37768         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37769         mpc_mode.
37770         (rounding_modes): Add values for new field.
37771         (func_calc_method): Add value mpfr_fff_f.
37772         (func_calc_desc): Add mpfr_fff_f union field.
37773         (test_function): Add field exact_args.
37774         (FUNC): Add macro argument EXACT_ARGS.
37775         (FUNC_mpfr_f_f): Update call to FUNC.
37776         (FUNC_mpfr_f_f): Likewise.
37777         (FUNC_mpfr_ff_f): Likewise.
37778         (FUNC_mpfr_if_f): Likewise.
37779         (FUNC_mpc_c_f): Likewise.
37780         (FUNC_mpc_c_c): Likewise.
37781         (test_functions): Add fma.  Update calls to FUNC.
37782         (handle_input_arg): Add argument exact_args.
37783         (add_test): Update call to handle_input_arg.
37784         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37785         (output_for_one_input_case): Update call to calc_generic_results.
37786         Recalculate exact zero results in each rounding mode.
37787
37788         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37789         non-negative before setting low bit.
37790         * math/auto-libm-test-in: Mark one asin test possibly having
37791         spurious underflow.
37792         * math/auto-libm-test-out: Regenerated.
37793         * sysdeps/i386/fpu/libm-test-ulps: Update.
37794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37795
37796 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37797
37798         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37799         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37800         ports/sysdeps/unix/sysv/linux/microblaze.
37801         * README: Add missing listing for microblaze*-*-linux-gnu.
37802
37803 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37804
37805         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37806         duplicate code
37807
37808 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37809
37810         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37811         * sysdeps/unix/sysv/linux/ia64: Move directory from
37812         ports/sysdeps/unix/sysv/linux/ia64.
37813         * README: Update listing for ia64-*-linux-gnu.
37814
37815 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37816             Joseph Myers  <joseph@codesourcery.com>
37817
37818         * Makeconfig (test-name): New variable.
37819         (evaluate-test): Likewise.
37820         * Makerules (do-test-clean): Remove .test-result files.
37821         (common-mostlyclean): Likewise.
37822         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37823         * scripts/evaluate-test.sh: New file.
37824
37825 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37826
37827         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37828         separate $(objpfx)tst-fopenloc-cmp.out and
37829         $(objpfx)tst-fopenloc-mem.out targets.
37830         (tests): Update dependencies.
37831         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37832         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37833         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37834         (tst-rxspencer-no-utf8-ARGS): New variable.
37835         (tst-rxspencer-no-utf8-ENV): Likewise.
37836         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37837         instead of $(objpfx)tst-rxspencer-mem.
37838         ($(objpfx)tst-rxspencer-mem): Change target to
37839         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37840         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37841         * posix/tst-rxspencer-no-utf8.c: New file.
37842
37843         * elf/Makefile ($(objpfx)order.out): Remove rule.
37844         [$(run-built-tests) = yes] (tests): Depend on
37845         $(objpfx)order-cmp.out.
37846         ($(objpfx)order-cmp.out): New rule.
37847         [$(run-built-tests) = yes] (tests): Depend on
37848         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37849         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37850         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37851         $(objpfx)tst-array5-static-cmp.out.
37852         ($(objpfx)tst-array1.out): Remove rule.
37853         ($(objpfx)tst-array1-cmp.out): New rule.
37854         ($(objpfx)tst-array1-static.out): Remove rule.
37855         ($(objpfx)tst-array1-static-cmp.out): New rule.
37856         ($(objpfx)tst-array2.out): Remove rule.
37857         ($(objpfx)tst-array2-cmp.out): New rule.
37858         ($(objpfx)tst-array3.out): Remove rule.
37859         ($(objpfx)tst-array3-cmp.out): New rule.
37860         ($(objpfx)tst-array4.out): Remove rule.
37861         ($(objpfx)tst-array4-cmp.out): New rule.
37862         ($(objpfx)tst-array5.out): Remove rule.
37863         ($(objpfx)tst-array5-cmp.out): New rule.
37864         ($(objpfx)tst-array5-static.out): Remove rule.
37865         ($(objpfx)tst-array5-static-cmp.out): New rule.
37866         [$(run-built-tests) = yes] (tests): Depend on
37867         $(objpfx)order2-cmp.out.
37868         ($(objpfx)order2.out): Remove rule.
37869         ($(objpfx)order2-cmp.out): New rule.
37870         ($(objpfx)tst-initorder.out): Remove rule.
37871         [$(run-built-tests) = yes] (tests): Depend on
37872         $(objpfx)tst-initorder-cmp.out.
37873         ($(objpfx)tst-initorder-cmp.out): New rule.
37874         ($(objpfx)tst-initorder2.out): Remove rule.
37875         [$(run-built-tests) = yes] (tests): Depend on
37876         $(objpfx)tst-initorder2-cmp.out.
37877         ($(objpfx)tst-initorder2-cmp.out): New rule.
37878         [$(run-built-tests) = yes] (tests): Depend on
37879         $(objpfx)tst-unused-dep-cmp.out.
37880         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37881         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37882         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37883         on $(objpfx)tst-setvbuf1-cmp.out.
37884         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37885         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37886         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37887         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37888         ($(objpfx)tst-svc.out): Remove rule.
37889         ($(objpfx)tst-svc-cmp.out): New rule.
37890
37891 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37892
37893         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37894         * ctype/ctype.h [__USE_MISC]: Likewise.
37895         * dirent/dirent.h [__USE_MISC]: Likewise.
37896         * grp/grp.h [__USE_MISC]: Likewise.
37897         * io/fcntl.h [__USE_MISC]: Likewise.
37898         * io/sys/stat.h [__USE_MISC]: Likewise.
37899         * libio/stdio.h [__USE_MISC]: Likewise.
37900         * posix/unistd.h [__USE_MISC]: Likewise.
37901         * pwd/pwd.h [__USE_MISC]: Likewise.
37902         * stdlib.h [__USE_MISC]: Likewise.
37903         * string/bits/string2.h [__USE_MISC]: Likewise.
37904         * string/string.h [__USE_MISC]: Likewise.
37905         * time/time.h [__USE_MISC]: Likewise.
37906
37907 2014-02-13  Andreas Schwab  <schwab@suse.de>
37908
37909         [BZ #16574]
37910         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37911         second answer buffer if it was separately allocated.
37912
37913 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37914
37915         * sysdeps/mips/math-tests.h: Include <features.h>.
37916         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37917         (ROUNDING_TESTS_long_double): Do not define.
37918         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37919         (EXCEPTION_TESTS_long_double): Likewise.
37920         * sysdeps/mips/mips64/libm-test-ulps: Update.
37921
37922         * include/features.h (__USE_BSD): Remove macro definitions.
37923         (__USE_SVID): Likewise.
37924         (_BSD_SOURCE): Likewise.
37925         (_SVID_SOURCE): Likewise.
37926         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37927         from definition of _DEFAULT_SOURCE.
37928         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37929         [_DEFAULT_SOURCE].
37930         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37931         * bits/mman.h [__USE_BSD]: Likewise.
37932         * bits/termios.h [__USE_BSD]: Likewise.
37933         * bits/waitstatus.h [__USE_BSD]: Likewise.
37934         * ctype/ctype.h [__USE_SVID]: Likewise.
37935         * dirent/dirent.h [__USE_BSD]: Likewise.
37936         * grp/grp.h [__USE_SVID]: Likewise.
37937         [__USE_BSD]: Likewise.
37938         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37939         * io/fcntl.h [__USE_BSD]: Likewise.
37940         * io/ftw.h [__USE_BSD]: Likewise.
37941         * io/sys/stat.h [__USE_BSD]: Likewise.
37942         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37943         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37944         * libio/stdio.h [__USE_SVID]: Likewise.
37945         [__USE_BSD]: Likewise.
37946         * math/math.h [__USE_SVID]: Likewise.
37947         [__USE_BSD]: Likewise.
37948         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37949         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37950         * misc/search.h [__USE_SVID]: Likewise.
37951         * misc/sys/mman.h [__USE_BSD]: Likewise.
37952         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37953         * misc/sys/uio.h [__USE_BSD]: Likewise.
37954         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37955         * posix/glob.h [__USE_BSD]: Likewise.
37956         * posix/regex.h [__USE_BSD]: Likewise.
37957         * posix/sys/types.h [__USE_BSD]: Likewise.
37958         [__USE_SVID]: Likewise.
37959         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37960         * posix/sys/wait.h [__USE_BSD]: Likewise.
37961         [__USE_SVID]: Likewise.
37962         * posix/unistd.h [__USE_BSD]: Likewise.
37963         [__USE_SVID]: Likewise.
37964         * pwd/pwd.h [__USE_SVID]: Likewise.
37965         * resolv/netdb.h [__USE_BSD]: Likewise.
37966         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37967         * signal/signal.h [__USE_BSD]: Likewise.
37968         [__USE_SVID]: Likewise.
37969         * socket/sys/socket.h [__USE_BSD]: Likewise.
37970         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37971         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37972         [__USE_SVID]: Likewise.
37973         * string/bits/string2.h [__USE_BSD]: Likewise.
37974         [__USE_SVID]: Likewise.
37975         * string/bits/string3.h [__USE_BSD]: Likewise.
37976         * string/endian.h [__USE_BSD]: Likewise.
37977         * string/string.h [__USE_SVID]: Likewise.
37978         [__USE_BSD]: Likewise.
37979         * string/strings.h [__USE_BSD]: Likewise.
37980         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37981         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37982         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37983         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37984         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37985         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37986         Likewise.
37987         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37988         Likewise.
37989         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37990         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37991         Likewise.
37992         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37993         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37994         Likewise.
37995         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37996         Likewise.
37997         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37998         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37999         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
38000         Likewise.
38001         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
38002         Likewise.
38003         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
38004         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
38005         * termios/termios.h [__USE_BSD]: Likewise.
38006         * time/sys/time.h [__USE_BSD]: Likewise.
38007         * time/time.h [__USE_BSD]: Likewise.
38008         [__USE_SVID]: Likewise.
38009
38010         * Makefile (subdir_targets): Remove subdir_lint.out.
38011
38012         * stdio-common/Makefile (do-tst-unbputc): Remove target.
38013         (do-tst-printf): Likewise.
38014         (tests): Depend directly on $(objpfx)tst-unbputc.out and
38015         $(objpfx)tst-printf.out.
38016
38017         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
38018
38019         * Makerules (check-abi-%): Change target to
38020         $(objpfx)check-abi-%.out.
38021         (check-abi target): Update dependencies.
38022         (check-abi-pattern variable): Redirect output of diff to $@.
38023         (check-abi variable): Likewise.
38024         * elf/Makefile (check-abi): Update dependencies.
38025
38026         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
38027         unused.
38028         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
38029         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
38030         subnormal range.
38031         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
38032         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
38033         value has largest subnormal exponent.
38034         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
38035         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
38036         * sysdeps/aarch64/soft-fp/sfp-machine.h
38037         (_FP_TININESS_AFTER_ROUNDING): New macro.
38038         * sysdeps/alpha/soft-fp/sfp-machine.h
38039         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38040         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38041         Likewise.
38042         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
38043         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38044         * sysdeps/mips/soft-fp/sfp-machine.h
38045         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38046         * sysdeps/powerpc/soft-fp/sfp-machine.h
38047         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38048         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38049         Likewise.
38050         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
38051         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38052         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
38053         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38054         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38055         Likewise.
38056
38057 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
38058
38059         [BZ #16545]
38060         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
38061         model 1.
38062
38063 2014-02-12  Richard Henderson  <rth@redhat.com>
38064
38065         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
38066         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
38067         * sysdeps/unix/sysv/linux/alpha: Move directory from
38068         ports/sysdeps/unix/sysv/linux/alpha.
38069         * README: Update listing for alpha-*-linux-gnu.
38070
38071 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
38072
38073         * include/features.h: Update comment documenting feature test
38074         macros.
38075         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
38076         _DEFAULT_SOURCE.
38077         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
38078         (_SVID_SOURCE): Likewise.
38079         (_DEFAULT_SOURCE): Update description of default features.
38080         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
38081         with _GNU_SOURCE.
38082         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
38083         (S_ISVTX): Likewise.
38084         * manual/math.texi (Mathematical Constants): Likewise.
38085         * manual/signal.texi (Interrupted Primitives): Likewise.
38086         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
38087         * math/test-matherr.c (_SVID_SOURCE): Do not define.
38088         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
38089         Don't refer to _SVID_SOURCE in warning text.
38090
38091         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38092
38093         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
38094         already defined.
38095         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
38096         * sysdeps/mips/dl-lookup.c: Remove.
38097         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
38098
38099 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
38100
38101         [BZ #16447]
38102         * math/auto-libm-test-in: Add testcase for expl.
38103         * math/auto-libm-test-out: Regenerate.
38104         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
38105         calculation of unsafe.
38106         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
38107
38108 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38109
38110         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
38111         * sysdeps/unix/sysv/linux/aarch64: Move directory from
38112         ports/sysdeps/unix/sysv/linux/aarch64.
38113         * README: Update listing for aarch64*-*-linux-gnu.
38114
38115 2014-02-11  Will Newton  <will.newton@linaro.org>
38116
38117         * manual/probes.texi (Mathematical Function Probes): Use
38118         "triggered" instead of "hit".
38119
38120         * manual/probes.texi (Internal Probes): Add documentation
38121         of setjmp, longjmp and longjmp_target probes.
38122
38123         * include/stap-probe.h: Add comment about probe argument
38124         format.
38125
38126         * malloc/mtrace.c (attribute_hidden): Remove unused macro
38127         definition.  (tr_where, tr_freehook, tr_mallochook,
38128         tr_reallochook, tr_memalignhook): Use ANSI protoype.
38129
38130 2014-02-11  David S. Miller  <davem@davemloft.net>
38131
38132         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
38133         processing int_tests.
38134
38135 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
38136
38137         * sysdeps/mips: Move directory from ports/sysdeps/mips.
38138         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
38139         * sysdeps/unix/sysv/linux/mips: Move directory from
38140         ports/sysdeps/unix/sysv/linux/mips.
38141         * README: Update listing for mips-*-linux-gnu and
38142         mips64-*-linux-gnu.
38143
38144 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
38145
38146         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
38147         * sysdeps/unix/sysv/linux/m68k: Move directory from
38148         ports/sysdeps/unix/sysv/linux/m68k.
38149         * README: Update listing for m68k-*-linux-gnu.
38150
38151 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
38152
38153         * sysdeps/tile: Move directory from ports/sysdeps/tile.
38154         * sysdeps/unix/sysv/linux/generic: Move directory from
38155         ports/sysdeps/unix/sysv/linux/generic.
38156         * sysdeps/unix/sysv/linux/tile: Move directory from
38157         ports/sysdeps/unix/sysv/linux/tile.
38158         * README: Update listing for tile*-*-linux-gnu.
38159
38160 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
38161
38162         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
38163         __builtin_expect.
38164         * benchtests/bench-memmem.c (simple_memmem): Likewise.
38165         * catgets/open_catalog.c (__open_catalog): Likewise.
38166         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
38167         * debug/confstr_chk.c: Likewise.
38168         * debug/fread_chk.c (__fread_chk): Likewise.
38169         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
38170         * debug/getgroups_chk.c: Likewise.
38171         * debug/mbsnrtowcs_chk.c: Likewise.
38172         * debug/mbsrtowcs_chk.c: Likewise.
38173         * debug/mbstowcs_chk.c: Likewise.
38174         * debug/memcpy_chk.c: Likewise.
38175         * debug/memmove_chk.c: Likewise.
38176         * debug/mempcpy_chk.c: Likewise.
38177         * debug/memset_chk.c: Likewise.
38178         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
38179         * debug/strcat_chk.c (__strcat_chk): Likewise.
38180         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
38181         * debug/strncat_chk.c (__strncat_chk): Likewise.
38182         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
38183         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
38184         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
38185         * debug/wcpncpy_chk.c: Likewise.
38186         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
38187         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
38188         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
38189         * debug/wcsncpy_chk.c: Likewise.
38190         * debug/wcsnrtombs_chk.c: Likewise.
38191         * debug/wcsrtombs_chk.c: Likewise.
38192         * debug/wcstombs_chk.c: Likewise.
38193         * debug/wmemcpy_chk.c: Likewise.
38194         * debug/wmemmove_chk.c: Likewise.
38195         * debug/wmempcpy_chk.c: Likewise.
38196         * debug/wmemset_chk.c: Likewise.
38197         * dirent/scandirat.c (SCANDIRAT): Likewise.
38198         * dlfcn/dladdr1.c (dladdr1): Likewise.
38199         * dlfcn/dladdr.c (dladdr): Likewise.
38200         * dlfcn/dlclose.c (dlclose_doit): Likewise.
38201         * dlfcn/dlerror.c (__dlerror): Likewise.
38202         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
38203         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
38204         * dlfcn/dlopen.c (dlopen_doit): Likewise.
38205         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
38206         * dlfcn/dlsym.c (dlsym_doit): Likewise.
38207         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
38208         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
38209         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
38210         Likewise.
38211         * elf/dl-conflict.c: Likewise.
38212         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
38213         * elf/dl-dst.h: Likewise.
38214         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
38215         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
38216         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
38217         * elf/dl-init.c (call_init, _dl_init): Likewise.
38218         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
38219         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
38220         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
38221         Likewise.
38222         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
38223         Likewise.
38224         * elf/dl-minimal.c (__libc_memalign): Likewise.
38225         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
38226         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
38227         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
38228         * elf/dl-sym.c (do_sym): Likewise.
38229         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
38230         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
38231         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
38232         * elf/dl-writev.h (_dl_writev): Likewise.
38233         * elf/ldconfig.c (search_dir): Likewise.
38234         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
38235         (dl_main): Likewise.
38236         * elf/setup-vdso.h (setup_vdso): Likewise.
38237         * grp/compat-initgroups.c (compat_call): Likewise.
38238         * grp/fgetgrent.c (fgetgrent): Likewise.
38239         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
38240         * grp/putgrent.c (putgrent): Likewise.
38241         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
38242         Likewise.
38243         * hurd/hurdinit.c: Likewise.
38244         * iconvdata/8bit-gap.c (struct): Likewise.
38245         * iconvdata/ansi_x3.110.c : Likewise.
38246         * iconvdata/big5.c : Likewise.
38247         * iconvdata/big5hkscs.c : Likewise.
38248         * iconvdata/cp1255.c: Likewise.
38249         * iconvdata/cp1258.c : Likewise.
38250         * iconvdata/cp932.c : Likewise.
38251         * iconvdata/euc-cn.c: Likewise.
38252         * iconvdata/euc-jisx0213.c : Likewise.
38253         * iconvdata/euc-jp.c: Likewise.
38254         * iconvdata/euc-jp-ms.c : Likewise.
38255         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
38256         * iconvdata/gb18030.c : Likewise.
38257         * iconvdata/gbbig5.c (const): Likewise.
38258         * iconvdata/gbgbk.c: Likewise.
38259         * iconvdata/gbk.c : Likewise.
38260         * iconvdata/ibm1364.c : Likewise.
38261         * iconvdata/ibm930.c : Likewise.
38262         * iconvdata/ibm932.c: Likewise.
38263         * iconvdata/ibm933.c : Likewise.
38264         * iconvdata/ibm935.c : Likewise.
38265         * iconvdata/ibm937.c : Likewise.
38266         * iconvdata/ibm939.c : Likewise.
38267         * iconvdata/ibm943.c: Likewise.
38268         * iconvdata/iso_11548-1.c: Likewise.
38269         * iconvdata/iso-2022-cn.c : Likewise.
38270         * iconvdata/iso-2022-cn-ext.c : Likewise.
38271         * iconvdata/iso-2022-jp-3.c: Likewise.
38272         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
38273         * iconvdata/iso-2022-kr.c : Likewise.
38274         * iconvdata/iso646.c (gconv_end): Likewise.
38275         * iconvdata/iso_6937-2.c : Likewise.
38276         * iconvdata/iso_6937.c : Likewise.
38277         * iconvdata/iso8859-1.c: Likewise.
38278         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
38279         * iconvdata/shift_jisx0213.c : Likewise.
38280         * iconvdata/sjis.c : Likewise.
38281         * iconvdata/t.61.c : Likewise.
38282         * iconvdata/tcvn5712-1.c : Likewise.
38283         * iconvdata/tscii.c: Likewise.
38284         * iconvdata/uhc.c : Likewise.
38285         * iconvdata/unicode.c (gconv_end): Likewise.
38286         * iconvdata/utf-16.c (gconv_end): Likewise.
38287         * iconvdata/utf-32.c (gconv_end): Likewise.
38288         * iconvdata/utf-7.c (base64): Likewise.
38289         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
38290         * iconv/gconv_close.c (__gconv_close): Likewise.
38291         * iconv/gconv_open.c (__gconv_open): Likewise.
38292         * iconv/gconv_simple.c (internal_ucs4_loop_single)
38293         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
38294         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
38295         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
38296         (ucs4le_internal_loop_single): Likewise.
38297         * iconv/iconv.c (iconv): Likewise.
38298         * iconv/iconv_close.c: Likewise.
38299         * iconv/loop.c (SINGLE): Likewise.
38300         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
38301         * include/atomic.h: Likewise.
38302         * inet/inet6_option.c (option_alloc): Likewise.
38303         * intl/bindtextdom.c (set_binding_values): Likewise.
38304         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
38305         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
38306         * intl/localealias.c (read_alias_file): Likewise.
38307         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
38308         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
38309         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
38310         * libio/fmemopen.c (fmemopen): Likewise.
38311         * libio/iofgets.c (_IO_fgets): Likewise.
38312         * libio/iofgets_u.c (fgets_unlocked): Likewise.
38313         * libio/iofgetws.c (fgetws): Likewise.
38314         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
38315         * libio/iogetdelim.c (_IO_getdelim): Likewise.
38316         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
38317         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
38318         * locale/findlocale.c (_nl_find_locale): Likewise.
38319         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
38320         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
38321         Likewise.
38322         * locale/setlocale.c (setlocale): Likewise.
38323         * login/programs/pt_chown.c (main): Likewise.
38324         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
38325         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
38326         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
38327         (mmap, mmap64, mremap, munmap): Likewise.
38328         * math/e_exp2l.c: Likewise.
38329         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
38330         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
38331         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
38332         * math/s_catan.c (__catan): Likewise.
38333         * math/s_catanf.c (__catanf): Likewise.
38334         * math/s_catanh.c (__catanh): Likewise.
38335         * math/s_catanhf.c (__catanhf): Likewise.
38336         * math/s_catanhl.c (__catanhl): Likewise.
38337         * math/s_catanl.c (__catanl): Likewise.
38338         * math/s_ccosh.c (__ccosh): Likewise.
38339         * math/s_ccoshf.c (__ccoshf): Likewise.
38340         * math/s_ccoshl.c (__ccoshl): Likewise.
38341         * math/s_cexp.c (__cexp): Likewise.
38342         * math/s_cexpf.c (__cexpf): Likewise.
38343         * math/s_cexpl.c (__cexpl): Likewise.
38344         * math/s_clog10.c (__clog10): Likewise.
38345         * math/s_clog10f.c (__clog10f): Likewise.
38346         * math/s_clog10l.c (__clog10l): Likewise.
38347         * math/s_clog.c (__clog): Likewise.
38348         * math/s_clogf.c (__clogf): Likewise.
38349         * math/s_clogl.c (__clogl): Likewise.
38350         * math/s_csin.c (__csin): Likewise.
38351         * math/s_csinf.c (__csinf): Likewise.
38352         * math/s_csinh.c (__csinh): Likewise.
38353         * math/s_csinhf.c (__csinhf): Likewise.
38354         * math/s_csinhl.c (__csinhl): Likewise.
38355         * math/s_csinl.c (__csinl): Likewise.
38356         * math/s_csqrt.c (__csqrt): Likewise.
38357         * math/s_csqrtf.c (__csqrtf): Likewise.
38358         * math/s_csqrtl.c (__csqrtl): Likewise.
38359         * math/s_ctan.c (__ctan): Likewise.
38360         * math/s_ctanf.c (__ctanf): Likewise.
38361         * math/s_ctanh.c (__ctanh): Likewise.
38362         * math/s_ctanhf.c (__ctanhf): Likewise.
38363         * math/s_ctanhl.c (__ctanhl): Likewise.
38364         * math/s_ctanl.c (__ctanl): Likewise.
38365         * math/w_pow.c: Likewise.
38366         * math/w_powf.c: Likewise.
38367         * math/w_powl.c: Likewise.
38368         * math/w_scalb.c (sysv_scalb): Likewise.
38369         * math/w_scalbf.c (sysv_scalbf): Likewise.
38370         * math/w_scalbl.c (sysv_scalbl): Likewise.
38371         * misc/error.c (error_tail): Likewise.
38372         * misc/pselect.c (__pselect): Likewise.
38373         * nis/nis_callback.c (__nis_create_callback): Likewise.
38374         * nis/nis_call.c (__nisfind_server): Likewise.
38375         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38376         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38377         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38378         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38379         * nis/nis_lookup.c (nis_lookup): Likewise.
38380         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38381         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38382         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38383         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38384         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38385         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38386         * nis/nss_compat/compat-initgroups.c (add_group)
38387         (internal_getgrent_r): Likewise.
38388         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38389         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38390         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38391         (internal_getspnam_r): Likewise.
38392         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38393         (_nss_nis_getaliasbyname_r): Likewise.
38394         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38395         (_nss_nis_getntohost_r): Likewise.
38396         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38397         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38398         (_nss_nis_getgrgid_r): Likewise.
38399         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38400         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38401         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38402         (_nss_nis_gethostbyname4_r): Likewise.
38403         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38404         (initgroups_netid): Likewise.
38405         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38406         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38407         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38408         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38409         (_nss_nis_getprotobynumber_r): Likewise.
38410         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38411         (_nss_nis_getsecretkey): Likewise.
38412         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38413         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38414         (_nss_nis_getpwuid_r): Likewise.
38415         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38416         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38417         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38418         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38419         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38420         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38421         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38422         Likewise.
38423         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38424         (_nss_nisplus_getntohost_r): Likewise.
38425         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38426         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38427         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38428         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38429         Likewise.
38430         * nis/nss_nisplus/nisplus-initgroups.c
38431         (_nss_nisplus_initgroups_dyn): Likewise.
38432         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38433         (_nss_nisplus_getnetbyaddr_r): Likewise.
38434         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38435         (_nss_nisplus_getprotobynumber_r): Likewise.
38436         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38437         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38438         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38439         Likewise.
38440         * nis/nss_nisplus/nisplus-service.c
38441         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38442         (_nss_nisplus_getservbyport_r): Likewise.
38443         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38444         (_nss_nisplus_getspnam_r): Likewise.
38445         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38446         Likewise.
38447         * nscd/aicache.c (addhstaiX): Likewise.
38448         * nscd/cache.c (cache_search, prune_cache): Likewise.
38449         * nscd/connections.c (register_traced_file, send_ro_fd)
38450         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38451         (main_loop_epoll): Likewise.
38452         * nscd/grpcache.c (addgrbyX): Likewise.
38453         * nscd/hstcache.c (addhstbyX): Likewise.
38454         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38455         * nscd/mem.c (gc, mempool_alloc): Likewise.
38456         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38457         (addinnetgrX): Likewise.
38458         * nscd/nscd-client.h (__nscd_acquire_maplock)
38459         (__nscd_drop_map_ref): Likewise.
38460         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38461         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38462         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38463         Likewise.
38464         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38465         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38466         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38467         (__nscd_get_map_ref): Likewise.
38468         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38469         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38470         Likewise.
38471         * nscd/pwdcache.c (addpwbyX): Likewise.
38472         * nscd/selinux.c (preserve_capabilities): Likewise.
38473         * nscd/servicescache.c (addservbyX): Likewise.
38474         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38475         * posix/fnmatch.c (fnmatch): Likewise.
38476         * posix/getopt.c (_getopt_internal_r): Likewise.
38477         * posix/glob.c (glob, glob_in_dir): Likewise.
38478         * posix/wordexp.c (exec_comm_child): Likewise.
38479         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38480         (getanswer_r, gaih_getanswer_slice): Likewise.
38481         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38482         * resolv/res_init.c: Likewise.
38483         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38484         * resolv/res_query.c (__libc_res_nquery): Likewise.
38485         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38486         Likewise.
38487         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38488         * stdio-common/perror.c (perror): Likewise.
38489         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38490         * stdio-common/tmpnam.c (tmpnam): Likewise.
38491         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38492         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38493         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38494         Likewise.
38495         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38496         * stdlib/putenv.c (putenv): Likewise.
38497         * stdlib/setenv.c (__add_to_environ): Likewise.
38498         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38499         * stdlib/strtol_l.c (INTERNAL): Likewise.
38500         * string/memmem.c (memmem): Likewise.
38501         * string/strerror.c (strerror): Likewise.
38502         * string/strnlen.c (__strnlen): Likewise.
38503         * string/test-memmem.c (simple_memmem): Likewise.
38504         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38505         * sunrpc/pm_getport.c (__get_socket): Likewise.
38506         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38507         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38508         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38509         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38510         Likewise.
38511         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38512         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38513         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38514         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38515         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38516         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38517         Likewise.
38518         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38519         Likewise.
38520         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38521         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38522         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38523         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38524         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38525         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38526         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38527         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38528         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38529         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38530         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38531         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38532         Likewise.
38533         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38534         Likewise.
38535         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38536         Likewise.
38537         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38538         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38539         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38540         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38541         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38542         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38543         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38544         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38545         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38546         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38547         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38548         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38549         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38550         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38551         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38552         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38553         Likewise.
38554         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38555         Likewise.
38556         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38557         Likewise.
38558         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38559         Likewise.
38560         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38561         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38562         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38563         Likewise.
38564         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38565         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38566         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38567         * sysdeps/posix/sleep.c: Likewise.
38568         * sysdeps/posix/tempname.c: Likewise.
38569         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38570         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38571         Likewise.
38572         * sysdeps/powerpc/powerpc32/dl-machine.h
38573         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38574         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38575         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38576         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38577         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38578         Likewise.
38579         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38580         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38581         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38582         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38583         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38584         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38585         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38586         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38587         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38588         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38589         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38590         (elf_machine_lazy_rel): Likewise.
38591         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38592         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38593         (elf_machine_lazy_rel): Likewise.
38594         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38595         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38596         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38597         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38598         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38599         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38600         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38601         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38602         Likewise.
38603         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38604         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38605         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38606         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38607         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38608         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38609         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38610         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38611         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38612         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38613         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38614         Likewise.
38615         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38616         (__posix_fallocate64_l64): Likewise.
38617         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38618         (posix_fallocate): Likewise.
38619         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38620         Likewise.
38621         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38622         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38623         (getifaddrs_internal): Likewise.
38624         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38625         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38626         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38627         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38628         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38629         (__posix_fallocate64_l64): Likewise.
38630         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38631         Likewise.
38632         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38633         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38634         (__get_clockfreq): Likewise.
38635         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38636         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38637         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38638         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38639         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38640         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38641         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38642         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38643         Likewise.
38644         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38645         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38646         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38647         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38648         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38649         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38650         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38651         Likewise.
38652         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38653         (posix_fallocate): Likewise.
38654         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38655         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38656         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38657         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38658         (elf_machine_rela, elf_machine_rela_relative)
38659         (elf_machine_lazy_rel): Likewise.
38660         * time/asctime.c (asctime_internal): Likewise.
38661         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38662         * time/tzset.c (__tzset_parse_tz): Likewise.
38663         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38664         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38665         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38666         * wcsmbs/wcsmbsload.h: Likewise.
38667
38668         [BZ #15894]
38669         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38670
38671         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38672         (arena_get2): Remove THREAD_STATS conditionals.
38673         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38674         (__malloc_stats, int): Likewise.
38675
38676 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38677
38678         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38679         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38680
38681         * manual/setjmp.texi: Fix typos/grammar errors.
38682
38683         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38684         Only return early when n is <= 0.  Delete unused return statement.
38685
38686         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38687         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38688         * debug/tst-longjmp_chk3.c: New file.
38689
38690         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38691         (test_main): Replace code with set_fortify_handler call.
38692         * debug/test-strcpy_chk.c: Likewise.
38693         * debug/tst-chk1.c: Likewise.
38694         * debug/tst-longjmp_chk.c: Likewise.
38695         * test-skeleton.c: Include fcntl.h & paths.h
38696         (set_fortify_handler): Define.
38697
38698         * debug/tst-longjmp_chk.c: Add header comment and include
38699         ../test-skeleton.c.
38700         (do_test): Mark static.
38701         (TEST_FUNCTION): Define.
38702
38703         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38704         (IP_PMTUDISC_INTERFACE): Likewise.
38705         (IP_MULTICAST_IF): Likewise.
38706         (IP_MULTICAST_TTL): Likewise.
38707         (IP_MULTICAST_LOOP): Likewise.
38708         (IP_ADD_MEMBERSHIP): Likewise.
38709         (IP_DROP_MEMBERSHIP): Likewise.
38710         (IP_UNBLOCK_SOURCE): Likewise.
38711         (IP_BLOCK_SOURCE): Likewise.
38712         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38713         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38714         (IP_MSFILTER): Likewise.
38715         (MCAST_JOIN_GROUP): Likewise.
38716         (MCAST_BLOCK_SOURCE): Likewise.
38717         (MCAST_UNBLOCK_SOURCE): Likewise.
38718         (MCAST_LEAVE_GROUP): Likewise.
38719         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38720         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38721         (MCAST_MSFILTER): Likewise.
38722         (IP_MULTICAST_ALL): Likewise.
38723         (IP_UNICAST_IF): Likewise.
38724
38725         * timezone/Makefile: Delete $(have-ksh) check.
38726         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38727         * timezone/tzselect.ksh: Add +x mode bits.
38728
38729         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38730         (ANON_INODE_FS_MAGIC): Likewise.
38731         (BDEVFS_MAGIC): Likewise.
38732         (BINFMTFS_MAGIC): Likewise.
38733         (BTRFS_TEST_MAGIC): Likewise.
38734         (CRAMFS_MAGIC_WEND): Likewise.
38735         (DEBUGFS_MAGIC): Likewise.
38736         (ECRYPTFS_SUPER_MAGIC): Likewise.
38737         (EXT3_SUPER_MAGIC): Likewise.
38738         (EXT4_SUPER_MAGIC): Likewise.
38739         (FUTEXFS_SUPER_MAGIC): Likewise.
38740         (HOSTFS_SUPER_MAGIC): Likewise.
38741         (HUGETLBFS_MAGIC): Likewise.
38742         (MINIX3_SUPER_MAGIC): Likewise.
38743         (MTD_INODE_FS_MAGIC): Likewise.
38744         (NILFS_SUPER_MAGIC): Likewise.
38745         (OPENPROM_SUPER_MAGIC): Likewise.
38746         (PIPEFS_MAGIC): Likewise.
38747         (PSTOREFS_MAGIC): Likewise.
38748         (QNX6_SUPER_MAGIC): Likewise.
38749         (RAMFS_MAGIC): Likewise.
38750         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38751         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38752         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38753         (SECURITYFS_MAGIC): Likewise.
38754         (SELINUX_MAGIC): Likewise.
38755         (SMACK_MAGIC): Likewise.
38756         (SOCKFS_MAGIC): Likewise.
38757         (SQUASHFS_MAGIC): Likewise.
38758         (STACK_END_MAGIC): Likewise.
38759         (TMPFS_MAGIC): Likewise.
38760         (USBDEVICE_SUPER_MAGIC): Likewise.
38761         (V9FS_MAGIC): Likewise.
38762         (XENFS_SUPER_MAGIC): Likewise.
38763         (CRAMFS_MAGIC): Fix typo in comment.
38764         (EXT2_SUPER_MAGIC): Update comment.
38765         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38766
38767 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38768
38769         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38770         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38771         * sysdeps/unix/sysv/linux/arm: Move directory from
38772         ports/sysdeps/unix/sysv/linux/arm.
38773         * README: Update listing for arm-*-linux-gnueabi.
38774
38775         * README: Remove mention of am33.
38776
38777 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38778
38779         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38780         than the comma operator, to avoid "rhs of comma has no effect"
38781         compiler warnings.
38782         (__sigfillset, __sigandset, __sigorset): Likewise.
38783         * include/signal.h (__sigemptyset): Likewise.
38784         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38785
38786 2014-02-07  Allan McRae  <allan@archlinux.org>
38787
38788         * version.h (RELEASE): Set to "development".
38789         (VERSION): Set to "2.19.90"
38790         * NEWS: Add 2.20 section.
38791
38792 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38793
38794         [BZ #16529]
38795         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38796
38797 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38798
38799         * manual/contrib.texi: Update entry for Carlos O'Donell,
38800         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38801
38802 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38803
38804         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38805
38806         * sysdeps/unix/sysv/linux/kernel-features.h
38807         [__LINUX_KERNEL_VERSION >= 0x020621]
38808         (__ASSUME_PROC_PID_TASK_COMM): Define.
38809
38810 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38811
38812         [BZ #16398]
38813         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38814         conversion when destination buffer does not have enough space.
38815         * libio/tst-ftell-partial-wide.c: New test case.
38816         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38817
38818         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38819         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38820         Leonard and Allan McRae.
38821
38822 2014-02-04  David S. Miller  <davem@davemloft.net>
38823
38824         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38825         32-bit.
38826
38827 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38828
38829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38830         New file
38831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38832         New file
38833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38834         New file.
38835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38836         New file.
38837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38838         New file.
38839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38840         New file.
38841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38842         New file.
38843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38844         New file.
38845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38846         New file.
38847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38848         New file.
38849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38850         New file.
38851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38852         New file.
38853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38854         New file.
38855
38856 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38857
38858         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38859         * shlib-versions: Likewise.
38860
38861 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38862             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38863
38864         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38865         (abilist-pattern): New variable, set to %-le.abilist.
38866
38867         * Makerules (abilist-pattern): New variable.
38868         (vpath): Use $(abilist-pattern) in place of %.abilist.
38869         (check-abi-% pattern rule): Likewise.
38870         (check-abi, update-abi): Likewise.
38871
38872 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38873
38874         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38875
38876 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38877
38878         * manual/startup.texi: Add next, previous, and top entries for
38879         the `Program Arguments' and `Environment Variables' nodes.
38880
38881 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38882
38883         * manual/macros.texi: Add comments before MTASC-safety macros.
38884
38885         * manual/users.texi: Document MTASC-safety properties.
38886
38887         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38888         (pthread_getspecific, pthread_setspecific): Format with
38889         @deftypefun, and add @safety note.
38890         * manual/signal.texi: Move comments that analyze the above
38891         functions to their home place.
38892
38893 2014-02-03  Allan McRae  <allan@archlinux.org>
38894
38895         * po/sl.po: Update Slovenian translation from translation project.
38896
38897 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38898
38899         * manual/time.texi (timegm): Add missing blank after @c.
38900         Reported by Joseph Myers <joseph@codesourcery.com>.
38901
38902 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38903
38904         * manual/check-safety.sh: New.
38905         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38906
38907         * manual/terminal.texi: Document MTASC-safety properties.
38908
38909         * manual/filesys.texi: Document MTASC-safety properties.
38910
38911         * manual/errno.texi: Document MTASC-safety properties.
38912
38913         * manual/intro.texi: Document safety identifiers and
38914         conditionals.
38915
38916         * manual/string.texi (wcstok): Fix prototype.
38917         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38918
38919         * manual/time.texi: Document MTASC-safety properties.
38920
38921         * manual/string.texi: Document MTASC-safety properties.
38922
38923         * manual/threads.texi: Document MTASC-safety properties.
38924
38925         * manual/stdio.texi: Document MTASC-safety properties.
38926
38927         * manual/syslog.texi: Document MTASC-safety properties.
38928
38929         * manual/sysinfo.texi: Document MTASC-safety properties.
38930
38931         * manual/startup.texi: Document MTASC-safety properties.
38932
38933         * manual/socket.texi: Document MTASC-safety properties.
38934
38935         * manual/signal.texi: Document MTASC-safety properties.
38936
38937 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38938
38939         * manual/setjmp.texi: Document MTASC-safety properties.
38940
38941         * manual/search.texi: Document MTASC-safety properties.
38942
38943         * manual/resource.texi: Document MTASC-safety properties.
38944
38945         * manual/process.texi: Document MTASC-safety properties.
38946
38947         * manual/platform.texi: Document MTASC-safety properties.
38948
38949         * manual/pipe.texi: Document MTASC-safety properties.
38950
38951         * manual/pattern.texi: Document MTASC-safety properties.
38952
38953         * manual/message.texi: Document MTASC-safety properties.
38954
38955         [BZ #12751]
38956         * manual/memory.texi: Document MTASC-safety properties.
38957
38958         * manual/math.texi: Document MTASC-safety properties.
38959
38960         * manual/locale.texi: Document MTASC-safety properties.
38961
38962         * manual/llio.texi: Document MTASC-safety properties.
38963
38964         * manual/libdl.texi: New.
38965
38966         * manual/lang.texi: Document MTASC-safety properties.
38967
38968         * manual/job.texi: Document MTASC-safety properties.
38969
38970         * manual/getopt.texi: Document MTASC-safety properties.
38971
38972         * manual/ctype.texi: Document MTASC-safety properties.
38973
38974 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38975
38976         [BZ #16046]
38977         * csu/libc-tls.c (static_map): Remove variable.
38978         (__libc_setup_tls): Use main executable's link map for TLS data.
38979         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38980         casing for LM_ID_BASE and GL(dl_nns).
38981         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38982         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38983         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38984         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38985         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38986         member.
38987         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38988         l_phnum members.
38989
38990 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38991
38992         * manual/debug.texi: Document MTASC-safety properties.
38993
38994 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38995
38996         [BZ #16510]
38997         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38998         of __x86_64__ when disabling x87 inline functions.
38999
39000 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
39001
39002         * manual/charset.texi: Document MTASC-safety properties.
39003
39004         * manual/crypt.texi: Document MTASC-safety properties.
39005
39006         * manual/conf.texi: Document MTASC-safety properties.
39007
39008         * manual/arith.texi: Document MTASC-safety properties.
39009
39010         * manual/argp.texi: Document MTASC-safety properties.
39011
39012         * manual/macros.texi: Introduce macros to document multi
39013         thread, asynchronous signal and asynchronous cancellation
39014         safety properties.
39015         * manual/intro.texi: Introduce the properties themselves.
39016
39017 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39018
39019         * sysdeps/sh/sh4/Makefile: New file.
39020
39021 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
39022
39023         * math/gen-libm-test.pl ($srcdir): New variable.
39024         ($auto_input): Use it.
39025
39026 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
39027
39028         [BZ #16506]
39029         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
39030         access beyond array bounds when parsing netgroups file.
39031
39032         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
39033         the old buffer before realloc.
39034
39035 2014-01-27  Allan McRae  <allan@archlinux.org>
39036
39037         * po/fr.po: Update French translation from translation project.
39038
39039 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39040
39041         * sysdeps/sh/libm-test-ulps: Regenerate.
39042
39043 2014-01-24  David S. Miller  <davem@davemloft.net>
39044
39045         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
39046
39047 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39048
39049         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
39050         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
39051
39052 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
39053
39054         [BZ #16474]
39055         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
39056         string pointers after reallocation.
39057
39058 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39059
39060         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
39061         __SH4A__ instead of __SH_FPU_ANY__.
39062
39063 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39064
39065         * sysdeps/sh/fpu_control.h: New file.
39066         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
39067         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
39068         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
39069         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
39070         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
39071         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
39072         * sysdeps/sh/sys/ucontext.h: Remove.
39073         * sysdeps/sh/sys: Remove directory.
39074
39075 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39076
39077         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
39078         s390/sys/ucontext.h.
39079         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
39080         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
39081
39082 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
39083
39084         [BZ #15605]
39085         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
39086
39087 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39088
39089         [BZ#16431]
39090         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
39091         Adjust the vDSO correctly for internal calls.
39092         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
39093
39094 2014-01-20  Allan McRae  <allan@archlinux.org>
39095
39096         * po/ca.po: Update Catalan translation from translation project.
39097
39098 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
39099
39100         * sysdeps/s390/sotruss-lib.c: New file.
39101
39102 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39103
39104         [BZ#16430]
39105         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
39106         (__GI___gettimeofday): Alias for a different internal symbol to avoid
39107         local calls issues by not having a PLT stub required for IFUNC calls.
39108         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
39109
39110 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
39111
39112         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
39113         * math/test-fpucw-static.c: Likewise.
39114
39115 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39116
39117         [BZ #16453]
39118         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
39119
39120 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39121
39122         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
39123         implementation for powerpc.
39124
39125 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
39126
39127         [BZ #14782]
39128         * sysdeps/posix/system.c (__libc_system): Do not enable
39129         asynchronous cancellation.
39130
39131 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39132
39133         [BZ #16427]
39134         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
39135         handling only for numbers special also in the IEEE case.
39136
39137 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39138
39139         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
39140
39141 2014-01-11  Allan McRae  <allan@archlinux.org>
39142
39143         * po/bg.po: Update Bulgarian translation from translation project.
39144
39145         * po/de.po: Update German translation from translation project.
39146
39147 2014-01-10  Roland McGrath  <roland@hack.frob.com>
39148
39149         * sysdeps/generic/gcc-compat.h: New file.
39150
39151 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
39152
39153         * benchtests/asin-inputs: Correct slow inputs.
39154         * benchtests/acos-inputs: Likewise.
39155
39156 2014-01-10  Allan McRae  <allan@archlinux.org>
39157
39158         * po:sv.po: Update Swedish translation from translation project.
39159
39160         * po/vi.po: Update Vietnamese translation from translation project.
39161
39162         * po/eo.po: Update Esperanto translation from translation project.
39163
39164         * po/cs.po: Update Czech translation from translation project.
39165
39166         * po/nl.po: Update Dutch translation from translation project.
39167
39168         * po/pl.po: Update Polish translation from translation project.
39169
39170         * po/ru.po: Update Russian translation from translation project.
39171
39172         * po/uk.po: Update Ukrainian translation from translation project.
39173
39174 2014-01-08  Brooks Moses  <bmoses@google.com>
39175
39176         * elf/dl-load.c: Fix comment typo.
39177
39178 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
39179
39180         * po/header.pot: Rename to...
39181         * po/pot.header: ... this.
39182         * po/Makefile: Use pot.header.
39183
39184 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
39185             Maxim Kuvyrkov  <maxim@kugelworks.com>
39186
39187         [BZ #16394]
39188         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
39189         SRC and DEST against LEN.
39190
39191 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39192
39193         [BZ #16414]
39194         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
39195         implementation.
39196         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
39197
39198 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39199
39200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39201
39202 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
39203
39204         [BZ #16408]
39205         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
39206         for large positive arguments.
39207
39208 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
39209
39210         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39211
39212         * math/auto-libm-test-in: Mark various tests with
39213         xfail-rounding:ldbl-128ibm.
39214         * math/auto-libm-test-out: Regenerated.
39215
39216         [BZ #16407]
39217         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
39218         Increase overflow threshold.
39219
39220 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
39221
39222         [BZ #14286]
39223         * stdio-common/vfprintf.c: Check for integer overflow.
39224
39225 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39226
39227         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
39228         the first argument and return value of __tls_get_addr_internal.
39229
39230 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39231
39232         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
39233         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
39234
39235 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39236
39237         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
39238         * sysdeps/s390/rtld-global-offsets.sym: New file.
39239         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
39240         GLIBC_2.19 symbol.
39241         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
39242         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
39243         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
39244         ... this.
39245         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
39246         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
39247         ... this.
39248         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39249         Regenerate.
39250         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39251         Regenerate.
39252         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
39253         halfs of GPRs for high_gprs contexts.
39254         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
39255         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
39256         field.
39257         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
39258         uc_flags field.
39259         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
39260         64 bit versions:
39261         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
39262         for high GPRs (uc_high_gprs) and for future extensions
39263         (__reserved).
39264         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
39265         for future extensions (__reserved).
39266         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
39267         64 bit versions:
39268         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
39269         SC_HIGHGPRS offset definition.
39270         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
39271         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
39272
39273         * Versions.def: Add GLIBC_2.19 for libpthread.
39274         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
39275         siglongjmp for libpthread with GLIBC_2.19 symver.
39276         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
39277         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
39278         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
39279         * sysdeps/s390/__longjmp.c: New file.
39280         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
39281         * sysdeps/s390/longjmp.c: New file.
39282         * sysdeps/s390/setjmp.S: New file.
39283         * sysdeps/s390/sigjmp.S: New file.
39284         * sysdeps/s390/v1-longjmp.c: New file.
39285         * sysdeps/s390/v1-setjmp.h: New file.
39286         * sysdeps/s390/v1-sigjmp.c: New file.
39287         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
39288         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
39289         GLIBC_2.19 version.
39290         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
39291         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
39292         versioned symbols for ____longjmp_chk.
39293         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
39294         Likewise.
39295         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39296         Regenerate.
39297         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
39298         Regenerate.
39299         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39300         Regenerate.
39301         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
39302         Regenerate.
39303         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
39304         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
39305         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
39306         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
39307         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
39308         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
39309         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
39310         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
39311         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
39312         * sysdeps/s390/rtld-__longjmp.c: New file.
39313         * sysdeps/s390/rtld-setjmp.S: New file.
39314
39315 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
39316
39317         [BZ #16400]
39318         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39319         Return -__logl (x) for small positive arguments without evaluating
39320         a polynomial.
39321
39322 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
39323
39324         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
39325         Rename to ...
39326         (__ptrace_peeksiginfo_args): ... this.
39327         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
39328         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
39329         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
39330
39331 2014-01-06  Allan McRae  <allan@archlinux.org>
39332
39333         * inet/netinet/in.h: Fix typo in comment.
39334
39335 2014-01-05  Andreas Jaeger  <aj@suse.de>
39336
39337         * sysdeps/i386/fpu/libm-test-ulps: Update.
39338
39339 2014-01-05  Allan McRae  <allan@archlinux.org>
39340
39341         * po/libc.pot: Regenerated.
39342
39343         * malloc/memusagestat.c: Fix gettext call formatting.
39344
39345 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
39346
39347         * nscd/nscd.c: Improve usage() output.
39348
39349 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
39350
39351         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
39352         * sysdeps/unix/sysv/linux/configure: Regenerated.
39353         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
39354         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
39355
39356 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39357
39358         [BZ #16390]
39359         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
39360         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
39361
39362 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39363
39364         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39365         extra tokens at end of #undef directive.
39366         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39367         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39368         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39369
39370 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39371
39372         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39373
39374         * math/auto-libm-test-in: Mark various tests with
39375         xfail-rounding:ldbl-128ibm.
39376         * math/auto-libm-test-out: Regenerated.
39377
39378 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39379
39380         [BZ #16386]
39381         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39382         numbers with subnormal high part when calculating exponent.
39383
39384         [BZ #16385]
39385         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39386         fabs.
39387
39388         [BZ #16384]
39389         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39390         M_LN2l.
39391         (__ieee754_acoshl): Use __log1pl not __log1p.
39392
39393 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39394
39395         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39396         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39397         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39398         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39399         (reused_arena, arena_get2): Convert to GNU style.
39400         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39401         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39402         (memalign_check, __malloc_set_state): Likewise.
39403         * malloc/mallocbug.c (main): Likewise.
39404         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39405         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39406         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39407         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39408         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39409         (__posix_memalign, malloc_info): Likewise.
39410         * malloc/malloc.h: Likewise.
39411         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39412         (mallochook, memalignhook, reallochook, mabort): Likewise.
39413         * malloc/mcheck.h: Likewise.
39414         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39415         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39416         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39417         * malloc/morecore.c (__default_morecore): Likewise.
39418         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39419         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39420         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39421         (print_and_abort): Likewise.
39422         * malloc/obstack.h: Likewise.
39423         * malloc/set-freeres.c (__libc_freeres): Likewise.
39424         * malloc/tst-mallocstate.c (main): Likewise.
39425         * malloc/tst-mtrace.c (main): Likewise.
39426         * malloc/tst-realloc.c (do_test): Likewise.
39427
39428 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39429
39430         [BZ #16366]
39431         * nscd/netgroupcache.c (do_notfound): New function.
39432         (addgetnetgrentX): Use it.
39433
39434         [BZ # 16365]
39435         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39436         NSS_STATUS_NOTFOUND.
39437
39438 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39439
39440         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39442
39443 2014-01-01  Allan McRae  <allan@archlinux.org>
39444
39445         * scripts/update-copyrights: Update configure input file suffix.
39446
39447         * NEWS: Update copyright year.
39448         * catgets/gencat.c: Likewise.
39449         * csu/version.c: Likewise.
39450         * debug/catchsegv.sh: Likewise.
39451         * debug/pcprofiledump.c: Likewise.
39452         * debug/xtrace.sh: Likewise.
39453         * elf/ldconfig.c: Likewise.
39454         * elf/ldd.bash.in: Likewise.
39455         * elf/pldd.c: Likewise.
39456         * elf/sotruss.ksh: Likewise.
39457         * elf/sprof.c: Likewise.
39458         * iconv/iconv_prog.c: Likewise.
39459         * iconv/iconvconfig.c: Likewise.
39460         * locale/programs/locale.c: Likewise.
39461         * locale/programs/localedef.c: Likewise.
39462         * login/programs/pt_chown.c: Likewise.
39463         * malloc/memusage.sh: Likewise.
39464         * malloc/memusagestat.c: Likewise.
39465         * malloc/mtrace.pl: Likewise.
39466         * manual/libc.texinfo: Likewise.
39467         * nscd/nscd.c: Likewise.
39468         * nss/getent.c: Likewise.
39469         * nss/makedb.c: Likewise.
39470         * posix/getconf.c: Likewise.
39471         * scripts/test-installation.pl: Likewise.
39472
39473         * All files with FSF copyright notices: Update copyright dates
39474         using scripts/update-copyrights.
39475         * intl/plural.c: Regenerated.
39476         * locale/programs/charmap-kw.h: Likewise.
39477         * locale/programs/locfile-kw.h: Likewise.
39478
39479 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39480
39481         * sysdeps/unix/sysv/linux/configure: Regenerated.
39482         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39483         the linux/fanotify.h header.
39484         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39485         HAVE_LINUX_FANOTIFY_H is defined.
39486
39487 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39488
39489         * benchtests/cos-inputs: New inputs.
39490         * benchtests/sin-inputs: Likewise.
39491
39492         * benchtests/atan-inputs: New inputs. Fix name of multiple
39493         precision fallback inputs.
39494
39495         * benchtests/atanh-inputs: New inputs.
39496         * benchtests/tanh-inputs: Likewise.
39497
39498         * benchtests/acosh-inputs: New inputs.
39499         * benchtests/asinh-inputs: Likewise.
39500
39501         * benchtests/cosh-inputs: New inputs.
39502         * benchtests/sinh-inputs: Likewise.
39503
39504         * benchtests/acos-inputs: Add more inputs.
39505         * benchtests/asin-inputs: Likewise.
39506
39507 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39508
39509         [BZ #16375]
39510         * manual/arith.texi: Fix spelling.
39511         * manual/charset.texi: Likewise.
39512         * manual/errno.texi: Likewise.
39513         * manual/filesys.texi: Likewise.
39514         * manual/lang.texi: Likewise.
39515         * manual/llio.texi: Likewise.
39516         * manual/locale.texi: Likewise.
39517         * manual/message.texi: Likewise.
39518         * manual/resource.texi: Likewise.
39519         * manual/search.texi: Likewise.
39520         * manual/setjmp.texi: Likewise.
39521         * manual/stdio.texi: Likewise.
39522         * manual/string.texi: Likewise.
39523         * manual/sysinfo.texi: Likewise.
39524         * manual/time.texi: Likewise.
39525
39526 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39527
39528         * po/sl.po: New file.
39529
39530 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39531
39532         * .gitignore: Add core/.gdbinit/.gdb_history.
39533
39534 2013-12-27  Allan McRae  <allan@archlinux.org>
39535
39536         [BZ #16369]
39537         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39538         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39539
39540 2013-12-24  Brooks Moses  <bmoses@google.com>
39541
39542         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39543         all compilers that claim C++98 compliance, not just GCC.
39544         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39545         Likewise.
39546
39547 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39548
39549         * NEWS: Restore accidentally deleted bug-fix entries.
39550
39551 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39552             Ondřej Bílka  <neleai@seznam.cz>
39553
39554         [BZ #15073]
39555         * malloc/malloc.c (_int_free): Perform sanity check only if we
39556         have_lock.
39557
39558 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39559
39560         [BZ #12986]
39561         * manual/stdio.texi (String Input Conversions): Clarify that character
39562         classes are not supported.
39563
39564 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39565
39566         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39567
39568 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39569
39570         [BZ #16337]
39571         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39572         Calculate results for small negative arguments directly rather
39573         than using reflection formula with special underflow handling.
39574
39575         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39576         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39577         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39578         (fchflags): Likewise.
39579         (revoke): Likewise.
39580         (setlogin): Likewise.
39581         (sigaltstack): Likewise.
39582         (wait4): Likewise.
39583         (sigblock): Remove.
39584         (sigsetmask): Likewise.
39585         (wait3): Likewise.
39586         (waitpid): Likewise.
39587         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39588         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39589         file.
39590         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39591         * sysdeps/unix/bsd/Makefile: ... here.
39592         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39593         * sysdeps/unix/bsd/Versions: ... here.
39594         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39595         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39596         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39597         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39598         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39599         * sysdeps/unix/bsd/sigblock.c: ... here.
39600         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39601         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39602         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39603         * sysdeps/unix/bsd/sigvec.c: ... here.
39604         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39605         * sysdeps/unix/bsd/tcdrain.c: ... here.
39606         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39607         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39608         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39609         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39610         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39611         * sysdeps/unix/bsd/wait.c: ... here.
39612         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39613         * sysdeps/unix/bsd/wait3.c: ... here.
39614         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39615         * sysdeps/unix/bsd/waitpid.c: ... here.
39616
39617 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39618
39619         [BZ #16356]
39620         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39621         round-to-nearest for [!USE_AS_EXPM1L].
39622         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39623         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39624         more tests of exp and exp10.  Expect some exp10 tests to miss
39625         exceptions or fail in directed rounding modes.
39626         * math/auto-libm-test-out: Regenerated.
39627         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39628         (exp10_test_tonearest): New function.
39629         (exp10_towardzero_test_data): New array.
39630         (exp10_test_towardzero): New function.
39631         (exp10_downward_test_data): New array.
39632         (exp10_test_downward): New function.
39633         (exp10_upward_test_data): New array.
39634         (exp10_test_upward): New function.
39635         (main): Call the new functions.
39636         * sysdeps/i386/fpu/libm-test-ulps: Update.
39637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39638
39639 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39640
39641         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39642         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39643         * math/auto-libm-test-out: Regenerated.
39644         * math/libm-test.inc (acosh_test_data): Add more tests.
39645         (atanh_test_data): Likewise.
39646         (ceil_test_data): Likewise.
39647         (copysign_test_data): Likewise.
39648         * sysdeps/i386/fpu/libm-test-ulps: Update.
39649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39650
39651         * timezone/checktab.awk: Update from tzcode 2013i.
39652         * timezone/private.h: Likewise.
39653         * timezone/scheck.c: Likewise.
39654         * timezone/tzfile.h: Likewise.
39655         * timezone/tzselect.ksh: Likewise.
39656         * timezone/zdump.c: Likewise.
39657         * timezone/zic.c: Likewise.
39658
39659         * math/auto-libm-test-in: Add tests of cpow.
39660         * math/auto-libm-test-out: Regenerated.
39661         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39662         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39663         mpc_cc_c.
39664         (func_calc_desc): Add mpc_cc_c union field.
39665         (test_functions): Add cpow.
39666         (special_fill_2pi): New function.
39667         (special_real_inputs): Add 2pi.
39668         (calc_generic_results): Handle mpc_cc_c.
39669         * sysdeps/i386/fpu/libm-test-ulps: Update.
39670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39671
39672         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39673         csqrt, ctan and ctanh.
39674         * math/auto-libm-test-out: Regenerated.
39675         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39676         (TEST_COND_x86): Likewise.
39677         (ccos_test_data): Use AUTO_TESTS_c_c.
39678         (ccosh_test_data): Likewise.
39679         (cexp_test_data): Likewise.
39680         (clog_test_data): Likewise.
39681         (csqrt_test_data): Likewise.
39682         (ctan_test_data): Likewise.
39683         (ctan_tonearest_test_data): Likewise.
39684         (ctan_towardzero_test_data): Likewise.
39685         (ctan_downward_test_data): Likewise.
39686         (ctan_upward_test_data): Likewise.
39687         (ctanh_test_data): Likewise.
39688         (ctanh_tonearest_test_data): Likewise.
39689         (ctanh_towardzero_test_data): Likewise.
39690         (ctanh_downward_test_data): Likewise.
39691         (ctanh_upward_test_data): Likewise.
39692         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39693         mpc_c_c.
39694         (func_calc_desc): Add mpc_c_c union field.
39695         (FUNC_mpc_c_c): New macro.
39696         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39697         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39698         ctanh.
39699         (special_fill_min_subnorm_p120): New function.
39700         (special_real_inputs): Add min_subnorm_p120.
39701         (calc_generic_results): Handle mpc_c_c.
39702         * sysdeps/i386/fpu/libm-test-ulps: Update.
39703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39704
39705 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39706
39707         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39708         (do_sin_slow): New functions.
39709         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39710         (cslow2, csloww1, csloww2): Use the new functions.
39711
39712         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39713         Use M to change sign of result instead of X.  Assume X is
39714         positive.
39715         (csloww1): Likewise.
39716         (__sin): Adjust.
39717         (__cos): Adjust.
39718
39719         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39720         arguments A and DA.
39721         (__sin): Adjust.
39722         (__cos): Likewise.
39723
39724         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39725         (__cos): Likewise.
39726         (sloww1): Don't adjust sign of DX.
39727         (csloww1): Likewise.
39728         (sloww2): Use X directly and don't adjust sign of DX.
39729         (csloww2): Likewise.
39730
39731 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39732
39733         * math/auto-libm-test-in: Add tests of cabs and carg.
39734         * math/auto-libm-test-out: Regenerated.
39735         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39736         (carg_test_data): Likewise.
39737         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39738         mpc_c_f.
39739         (func_calc_desc): Add mpc_c_f union field.
39740         (test_functions): Add cabs and carg.
39741         (calc_generic_results): Handle mpc_c_f.
39742
39743         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39744         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39745         as a macro and a compat symbol.
39746         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39747         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39748         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39749         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39750         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39751         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39752         not use .hidden.
39753         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39754         Likewise.
39755         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39756         Likewise.
39757         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39758         Likewise.
39759         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39760         Likewise.
39761         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39762         Likewise.
39763         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39764         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39765         from GLIBC_2.3.2.
39766
39767 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39768
39769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39770
39771 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39772
39773         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39774         trailing whitespace removed.
39775         * scripts/config.guess: Update to version 2013-11-29.
39776         * scripts/config.sub: Update to version 2013-10-01.
39777
39778         * math/auto-libm-test-in: Add tests of sincos.
39779         * math/auto-libm-test-out: Regenerated.
39780         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39781         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39782         mpfr_f_11.
39783         (func_calc_desc): Add mpfr_f_11 union field.
39784         (test_functions): Add sincos.
39785         (calc_generic_results): Handle mpfr_f_11.
39786         * sysdeps/i386/fpu/libm-test-ulps: Update.
39787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39788
39789 2013-12-19  Andreas Schwab  <schwab@suse.de>
39790
39791         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39792         CALL_MCOUNT.
39793         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39794         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39795         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39796
39797 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39798
39799         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39800         * sysdeps/i386/fpu/libm-test-ulps: Update.
39801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39802
39803         [BZ #16293]
39804         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39805         round-to-nearest mode when using frndint.
39806         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39807         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39808         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39809         Likewise.
39810         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39811         sinh test to fail.
39812         * math/auto-libm-test-out: Regenerated.
39813         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39814         (TEST_COND_x86): Likewise.
39815         (expm1_tonearest_test_data): New array.
39816         (expm1_test_tonearest): New function.
39817         (expm1_towardzero_test_data): New array.
39818         (expm1_test_towardzero): New function.
39819         (expm1_downward_test_data): New array.
39820         (expm1_test_downward): New function.
39821         (expm1_upward_test_data): New array.
39822         (expm1_test_upward): New function.
39823         (main): Run the new test functions.
39824         * sysdeps/i386/fpu/libm-test-ulps: Update.
39825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39826
39827         * include/features.h: Update comment documenting feature test
39828         macros.  Mention _DEFAULT_SOURCE in comment.
39829         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39830         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39831         _BSD_SOURCE and _SVID_SOURCE.
39832         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39833         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39834         !_SVID_SOURCE]: Likewise.
39835         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39836         (__USE_POSIX_IMPLICITLY): Define.
39837         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39838         (_POSIX_SOURCE): Undefine and redefine.
39839         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39840         (_POSIX_C_SOURCE): Likewise.
39841         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39842         (Feature Test Macros): Update documentation of default features.
39843
39844 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39845
39846         * benchtests/Makefile: Add bench-strtok.
39847         * benchtests/bench-strtok.c: New file: strtok benchtest.
39848
39849 2013-12-19  Allan McRae  <allan@archlinux.org>
39850
39851         * manual/install.texi: Suppress menu for plain text output.
39852         * INSTALL: Regenerated.
39853
39854 2013-12-18  Brooks Moses  <bmoses@google.com>
39855
39856         [BZ #15846]
39857         * misc/getauxval.c: Include errno.h.
39858         (__getauxval): Set errno to ENOENT if the requested type is not
39859         found.
39860         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39861         don't declare with __attribute_const__.
39862         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39863         * manual/startup.texi: Document that getauxval sets errno.
39864
39865 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39866
39867         * math/auto-libm-test-in: Add tests of jn and yn.
39868         * math/auto-libm-test-out: Regenerated.
39869         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39870         (yn_test_data): Likewise.
39871         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39872         mpfr_if_f.
39873         (func_calc_desc): Add mpfr_if_f union field.
39874         (FUNC_mpfr_if_f): New macro.
39875         (test_functions): Add jn and yn.
39876         (calc_generic_results): Assert type of second input for
39877         mpfr_ff_f.  Handle mpfr_if_f.
39878         (output_for_one_input_case): Disable all checking for arguments
39879         fitting floating-point types in case of an integer argument.
39880         * sysdeps/i386/fpu/libm-test-ulps: Update.
39881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39882
39883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39884         Don't expect fegetround reference in libm.so.
39885
39886 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39887
39888         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39889         $(config-cflags-nofma).
39890
39891 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39892
39893         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39894         * math/auto-libm-test-out: Regenerated.
39895
39896         [BZ #16338]
39897         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39898         to determine exponent and adjust argument to have exponent of -1.
39899         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39900         log2.
39901         * math/auto-libm-test-out: Regenerated.
39902         * sysdeps/i386/fpu/libm-test-ulps: Update.
39903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39904
39905 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39906
39907         * manual/probes.texi: Remove cases when per-thread arenas are
39908         disabled.
39909
39910 2013-12-18  Andreas Schwab  <schwab@suse.de>
39911
39912         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39913         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39914         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39915         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39916         * sysdeps/i386/i686/multiarch/Makefile: Update.
39917         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39918
39919 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39920
39921         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39922         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39923
39924 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39925
39926         [BZ #15968]
39927         Support TZ transition times < 00:00:00.
39928         This is needed for version-3 tz-format files; it supports time
39929         stamps past 2037 for America/Godthab (the only entry in the tz
39930         database for which this change is relevant).
39931         * manual/time.texi (TZ Variable): Document transition times
39932         from -167:59:59 through -00:00:01.
39933         * time/tzset.c (tz_rule): Time of day is now signed.
39934         (__tzset_parse_tz): Parse negative time of day.
39935
39936         Document TZ transition times >= 25:00:00.
39937         * manual/time.texi (TZ Variable): Document transition times from
39938         25:00:00 through 167:59:59.  These are already supported, and this
39939         support will help with version-3 tz-format files.
39940
39941         * manual/time.texi (TZ Variable): Modernize North America example
39942         to reflect current (i.e., 2007-and-later) daylight saving rules.
39943
39944         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39945
39946 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39947
39948         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39949         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39950         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39951         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39952         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39953         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39954         * sysdeps/unix/bsd/clock.c: Likewise.
39955         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39956         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39957         * sysdeps/unix/bsd/init-posix.c: Likewise.
39958         * sysdeps/unix/bsd/poll.c: Likewise.
39959         * sysdeps/unix/bsd/ptsname.c: Likewise.
39960         * sysdeps/unix/bsd/seekdir.c: Likewise.
39961         * sysdeps/unix/bsd/setegid.c: Likewise.
39962         * sysdeps/unix/bsd/seteuid.c: Likewise.
39963         * sysdeps/unix/bsd/setgid.c: Likewise.
39964         * sysdeps/unix/bsd/setrgid.c: Likewise.
39965         * sysdeps/unix/bsd/setruid.c: Likewise.
39966         * sysdeps/unix/bsd/setsid.c: Likewise.
39967         * sysdeps/unix/bsd/setuid.c: Likewise.
39968         * sysdeps/unix/bsd/sigaction.c: Likewise.
39969         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39970         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39971         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39972         * sysdeps/unix/bsd/telldir.c: Likewise.
39973         * sysdeps/unix/bsd/times.c: Likewise.
39974         * sysdeps/unix/bsd/usleep.c: Likewise.
39975
39976         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39977         ($(objpfx)libbsd-compat.a): Remove rule.
39978
39979         * include/features.h (__FAVOR_BSD): Do not define.
39980         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39981         features conflicting with POSIX.
39982         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39983         (_BSD_SOURCE): Remove description of not being a subset of other
39984         feature test macros.
39985         * manual/job.texi (getpgrp): Do not document BSD version.
39986         (getpgid): Do not document by reference to BSD getpgrp.
39987         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39988         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39989         * signal/signal.h [__FAVOR_BSD]: Likewise.
39990         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39991         instead of making contents conditional on [__FAVOR_BSD].
39992         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39993
39994 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39995
39996         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39997
39998 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39999
40000         [BZ #16314]
40001         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
40002         values below 2**-450, not 2**-500.
40003         * math/auto-libm-test-in: Don't allow spurious underflow from
40004         hypot.
40005         * math/auto-libm-test-out: Regenerated.
40006
40007         [BZ #16316]
40008         [BZ #16330]
40009         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
40010         values of ha and hb and sort them after adjusting subnormal
40011         arguments.
40012         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
40013         Likewise.
40014         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
40015         values of ea and eb and sort them after adjusting subnormal
40016         arguments.
40017         * math/auto-libm-test-in: Do not expect some hypot tests of
40018         subnormals to fail.  Add more hypot tests.
40019         * math/auto-libm-test-out: Regenerated.
40020
40021 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40022
40023         [BZ #13304]
40024         * sysdeps/sh/s_fma.c: New file.
40025         * sysdeps/sh/s_fmaf.c: New file.
40026         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
40027         version.
40028         * sysdeps/sh/Implies: Add sh/soft-fp.
40029
40030 2013-12-16  Roland McGrath  <roland@hack.frob.com>
40031
40032         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
40033         level of indirection to members `objname', `errstring', `malloced'.
40034         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
40035         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
40036         it as the __longjmp argument (just pass 1 instead).
40037         (_dl_catch_error): Initialize C with argument pointers and address of
40038         volatile local ERRCODE rather than copying values out of C at return.
40039
40040 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
40041
40042         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
40043         * math/auto-libm-test-out: Regenerated.
40044         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
40045         (hypot_test_data): Likewise.
40046         (pow_test_data): Likewise.
40047         (pow_tonearest_test_data): Likewise.
40048         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40049         mpfr_ff_f.
40050         (func_calc_desc): Add mpfr_ff_f union field.
40051         (FUNC_mpfr_ff_f): New macro.
40052         (test_functions): Add atan2, hypot and pow.
40053         (special_fill_min): New function.
40054         (special_fill_minus_min): Likewise.
40055         (special_fill_min_subnorm): Likewise.
40056         (special_fill_minus_min_subnorm): Likewise.
40057         (special_real_inputs): Add min, -min, min_subnorm and
40058         -min_subnorm.
40059         (calc_generic_results): Handle mpfr_ff_f.
40060         * sysdeps/i386/fpu/libm-test-ulps: Update.
40061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40062
40063 2013-12-16  Will Newton  <will.newton@linaro.org>
40064
40065         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
40066         (Aligned Memory Blocks): Add documentation for aligned_alloc
40067         and suggest it as an alternative to posix_memalign.
40068         (Hooks for Malloc): Document __memalign_hook is also called
40069         for aligned_alloc.  (Summary of Malloc): Add summary for
40070         aligned alloc.  Document __memalign_hook is also called
40071         for aligned_alloc.
40072
40073 2013-12-16  Will Newton  <will.newton@linaro.org>
40074
40075         * manual/memory.texi (Malloc Examples): Clarify default
40076         alignment documentation.  Suggest posix_memalign rather
40077         than memalign or valloc.
40078         (Aligned Memory Blocks): Remove suggestion to use memalign
40079         or valloc.  Remove obsolete comment about BSD.
40080         Document memalign errno values and mark the function obsolete.
40081         Document posix_memalign returned error codes.  Mark valloc
40082         as obsolete.  (Hooks for Malloc): __memalign_hook is also
40083         called for posix_memalign and valloc.
40084         (Summary of Malloc): Add posix_memalign to function summary.
40085         __memalign_hook is also called for posix_memalign and valloc.
40086
40087 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40088
40089         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
40090         TAYLOR_SIN.
40091         (__sin): Adjust.
40092         (__cos): Likewise.
40093         (sloww): Use mynumber union.  Expand ternary operator into
40094         if-else statements.
40095         (cslow): use mynumber union.
40096
40097 2013-12-16  Allan McRae  <allan@archlinux.org>
40098
40099         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
40100         * configure: Regenerated.
40101
40102         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
40103
40104         [BZ #14120]
40105         * configure.ac: Added --enable-maintainer-mode. Check for
40106         autoconf when enabled.
40107         * configure: Regenerated.
40108
40109         * nscd/nscd.service: New file.
40110         * nscd/nscd.tmpfiles: New file.
40111
40112 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
40113
40114         [BZ #12100]
40115         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
40116         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
40117         * sysdeps/x86_64/multiarch/strstr.c: ... here.
40118         (strstr): Add __strstr_sse2_unaligned ifunc.
40119         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
40120         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
40121         (strcasestr): Remove __strcasestr_sse42 ifunc.
40122         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
40123         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
40124         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
40125
40126 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40127
40128         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
40129         * sysdeps/sh/bits/fenv.h: ... here.
40130         * sysdeps/sh/sh4/fpu/bits: Remove directory.
40131
40132 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40133
40134         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
40135
40136         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
40137         hypotf multiarch implementations.
40138         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
40139         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
40140         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
40141         multiarch hypot for PPC64.
40142         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
40143         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
40144         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
40145         multiarch hypotf for PPC64.
40146
40147         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
40148         modff multiarch implementations.
40149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
40150         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
40151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
40152         multiarch modf for PPC64.
40153         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
40154         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
40155         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
40156         multiarch modff for PPC64.
40157
40158         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
40159         and logl multiarch implementations.
40160         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
40161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
40162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
40163         multiarch logb for PPC64.
40164         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
40165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
40166         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
40167         multiarch logb for PPC64.
40168         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
40169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
40170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
40171         multiarch logb for PPC64.
40172
40173         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
40174         isinff multiarch implementation.
40175         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
40176         file.
40177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
40178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
40179         multiarch isinf for PPC64.
40180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
40181         file.
40182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
40183         multiarch isinff for PPC64.
40184
40185         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
40186         finitef multiarch implementation.
40187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
40188         file.
40189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
40190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
40191         multiarch finite for PPC64.
40192         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
40193         file.
40194         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
40195         multiarch finitef for PPC64.
40196
40197         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
40198         lrint multiarch implementation.
40199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
40200         file.
40201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
40202         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
40203         multiarch llrint for PPC64.
40204         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
40205         multiarch lrint for PPC64.
40206
40207         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
40208         copysignf multiarch implementation.
40209         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
40210         file.
40211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
40212         file.
40213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
40214         multiarch copysign for PPC64.
40215         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
40216         multiarch copysignf for PPC64.
40217
40218         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
40219         multiarch implementation.
40220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
40221         file.
40222         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
40223         file.
40224         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
40225         file.
40226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
40227         file.
40228         multiarch llround for PPC64.
40229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
40230         multiarch trunc for PPC64.
40231         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
40232         multiarch truncf for PPC64.
40233
40234         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
40235         multiarch implementation.
40236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
40237         file.
40238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
40239         file.
40240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
40241         file.
40242         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
40243         file.
40244         multiarch llround for PPC64.
40245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
40246         multiarch round for PPC64.
40247         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
40248         multiarch roundf for PPC64.
40249
40250         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
40251         multiarch implementation.
40252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
40253         file.
40254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
40255         file.
40256         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
40257         file.
40258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
40259         file.
40260         multiarch llround for PPC64.
40261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
40262         multiarch floor for PPC64.
40263         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
40264         multiarch floorf for PPC64.
40265
40266         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
40267         multiarch implementation.
40268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
40269         file.
40270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
40271         file.
40272         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
40273         file.
40274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
40275         file.
40276         multiarch llround for PPC64.
40277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
40278         multiarch ceil for PPC64.
40279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
40280         multiarch ceilf for PPC64.
40281
40282         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40283         multiarch implementation.
40284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
40285         file.
40286         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
40287         file.
40288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
40289         file.
40290         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
40291         multiarch llround for PPC64.
40292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
40293         multiarch lround for PPC64.
40294
40295         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40296         multiarch implementation.
40297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
40298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
40299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
40300         file.
40301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
40302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
40303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
40304         multiarch isnan for PPC64.
40305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
40306         multiarch isnanf for PPC64.
40307
40308         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
40309         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
40310         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
40311         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
40312         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
40313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
40314
40315         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
40316         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40317         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40318         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40319
40320         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
40321         multiarch implementations.
40322         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40323         (__libc_ifunc_impl_list): Likewise.
40324         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
40325         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
40326         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
40327         multiarch stpcpy for PPC64.
40328
40329         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
40330         multiarch implementations.
40331         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40332         (__libc_ifunc_impl_list): Likewise.
40333         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
40334         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
40335         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
40336         multiarch strcpy for PPC64.
40337
40338         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
40339         redefine function name.
40340         (_wordcopy_fwd_dest_aligned): Likewise.
40341         (_wordcopy_bwd_aligned): Likewise.
40342         (_wordcopy_bwd_dest_aligned): Likewise.
40343         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
40344         multiarch implementations.
40345         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40346         (__libc_ifunc_impl_list): Likewise.
40347         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
40348         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
40349         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
40350         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
40351         multiarch wcscpy for PPC64.
40352
40353         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
40354         multiarch implementations.
40355         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40356         (__libc_ifunc_impl_list): Likewise.
40357         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
40358         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
40359         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
40360         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
40361         multiarch wcscpy for PPC64.
40362
40363         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40364         multiarch implementations.
40365         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40366         (__libc_ifunc_impl_list): Likewise.
40367         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40368         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40369         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40370         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40371         multiarch wcsrchr for PPC64.
40372
40373         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40374         multiarch implementations.
40375         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40376         (__libc_ifunc_impl_list): Likewise.
40377         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40378         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40379         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40380         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40381         multiarch wcschr for PPC64.
40382
40383         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40384         multiarch implementations.
40385         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40386         (__libc_ifunc_impl_list): Likewise.
40387         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40388         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40389         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40390         multiarch strchrnul for PPC64.
40391
40392         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40393         implementations.
40394         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40395         (__libc_ifunc_impl_list): Likewise.
40396         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40397         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40398         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40399         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40400         strchr for PPC64.
40401
40402         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40403         implementations.
40404         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40405         (__libc_ifunc_impl_list): Likewise.
40406         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40407         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40408         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40409         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40410         strncmp for PPC64.
40411
40412         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40413         multiarch implementations.
40414         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40415         (__libc_ifunc_impl_list): Likewise.
40416         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40417         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40418         strncasecmp for PPC64.
40419         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40420         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40421         multiarch strncasecmp_l for PPC64.
40422
40423         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40424         multiarch implementations.
40425         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40426         (__libc_ifunc_impl_list): Likewise.
40427         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40428         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40429         multiarch strcasecmp for PPC64.
40430         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40431         file.
40432         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40433         multiarch strcasecmp_l for PPC64.
40434
40435         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40436         implementations.
40437         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40438         (__libc_ifunc_impl_list): Likewise.
40439         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40440         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40441         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40442         strnlen for PPC64.
40443
40444         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40445         implementations.
40446         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40447         (__libc_ifunc_impl_list): Likewise.
40448         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40449         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40450         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40451         strlen for PPC64.
40452
40453         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40454         implementations.
40455         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40456         (__libc_ifunc_impl_list): Likewise.
40457         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40458         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40459         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40460         rawmemrchr for PPC64.
40461
40462         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40463         implementation.
40464         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40465         (__libc_ifunc_impl_list): Likewise.
40466         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40467         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40468         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40469         memrchr for PPC64.
40470
40471         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40472         implementation.
40473         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40474         (__libc_ifunc_impl_list): Likewise.
40475         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40476         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40477         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40478         memchr for PPC64.
40479
40480         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40481         implementation.
40482         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40483         (__libc_ifunc_impl_list): Likewise.
40484         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40485         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40486         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40487         mempcpy for PPC64.
40488
40489         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40490         avoid cretion of __bzero symbol.
40491         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40492         Likewise.
40493         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40494         Likewise.
40495         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40496         Likewise.
40497         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40498         multiarch implementations.
40499         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40500         (__libc_ifunc_impl_list): Likewise.
40501         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40502         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40503         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40504         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40505         bzero for PPC32.
40506         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40507         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40508         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40509         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40510         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40511         memset for PPC64.
40512         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40513
40514         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40515         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40516         implementations.
40517         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40518         (__libc_ifunc_impl_list): Likewise.
40519         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40520         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40521         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40522         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40523         memcmp for PPC64.
40524
40525         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40526         multiarch for POWER/PPC64.
40527         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40528         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40529         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40530         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40531         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40532         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40533         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40534         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40535         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40536         memcpy for PPC64.
40537
40538         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40539         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40540         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40541         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40542         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40543         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40544         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40545         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40546         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40547         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40548         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40549         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40550         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40551         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40552         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40560
40561 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40562
40563         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40564
40565 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40566
40567         * benchtests/Makefile (bench): Add exp2 and log2.
40568         (LDLIBS-bench-exp2): Add -lm.
40569         (LDLIBS-bench-log2): Likewise.
40570         * benchtests/exp2-inputs: New inputs file.
40571         * benchtests/log2-inputs: New inputs file.
40572         * benchtests/log-inputs: Add new inputs.
40573         * benchtests/tan-inputs: Likewise.
40574
40575 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40576
40577         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40578         definition...
40579         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40580         (csloww2): ... from here.
40581
40582         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40583         instead of structures.
40584         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40585         (POLYNOMIAL): Likewise.
40586         (TAYLOR_SLOW): Likewise.
40587         (__sin): Likewise.
40588         (__cos): Likewise.
40589         (slow1): Likewise.
40590         (slow2): Likewise.
40591         (sloww): Likewise.
40592         (sloww1); Likewise.
40593         (sloww2): Likewise.
40594         (bsloww1): Likewise.
40595         (bsloww2): Likewise.
40596         (cslow2): Likewise.
40597         (csloww): Likewise.
40598         (csloww1): Likewise.
40599         (csloww2): Likewise.
40600
40601 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40602
40603         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40604         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40605         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40606         * malloc/hooks.c (realloc_check): Likewise.
40607
40608         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40609         * malloc/arena.c: Remove PER_THREAD conditional.
40610         [!PER_THREAD]: Remove code.
40611         (ptmalloc_unlock_all2): Likewise.
40612         (ptmalloc_init): Likewise.
40613         (_int_new_arena): Likewise.
40614         (arena_get2): Likewise.
40615         * malloc/hooks.c (__malloc_get_state): Likewise.
40616         (__malloc_set_state): Likewise.
40617         * malloc/malloc.c: Likewise.
40618         (struct malloc_state): Likewise.
40619         (struct malloc_par): Likewise.
40620         (__libc_realloc): Likewise.
40621         (__libc_mallopt): Likewise.
40622
40623 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40624
40625         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40626
40627 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40628
40629         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40630         macro to a function.  Check for zero perturb_byte.
40631         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40632
40633         * malloc/malloc.c: (force_reg): Remove.
40634         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40635         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40636         force_reg by atomic_forced_read.
40637         * malloc/arena.c (ptmalloc_init): Likewise.
40638         * malloc/hooks.c (top_check): Likewise.
40639
40640 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40641
40642         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40643
40644 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40645
40646         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40647
40648 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40649
40650         * math/auto-libm-test-in: Add tests of lgamma.
40651         * math/auto-libm-test-out: Regenerated.
40652         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40653         (M_LOG_2_SQRT_PIl): Likewise.
40654         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40655         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40656         mpfr_f_f1.
40657         (func_calc_desc): Add mpfr_f_f1 union field.
40658         (ARGS1): New macro.
40659         (ARGS2): Likewise.
40660         (ARGS3): Likewise.
40661         (ARGS4): Likewise.
40662         (RET1): Likewise.
40663         (RET2): Likewise.
40664         (CALC): Likewise.
40665         (FUNC): Likewise.
40666         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40667         (test_functions): Add lgamma.
40668         (calc_generic_results): Handle mpfr_f_f1.
40669         * sysdeps/i386/fpu/libm-test-ulps: Update.
40670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40671
40672 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40673
40674         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40675         __mpn_add_n for PowerPC64/POWER7.
40676         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40677         __mpn_sub_n for PowerPC64/POWER7.
40678
40679         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40680         __mpn_addmul_1 for PowerPC64.
40681         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40682         __mpn_submul_1 for PowerPC64.
40683         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40684         for PowerPC64.
40685         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40686         for PowerPC64.
40687
40688 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40689
40690         [BZ #15089]
40691         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40692
40693 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40694
40695         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40696
40697         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40698         add multiarch folders.
40699         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40700         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40701         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40702         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40703         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40704         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40705         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40706         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40707         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40708         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40709         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40716
40717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40718         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40719         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40720         New file.
40721         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40722         New file.
40723         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40724         multiarch __ieee754_hypot for PowerPC32.
40725         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40726         New file.
40727         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40728         New file.
40729         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40730         multiarch __ieee754_hypotf for PowerPC32.
40731
40732         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40733         long_double_symbol only if __logbl is defined.
40734         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40735         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40736         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40737         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40738         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40739         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40740         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40741         path for implementation.
40742         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40743         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40745         logb, and logbl multiarch implementations for PowerPC32.
40746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40747         file.
40748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40749         file.
40750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40751         multiarch logb for PowerPC32.
40752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40753         file.
40754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40755         file.
40756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40757         multiarch logbf for PowerPC32.
40758         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40759         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40760         file.
40761         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40762         multiarch logbl implementation for PowerPC32.
40763
40764         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40765         and modff multiarch implementations.
40766         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40767         New file.
40768         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40769         New file.
40770         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40771         multiarch modf for PowerPC32.
40772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40773         New file.
40774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40775         New file.
40776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40777         multiarch modff for PowerPC32.
40778
40779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40780         and lrintf multiarch implementations.
40781         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40782         New file.
40783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40784         New file.
40785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40786         multiarch lrint for PowerPC32.
40787         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40788         file: multiarch lrintf for PowerPC32.
40789
40790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40791         and lroundf multiarch implementations.
40792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40793         New file.
40794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40795         New file.
40796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40797         New file.
40798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40799         multiarch lround for PowerPC32.
40800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40801         file: multiarch lroundf for PowerPC32.
40802
40803         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40804         copysign and copysignf multiarch implementations.
40805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40806         New file.
40807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40808         New file.
40809         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40810         file: multiarch copysign for PowerPC32.
40811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40812         file: multiarch copysignf for PowerPC32.
40813
40814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40815         and truncf multiarch implementations.
40816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40817         New file.
40818         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40819         file.
40820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40821         multiarch trunc for PowerPC32.
40822         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40823         New file.
40824         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40825         New file.
40826         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40827         multiarch truncf for PowerPC32.
40828
40829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40830         and roundf multiarch implementations.
40831         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40832         New file.
40833         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40834         file.
40835         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40836         multiarch round for PowerPC32.
40837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40838         New file.
40839         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40840         New file.
40841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40842         multiarch roundf for PowerPC32.
40843
40844         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40845         and floorf multiarch implementations.
40846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40847         New file.
40848         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40849         file.
40850         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40851         multiarch floor for PowerPC32.
40852         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40853         New file.
40854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40855         New file.
40856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40857         multiarch floorf for PowerPC32.
40858
40859         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40860         and ceilf multiarch implementations.
40861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40862         New file.
40863         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40864         file.
40865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40866         multiarch ceil for PowerPC32.
40867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40868         New file.
40869         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40870         file.
40871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40872         multiarch ceilf for PowerPC32.
40873
40874         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40875         is defined.
40876         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40877         FINITEF is defined.
40878         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40879         and finitef multiarch implementations.
40880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40881         New file.
40882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40883         file.
40884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40885         multiarch finite for PowerPC32.
40886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40887         New file.
40888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40889         file: multiarch finitef for PowerPC32.
40890
40891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40892         and isinff multiarch implementations.
40893         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40894         file.
40895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40896         file.
40897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40898         multiarch isinf for PowerPC32.
40899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40900         New file.
40901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40902         multiarch isinff for PowerPC32.
40903
40904         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40905         alias when __isnan is defined.
40906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40907         and isnanf multiarch implementations.
40908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40909         file.
40910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40911         file.
40912         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40913         file.
40914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40915         file.
40916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40917         multiarch isnan for PowerPC32.
40918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40919         New file.
40920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40921         New file.
40922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40923         multiarch isnanf for PowerPC32.
40924
40925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40926         and sqrtf multiarch implementations.
40927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40928         file.
40929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40930         file.
40931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40932         multiarch sqrt for PowerPC32.
40933         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40934         file.
40935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40936         file.
40937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40938         multiarch sqrtf for PowerPC32.
40939
40940         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40941         and llroundf multiarch implementations.
40942         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40943         New file.
40944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40945         New file.
40946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40947         New file.
40948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40949         file: multiarch llround for PowerPC32.
40950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40951         file: multiarch llroundf for PowerPC32.
40952
40953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40954         multiarch PowerPC32 fpu implementations.
40955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40956         New file.
40957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40958         New file.
40959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40960         multiarch llrint for PowerPC32.
40961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40962         New file.
40963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40964         New file.
40965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40966         file.
40967
40968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40969
40970         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40971         file.
40972         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40973         file.
40974         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40975         file.
40976         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40977         multiarch wordcopy for PPC32.
40978         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40979         wordcopy objects.
40980         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40981         (__libc_ifunc_impl_list): Likewise.
40982         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40983         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40984         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40985         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40986         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40987         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40988
40989         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40990         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40991         file.
40992         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40993         file.
40994         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40995         file.
40996         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40997         multiarch wcscpy for PPC32.
40998         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40999         multiarch objects.
41000         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41001         (__libc_ifunc_impl_list): Likewise.
41002         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41003         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41004         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
41005         sysdeps/powerpc/power6/wcscpy.c.
41006
41007         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
41008         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
41009         file.
41010         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
41011         file.
41012         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
41013         file.
41014         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
41015         multiarch wcsrchr for PPC32.
41016         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41017         multiarch objects.
41018         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41019         (__libc_ifunc_impl_list): Likewise.
41020         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41021         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41022         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
41023         sysdeps/powerpc/power6/wcsrchr.c.
41024
41025         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
41026         file.
41027         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
41028         file.
41029         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
41030         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
41031         multiarch wcschr for PPc32.
41032         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41033         multiarch objects.
41034         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41035         (__libc_ifunc_impl_list): Likewise.
41036         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
41037         * sysdeps/powerpc/power6/wcschr.c: ... to here.
41038         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
41039         sysdeps/powerpc/power6/wcschr.c.
41040
41041         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
41042         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
41043         file.
41044         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
41045         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
41046         file: multiarch strchr for PPC32.
41047         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
41048         multiarch objects.
41049         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41050         (__libc_ifunc_impl_list): Likewise.
41051
41052         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
41053         name.
41054         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
41055         file.
41056         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
41057         file.
41058         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
41059         multiarch strchrnul for PPC32.
41060         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
41061         multiarch objects.
41062         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41063         (__libc_ifunc_impl_list): Likewise.
41064
41065         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
41066         file.
41067         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
41068         multiarch strncasecmp for PPC32.
41069         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
41070         file.
41071         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
41072         multiarch strncasecmp_l for PPC32.
41073         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
41074         strncasecmp multiarch objects.
41075         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41076         (__libc_ifunc_impl_list): Likewise.
41077
41078         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
41079         file.
41080         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
41081         multiarch strncasecmp for PPC32.
41082         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41083         New file.
41084         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
41085         multiarch strcasecmp_l for PPC32.
41086         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
41087         multiarch objects.
41088         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41089         (__libc_ifunc_impl_list): Likewise.
41090
41091         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
41092         file.
41093         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
41094         file.
41095         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
41096         multiarch strncmp for PPC32.
41097         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
41098         multiarch objects.
41099         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41100         (__libc_ifunc_impl_list): Likewise.
41101
41102         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
41103         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
41104         file.
41105         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
41106         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
41107         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
41108         multiarch objects.
41109         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41110         (__libc_ifunc_impl_list): Likewise.
41111
41112         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
41113         file.
41114         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
41115         file.
41116         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
41117         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
41118         multiarch objects.
41119         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41120         (__libc_ifunc_impl_list): Likewise.
41121
41122         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
41123         file.
41124         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
41125         file.
41126         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
41127         multiarch rawmemchr for PPC32.
41128         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
41129         multiarch objects.
41130         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41131         (__libc_ifunc_impl_list): Likewise.
41132
41133         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
41134         file.
41135         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
41136         file.
41137         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
41138         file: memrchr multiarch for PPC32.
41139         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
41140         multiarch objects.
41141         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41142         (__libc_ifunc_impl_list): Likewise.
41143
41144         * string/memchr.c (__memchr): Using macro to redefine symbol name.
41145         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
41146         file.
41147         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
41148         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
41149         multiarch memchr for PPC32.
41150         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
41151         multiarch objects.
41152         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41153         (__libc_ifunc_impl_list): Likewise.
41154
41155         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
41156         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
41157         file.
41158         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
41159         file.
41160         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
41161         file: multiarch mempcpy for PPC32.
41162         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
41163         multiarch objects.
41164         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41165         (__libc_ifunc_impl_list): Likewise.
41166
41167         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
41168         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
41169         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
41170         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
41171         multiarch bzero for PPC32.
41172         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
41173         file.
41174         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
41175         file.
41176         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
41177         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
41178         file: multiarch memset for PPC32.
41179         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
41180         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
41181         memset multiarch objects.
41182         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41183         (__libc_ifunc_impl_list): Likewise.
41184
41185         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
41186         file.
41187         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
41188         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
41189         memcmp for PPC32.
41190         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
41191         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
41192         multiarch objects.
41193         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41194         (__libc_ifunc_impl_list): Likewise.
41195
41196         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
41197         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
41198         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
41199         file.
41200         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
41201         file.
41202         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
41203         file.
41204         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
41205         multiarch memcpy for PPC32.
41206         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
41207         multiarch objects.
41208         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41209         (__libc_ifunc_impl_list): Likewise.
41210
41211         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
41212         support multiarch for POWER/PPC32.
41213         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
41214         Likewise.
41215         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
41217         Implies file to make multiarch folder appers before the fpu and
41218         default folder for power4 configuration.
41219
41220 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41221
41222         * scripts/bench.pl: Append volatile keyword to type.
41223
41224 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41225
41226         * sysdeps/sh/sotruss-lib.c: New file.
41227         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
41228
41229 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41230
41231         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41232
41233 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
41234
41235         [BZ #6810]
41236         * math/w_tgamma.c: Include <errno.h>.
41237         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
41238         * math/w_tgammaf.c: Include <errno.h>.
41239         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
41240         * math/w_tgammal.c: Include <errno.h>.
41241         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
41242         * math/auto-libm-test-in: Do not allow missing errno on tgamma
41243         underflow.  Add more tgamma tests.
41244         * math/auto-libm-test-out: Regenerated.
41245         * sysdeps/i386/fpu/libm-test-ulps: Update.
41246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41247
41248         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
41249         sin, sinh, tan, tanh, tgamma, y0 and y1.
41250         * math/auto-libm-test-out: Regenerated.
41251         * math/libm-test.inc (TEST_COND_x86_64): New macro.
41252         (TEST_COND_x86): Likewise.
41253         (M_E2l): Remove macro.
41254         (M_E3l): Likewise.
41255         (M_2_SQRT_PIl): Likewise.
41256         (M_SQRT_PIl): Likewise.
41257         (M_1_DIV_El): Likewise.
41258         (log_test_data): Use AUTO_TESTS_f_f.
41259         (log10_test_data): Likewise.
41260         (log1p_test_data): Likewise.
41261         (log2_test_data): Likewise.
41262         (sin_test_data): Likewise.
41263         (sin_tonearest_test_data): Likewise.
41264         (sin_towardzero_test_data): Likewise.
41265         (sin_downward_test_data): Likewise.
41266         (sin_upward_test_data): Likewise.
41267         (sinh_test_data): Likewise.
41268         (sinh_tonearest_test_data): Likewise.
41269         (sinh_towardzero_test_data): Likewise.
41270         (sinh_downward_test_data): Likewise.
41271         (sinh_upward_test_data): Likewise.
41272         (tan_test_data): Likewise.
41273         (tan_tonearest_test_data): Likewise.
41274         (tan_towardzero_test_data): Likewise.
41275         (tan_downward_test_data): Likewise.
41276         (tan_upward_test_data): Likewise.
41277         (tanh_test_data): Likewise.
41278         (tgamma_test_data): Likewise.
41279         (y0_test_data): Likewise.
41280         (y1_test_data): Likewise.
41281         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
41282         (special_real_inputs): Add pi/4.
41283         * sysdeps/i386/fpu/libm-test-ulps: Update.
41284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41285
41286 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41287
41288         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
41289         "longjmp_target" static probes.
41290         (__longjmp): Rename to __longjmp_symbol.
41291         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41292         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
41293         on which longjmp to generate.
41294         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41295         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
41296         probe.
41297         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41298         (__sigjmp_save): Rename to __sigjmp_save_symbol.
41299         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41300         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
41301         and __sigjmp_save_symbol based on which sigsetjmp to generated.
41302         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
41304         __longjmp_symbol based on which __longjmp to generate.
41305         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
41306         probe.
41307         (setjmp): Rename to setjmp_symbol.
41308         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41309         (_setjmp): Rename to _setjmp_symbol.
41310         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41311         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
41312         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
41313         which setjmp to generate.
41314         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
41315         "longjmp_target" static probes.
41316
41317 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41318
41319         * benchtests/README: Add note about output arguments.
41320         * benchtests/bench-sincos.c: Remove file.
41321         * benchtests/sincos-inputs: New file.
41322         * scripts/bench.pl: Identify output arguments and define
41323         static variables for them.
41324
41325         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
41326
41327         [BZ #15941]
41328         * Makefile (INSTALL): Add install-plain.texi as the primary
41329         dependency.
41330         * manual/install-plain.texi: New file.
41331         * manual/install.texi: Include node directive only for
41332         non-plaintext output.
41333
41334 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
41335
41336         * stdlib/longlong.h: Update from GCC.
41337
41338         [BZ #6807]
41339         [BZ #15901]
41340         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
41341         * math/w_j0f.c (y0f): Likewise.
41342         * math/w_j0l.c (__y0l): Likewise.
41343         * math/w_j1.c (y1): Likewise.
41344         * math/w_j1f.c (y1f): Likewise.
41345         * math/w_j1l.c (__y1l): Likewise.
41346         * math/w_jn.c (yn): Likewise.
41347         * math/w_jnf.c (ynf): Likewise.
41348         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
41349         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
41350         value for Bessel function domain errors outside _SVID_ mode.
41351         Adjust sign of return value for yn (negative integer, 0).
41352         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
41353         by zero in return for negative x and set sign appropriately for
41354         negative n.
41355         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
41356         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
41357         * math/libm-test.inc (y0_test_data): Add more tests and adjust
41358         expectations in error cases.
41359         (y1_test_data): Likewise.
41360         (yn_test_data): Likewise.
41361         * sysdeps/i386/fpu/libm-test-ulps: Update.
41362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41363
41364 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41365
41366         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41367         "64" to "64-v1".  Add "64-v2".
41368         (abi-64-options): Rename to ...
41369         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41370         (abi-64-condition): Rename to ...
41371         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41372         (abi-64-ld-soname): Rename to ...
41373         (abi-64-v1-ld-soname): ... this.
41374         (abi-64-v2-options): Define.
41375         (abi-64-v2-condition): Likewise.
41376         (abi-64-v2-ld-soname): Likewise.
41377         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41378         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41382
41383 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41384             Alan Modra  <amodra@gmail.com>
41385
41386         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41387         New versions for use with the ELFv2 ABI.
41388         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41389         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41390         declaration.
41391         (struct La_ppc64v2_retval): Likewise.
41392         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41393         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41394         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41395         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41396         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41397         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41398         Do not save or restore CR.
41399         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41400         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41401         return values for ELFv2 ABI.  Fix location of FPR return registers.
41402         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41403         updated values for _CALL_ELF == 2.
41404         (La_regs, La_retval, int_retval): Likewise.
41405
41406 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41407
41408         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41409         (FRAME_MIN_SIZE_PARM): Likewise.
41410         (FRAME_BACKCHAIN): Likewise.
41411         (FRAME_CR_SAVE): Likewise.
41412         (FRAME_LR_SAVE): Likewise.
41413         (FRAME_TOC_SAVE): Likewise.
41414         (FRAME_PARM_SAVE): Likewise.
41415         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41416         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41417         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41418         (call_mcount_parm_offset): New macro.
41419         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41420         (PROF): Use symbolic stack frame offsets.
41421         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41422         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41423         Redefine in terms of FRAME_MIN_SIZE.
41424         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41425         (_dl_profile_resolve): Likewise.  Update comment.
41426         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41427         symbols stack frame offsets.
41428         (__sigsetjmp): Likewise.
41429         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41430         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41431         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41432         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41433
41434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41435         (FRAME_BACKCHAIN): Remove.
41436         (FRAME_CR_SAVE): Likewise.
41437         (FRAME_LR_SAVE): Likewise.
41438         (FRAME_COMPILER_DW): Likewise.
41439         (FRAME_LINKER_DW): Likewise.
41440         (FRAME_TOC_SAVE): Likewise.
41441         (FRAME_PARM_SAVE): Likewise.
41442         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41443         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41444         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41446         (CHECK_SP): Use symbolic stack frame offsets.
41447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41448         zone" instead of caller's parameter save area for temp storage.
41449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41450         Likewise.  Also, use symbolic stack frame offsets.
41451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41452         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41453         our own stack frame instead of the caller's.
41454         (__socket): Use symbolic stack frame offsets.
41455
41456 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41457             Alan Modra  <amodra@gmail.com>
41458
41459         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41460         Define.
41461         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41462         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41463         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41464         New function.
41465         (elf_machine_fixup_plt): Call it.
41466         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41467         reloc arguments.
41468         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41469         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41470         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41471         r2 before calling target.
41472
41473 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41474             Alan Modra  <amodra@gmail.com>
41475
41476         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41477         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41478         versions of macros to support ELFv2 ABI.
41479         (LOCALENTRY): New macro.
41480         (ENTRY, EALIGN): Use it.
41481         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41482         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41483         fall through into ENTRY entry point.
41484         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41485         Only define if _CALL_ELF != 2.
41486
41487         (elf_machine_matches_host): Verify ABI version matches.
41488         (RTLD_START): Use LOCALENTRY.
41489         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41490         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41491         (PLT_ENTRY_WORDS): New macro.
41492         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41493         (elf_machine_runtime_setup): Support ELFv2 ABI.
41494         (elf_machine_fixup_plt): Likewise.
41495         (elf_machine_plt_conflict): Likewise.
41496         (resolve_ifunc): Likewise.
41497         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41498         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41499         Likewise.
41500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41501         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41503         (makecontext): Support ELFv2 ABI.
41504         * elf/elf.h (EF_PPC64_ABI): Define.
41505
41506 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41507
41508         * sysdeps/powerpc/powerpc64/sysdep.h
41509         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41510         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41511         (ENTRY) [ASSEMBLER]: ... but instead here ...
41512         (EALIGN) [ASSEMBLER]: ... and here.
41513         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41514         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41515         (ENTRY_2) [!ASSEMBLER]: Use it.
41516         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41517         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41518         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41519         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41520         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41522         Use PPC64_LOAD_FUNCPTR.
41523
41524         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41525
41526 2013-12-04  Alan Modra  <amodra@gmail.com>
41527
41528         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41529         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41530         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41531         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41532
41533         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41534         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41535         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41536         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41537         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41538         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41539
41540 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41541
41542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41543         (__makecontext): Fix incorrect CFI when backtracing out of
41544         context created via makecontext.
41545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41546         (__setcontext): Fix incorrect CFI during switch to new context.
41547         (__novec_setcontext): Likewise.
41548
41549 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41550
41551         [BZ #4772]
41552         * time/strptime_l.c (__strptime_internal): Allow modifiers
41553         in strptime.
41554         * time/tst-strptime.c (day_tests): Add testcase.
41555
41556 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41557
41558         * scripts/bench.pl: Skip over blank lines.
41559
41560 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41561
41562         [BZ #926]
41563         * manual/time.texi (Calendar Time): Clarify what timezone functions
41564         use.
41565
41566 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41567
41568         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41569
41570 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41571
41572         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41573         implementation.
41574         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41575         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41576         * debug/memset_chk.c (__memset_chk): Likewise.
41577         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41578         * debug/strncpy_chk.c: Likewise.
41579
41580 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41581
41582         [BZ #15268]
41583         [BZ #15425]
41584         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41585         (__ieee754_exp): For possibly underflowing results, check size of
41586         result and force underflow exception if required.
41587         * math/auto-libm-test-in: Add more tests of exp.
41588         * math/auto-libm-test-out: Regenerated.
41589         * sysdeps/i386/fpu/libm-test-ulps: Update.
41590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41591
41592         [BZ #16283]
41593         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41594         * math/w_exp2f.c (__exp2f): Likewise.
41595         * math/w_exp2l.c (__exp2l): Likewise.
41596         * math/auto-libm-test-in: Do not allow missing errno on exp2
41597         underflow.
41598         * math/auto-libm-test-out: Regenerated.
41599
41600 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41601
41602         [BZ #16274]
41603         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41604         handle filename validation.
41605         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41606         (do_open): Delete.
41607
41608 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41609
41610         [BZ #6786]
41611         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41612         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41613         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41614         <float.h>.
41615         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41616         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41617         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41618         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41619         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41620         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41621         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41622         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41623         Add more erfc tests.
41624         * math/auto-libm-test-out: Regenerated.
41625         * sysdeps/i386/fpu/libm-test-ulps: Update.
41626         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41627
41628         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41629         exp2, expm1, j0 and j1.
41630         * math/auto-libm-test-out: Regenerated.
41631         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41632         (erfc_test_data): Likewise.
41633         (exp_test_data): Likewise.
41634         (exp_tonearest_test_data): Likewise.
41635         (exp_towardzero_test_data): Likewise.
41636         (exp_downward_test_data): Likewise.
41637         (exp_upward_test_data): Likewise.
41638         (exp10_test_data): Likewise.
41639         (exp2_test_data): Likewise.
41640         (expm1_test_data): Likewise.
41641         (j0_test_data): Likewise.
41642         (j1_test_data): Likewise.
41643         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41644         (input_flag_type): Add flag_xfail_rounding.
41645         (input_flags): Add xfail-rounding.
41646         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41647         (output_for_one_input_case): Handle flag_xfail_rounding.
41648         * sysdeps/i386/fpu/libm-test-ulps: Update.
41649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41650
41651 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41652
41653         [BZ #16289]
41654         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41655         division by 0.
41656
41657 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41658
41659         [BZ #16195]
41660         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41661         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41662         (STAP_PROBE0): New macro.
41663         (STAP_PROBE1): Likewise.
41664         (STAP_PROBE2): Likewise.
41665         (STAP_PROBE3): Likewise.
41666         (STAP_PROBE4): Likewise.
41667
41668 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41669
41670         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41671
41672 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41673
41674         * benchtests/Makefile (bench): Add sqrt.
41675         (LDLIBS-bench-sqrt): New.
41676         * benchtests/sqrt-input: New.
41677
41678 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41679
41680         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41681         (GAIH_EAI): Likewise.
41682         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41683         (gaih_inet): Likewise.
41684         (getaddrinfo): Don't use GAIH_EAI.
41685
41686         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41687         (struct gaih): Remove definition.
41688
41689 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41690
41691         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41692         Use HERRNOP directly.
41693
41694 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41695
41696         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41697
41698 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41699
41700         * math/gen-auto-libm-tests.c (test_functions): Add more
41701         single-argument functions.
41702         (special_fill_pi_2): New function.
41703         (special_fill_minus_pi_2): Likewise.
41704         (special_fill_pi_6): Likewise.
41705         (special_fill_minus_pi_6): Likewise.
41706         (special_fill_pi_3): Likewise.
41707         (special_fill_2pi_3): Likewise.
41708         (special_fill_e): Likewise.
41709         (special_fill_1_e): Likewise.
41710         (special_fill_e_minus_1): Likewise.
41711         (special_real_inputs): Add more special inputs.
41712         (output_for_one_input_case): Do not require ERANGE on underflow to
41713         zero if round-to-nearest result does not underflow to zero, unless
41714         exact results required.
41715         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41716         atan, atanh, cbrt, cos and cosh.
41717         * math/auto-libm-test-out: Regenerated.
41718         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41719         (acos_tonearest_test_data): Likewise.
41720         (acos_towardzero_test_data): Likewise.
41721         (acos_downward_test_data): Likewise.
41722         (acos_upward_test_data): Likewise.
41723         (acosh_test_data): Likewise.
41724         (asin_test_data): Likewise.
41725         (asin_tonearest_test_data): Likewise.
41726         (asin_towardzero_test_data): Likewise.
41727         (asin_upward_test_data): Likewise.
41728         (asinh_test_data): Likewise.
41729         (atan_test_data): Likewise.
41730         (atanh_test_data): Likewise.
41731         (cbrt_test_data): Likewise.
41732         (cos_test_data): Likewise.
41733         (cos_tonearest_test_data): Likewise.
41734         (cos_towardzero_test_data): Likewise.
41735         (cos_downward_test_data): Likewise.
41736         (cos_upward_test_data): Likewise.
41737         (cosh_test_data): Likewise.
41738         (cosh_tonearest_test_data): Likewise.
41739         (cosh_towardzero_test_data): Likewise.
41740         (cosh_downward_test_data): Likewise.
41741         (cosh_upward_test_data): Likewise.
41742         * sysdeps/i386/fpu/libm-test-ulps: Update.
41743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41744
41745 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41746
41747         [BZ #6787]
41748         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41749         * math/w_exp10f.c (__exp10f): Likewise.
41750         * math/w_exp10l.c (__exp10l): Likewise.
41751         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41752         errno settings in existing tests.
41753
41754         [BZ #14032]
41755         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41756         precision control set to double precision.
41757         * sysdeps/i386/fpu/w_sqrt.c: New file.
41758         * math/auto-libm-test-in: Add more tests.
41759         * math/auto-libm-test-out: Update.
41760
41761         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41762         (sqrt_test_tonearest): New function.
41763         (sqrt_towardzero_test_data): New variable.
41764         (sqrt_test_towardzero): New function.
41765         (sqrt_downward_test_data): New variable.
41766         (sqrt_test_downward): New function.
41767         (sqrt_upward_test_data): New variable.
41768         (sqrt_test_upward): New function.
41769         (main): Call the new functions.
41770
41771         * math/gen-auto-libm-tests.c: New file.
41772         * math/auto-libm-test-in: Likewise.
41773         * math/auto-libm-test-out: New generated file.
41774         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41775         variables.
41776         (%beautify): Add generated representations of zero.
41777         (top level): Set $auto_input and call parse_auto_input.
41778         (beautify): Remove trailing "f" from hex float constants.
41779         (parse_args): Handle XFAIL_TEST.
41780         (convert_condition): New function.
41781         (or_value): Likewise.
41782         (or_cond_value): Likewise.
41783         (generate_testfile): Handle AUTO_TESTS_* lines.
41784         (parse_auto_input): New function.
41785         * math/libm-test.inc (XFAIL_TEST): New macro.
41786         (ERRNO_UNCHANGED): Update value.
41787         (ERRNO_EDOM): Likewise.
41788         (ERRNO_ERANGE): Likewise.
41789         (IGNORE_RESULT): Likewise.
41790         (TEST_COND_flt_32): New macro.
41791         (TEST_COND_dbl_64): Likewise.
41792         (TEST_COND_ldbl_96_intel): Likewise.
41793         (TEST_COND_ldbl_96_m68k): Likewise.
41794         (TEST_COND_ldbl_128): Likewise.
41795         (TEST_COND_ldbl_128ibm): Likewise.
41796         (TEST_COND_long32): Likewise.
41797         (TEST_COND_long64): Likewise.
41798         (TEST_COND_before_rounding): Likewise.
41799         (TEST_COND_after_rounding): Likewise.
41800         (enable_test): Handle XFAIL_TEST flag.
41801         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41802         with finite results.
41803         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41804         auto-libm-test-out.
41805
41806 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41807             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41808
41809         [BZ #16214]
41810         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41811         __tls_get_addr_internal instead of __tls_get_offset in order to
41812         avoid GOT pointer dependency.  Make rtld export
41813         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41814         __tls_get_addr since we are a __tls_get_offset platform.
41815         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41816         GOT pointer being set up before.
41817         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41818
41819 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41820
41821         * manual/math.texi (Errors in Math Functions): Document accuracy
41822         goals.
41823
41824         [BZ #15004]
41825         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41826         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41827         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41828         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41829         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41830         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41831         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41832         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41833         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41834         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41835         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41836         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41837         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41838         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41839         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41840         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41841
41842         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41843         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41844         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41845         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41846         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41847         Likewise.
41848         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41849         Likewise.
41850         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41851         Likewise.
41852         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41853         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41854         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41855         atomic-feupdateenv and flt-rounds.
41856         * sysdeps/powerpc/nofpu/Versions (libc): Add
41857         __atomic_feholdexcept, __atomic_feclearexcept,
41858         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41859         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41860         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41861         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41862         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41863         here.
41864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41865         Update.
41866
41867         * manual/arith.texi (FP Exceptions): Document that exceptions may
41868         not be raised when matherr is used.
41869         (Math Error Reporting): Document overflow in directed rounding
41870         modes.  Document that errno may not be set when finite values are
41871         returned on overflow.  Document intent to set errno on underflow
41872         only for underflow to zero.
41873
41874         [BZ #16271]
41875         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41876         round-to-nearest then adjust result for other rounding modes.
41877         * include/fenv.h (fegetround): Use libm_hidden_proto.
41878         * math/fegetround.c (fegetround): Use libm_hidden_def.
41879         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41880         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41881         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41882         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41883         Likewise.
41884         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41885         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41886         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41887         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41888
41889 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41890
41891         [BZ #16077]
41892         * nss/Versions (libnss_files): Add
41893         _nss_files_gethostbyname3_r.
41894         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41895         New function.
41896         (HOST_DB_LOOKUP): Remove macro.
41897         (_nss_files_gethostbyname_r): Implement function without the
41898         HOST_DB_LOOKUP macro.
41899         (_nss_files_gethostbyname2_r): Likewise.
41900
41901 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41902
41903         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41904
41905 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41906
41907         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41908         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41909         warning.
41910
41911 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41912
41913         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41914         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41915         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41916         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41917         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41918         __fe_nomask_env_priv and attribute_hidden.
41919         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41920         (libc_feupdateenv_test_ppc): Likewise.
41921         (libc_feresetround_ppc): Likewise.
41922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41923         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41924         compat_symbol macro.
41925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41926         (__fe_nomask_env): Likewise.
41927         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41928
41929 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41930
41931         * string/Makefile: Remove ifunc tests.
41932         * string/test-string.h: Define TEST_IFUNC.
41933         * string/test-bcopy-ifunc.c: Remove.
41934         * string/test-bzero-ifunc.c: Likewise.
41935         * string/test-memccpy-ifunc.c: Likewise.
41936         * string/test-memchr-ifunc.c: Likewise.
41937         * string/test-memcmp-ifunc.c: Likewise.
41938         * string/test-memcpy-ifunc.c: Likewise.
41939         * string/test-memmem-ifunc.c: Likewise.
41940         * string/test-memmove-ifunc.c: Likewise.
41941         * string/test-mempcpy-ifunc.c: Likewise.
41942         * string/test-memrchr-ifunc.c: Likewise.
41943         * string/test-memset-ifunc.c: Likewise.
41944         * string/test-rawmemchr-ifunc.c: Likewise.
41945         * string/test-stpcpy-ifunc.c: Likewise.
41946         * string/test-stpncpy-ifunc.c: Likewise.
41947         * string/test-strcasecmp-ifunc.c: Likewise.
41948         * string/test-strcasestr-ifunc.c: Likewise.
41949         * string/test-strcat-ifunc.c: Likewise.
41950         * string/test-strchr-ifunc.c: Likewise.
41951         * string/test-strchrnul-ifunc.c: Likewise.
41952         * string/test-strcmp-ifunc.c: Likewise.
41953         * string/test-strcpy-ifunc.c: Likewise.
41954         * string/test-strcspn-ifunc.c: Likewise.
41955         * string/test-strlen-ifunc.c: Likewise.
41956         * string/test-strncasecmp-ifunc.c: Likewise.
41957         * string/test-strncat-ifunc.c: Likewise.
41958         * string/test-strncmp-ifunc.c: Likewise.
41959         * string/test-strncpy-ifunc.c: Likewise.
41960         * string/test-strnlen-ifunc.c: Likewise.
41961         * string/test-strpbrk-ifunc.c: Likewise.
41962         * string/test-strrchr-ifunc.c: Likewise.
41963         * string/test-strspn-ifunc.c: Likewise.
41964         * string/test-strstr-ifunc.c: Likewise.
41965
41966 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41967
41968         * benchtests/Makefile: Remove ifunc tests.
41969         * benchtests/bench-string.h: Define TEST_IFUNC.
41970         * benchtests/bench-bcopy-ifunc.c: Remove.
41971         * benchtests/bench-bzero-ifunc.c: Likewise.
41972         * benchtests/bench-memccpy-ifunc.c: Likewise.
41973         * benchtests/bench-memchr-ifunc.c: Likewise.
41974         * benchtests/bench-memcmp-ifunc.c: Likewise.
41975         * benchtests/bench-memcpy-ifunc.c: Likewise.
41976         * benchtests/bench-memmem-ifunc.c: Likewise.
41977         * benchtests/bench-memmove-ifunc.c: Likewise.
41978         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41979         * benchtests/bench-memrchr-ifunc.c: Likewise.
41980         * benchtests/bench-memset-ifunc.c: Likewise.
41981         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41982         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41983         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41984         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41985         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41986         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41987         * benchtests/bench-strcat-ifunc.c: Likewise.
41988         * benchtests/bench-strchr-ifunc.c: Likewise.
41989         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41990         * benchtests/bench-strcmp-ifunc.c: Likewise.
41991         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41992         * benchtests/bench-strcpy-ifunc.c: Likewise.
41993         * benchtests/bench-strcspn-ifunc.c: Likewise.
41994         * benchtests/bench-strlen-ifunc.c: Likewise.
41995         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41996         * benchtests/bench-strncat-ifunc.c: Likewise.
41997         * benchtests/bench-strncmp-ifunc.c: Likewise.
41998         * benchtests/bench-strncpy-ifunc.c: Likewise.
41999         * benchtests/bench-strnlen-ifunc.c: Likewise.
42000         * benchtests/bench-strpbrk-ifunc.c: Likewise.
42001         * benchtests/bench-strrchr-ifunc.c: Likewise.
42002         * benchtests/bench-strsep-ifunc.c: Likewise.
42003         * benchtests/bench-strspn-ifunc.c: Likewise.
42004         * benchtests/bench-strstr-ifunc.c: Likewise.
42005
42006 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42007
42008         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
42009
42010 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42011
42012         * resolv/netdb.h: Use __glibc_reserved instead __unused.
42013         * rt/aio.h: Likewise.
42014         * sysdeps/gnu/bits/utmp.h: Likewise.
42015         * sysdeps/gnu/bits/utmpx.h: Likewise.
42016         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
42017         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
42018         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
42019         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
42020         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
42021         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
42022         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
42023         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
42024         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
42025         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
42026         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
42027         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
42028         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
42029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
42030         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
42031         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
42032         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
42033         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
42034         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
42035         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
42036         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
42037         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
42038         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
42039         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
42040         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
42041         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
42042         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
42043         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
42044         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
42045         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
42046         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
42047         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
42048         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
42049         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
42050         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
42051         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
42052         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
42053         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
42054         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
42055         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
42056         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
42057         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
42058
42059 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
42060
42061         [BZ #16245]
42062         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
42063         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
42064
42065 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
42066
42067         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
42068         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
42069         Likewise.
42070
42071 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42072
42073         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
42074         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
42075         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
42076         (__fesetround): Remove define.
42077         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
42078         rounding and exceptions handling.
42079         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
42080         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
42081         (__fe_nomask_env): Likewise.
42082         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
42083         __fegetround instead of fegetround.
42084         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
42085         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
42086
42087 2013-11-21  Roland McGrath  <roland@hack.frob.com>
42088
42089         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
42090         it's there.
42091
42092         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
42093
42094 2013-11-21  Meador Inge  <meadori@codesourcery.com>
42095
42096         [BZ #11157]
42097         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
42098         (encrypt_r): Likewise.
42099         * malloc/obstack.h (obstack_free): Likewise.
42100         * posix/unistd.h (encrypt): Likewise.
42101
42102 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
42103
42104         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
42105         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
42106         DL_CALL_DT_FINI() that call the functions directly.
42107         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
42108         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
42109         * elf/dl-fini.c: Likewise.
42110
42111 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
42112
42113         * malloc/hooks.c (memalign_check): Add alignment rounding.
42114         * malloc/malloc.c (_mid_memalign): New function.
42115         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
42116         Implement by calling _mid_memalign.
42117         * manual/probes.texi (Memory Allocation Probes): Remove
42118         memory_valloc_retry and memory_pvalloc_retry.
42119
42120 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
42121
42122         * locale/programs/locarchive.c (open_archive): Add const
42123         qualifier to ARCHIVEFNAME and copy default fname to
42124         DEFAULT_FNAME.
42125
42126         [BZ #15601]
42127         * libio/tst-widetext.input: Rename Oriya to Odia.
42128         * locale/iso-639.def: Likewise.
42129
42130         * manual/probes.texi (Mathematical Function Probes): Add
42131         documentation for sin, cos, asin and acos probes.
42132         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
42133         (__sin32): Add slowasin probe.
42134         (__cos32): Add slowacos probe.
42135         (__mpsin): Add slowsin probe.
42136         (__mpcos): Add slowcos probe.
42137
42138 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
42139
42140         [BZ #15483]
42141         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
42142         thread-local __sim_exceptions_thread and global
42143         __sim_exceptions_global.
42144         (__sim_disabled_exceptions): Change to thread-local
42145         __sim_disabled_exceptions_thread and global
42146         __sim_disabled_exceptions_global.
42147         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42148         and global __sim_round_mode_global.
42149         (__simulate_exceptions): Use thread-local floating-point state and
42150         set global state from it as needed.
42151         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
42152         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
42153         __sim_round_mode_thread.
42154         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
42155         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
42156         and global __sim_exceptions_global.
42157         (__sim_disabled_exceptions): Change to thread-local
42158         __sim_disabled_exceptions_thread and global
42159         __sim_disabled_exceptions_global.
42160         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42161         and global __sim_round_mode_global.
42162         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
42163         (SIM_SET_GLOBAL): Likewise.
42164         * sysdeps/powerpc/soft-fp/sfp-machine.h
42165         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
42166         __sim_round_mode_thread.
42167         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
42168         __sim_disabled_exceptions_thread.
42169         (__sim_exceptions): Change to __sim_exceptions_thread.
42170         (__sim_disabled_exceptions): Change to
42171         __sim_disabled_exceptions_thread.
42172         (__sim_round_mode): Change to __sim_round_mode_thread.
42173         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
42174         thread-local floating-point state and set global state from it as
42175         needed.
42176         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
42177         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
42178         (__sim_disabled_exceptions): Remove extern declaration.
42179         (feenableexcept): Use thread-local floating-point state and set
42180         global state from it as needed.
42181         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
42182         extern declaration.
42183         (__sim_disabled_exceptions): Likewise.
42184         (__sim_round_mode): Likewise.
42185         (__fegetenv): Use thread-local floating-point state.
42186         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
42187         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42188         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
42189         floating-point state and set global state from it as needed.
42190         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
42191         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
42192         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
42193         Likewise.
42194         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
42195         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
42196         Likewise.
42197         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
42198         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
42199         Use __sim_round_mode_thread.
42200         * math/test-fenv-tls.c: New file.
42201         * math/Makefile (tests): Add test-fenv-tls.
42202         ($(objpfx)test-fenv-tls): Depend on
42203         $(common-objpfx)nptl/libpthread.so.
42204
42205 2013-11-19  Andreas Schwab  <schwab@suse.de>
42206
42207         * locale/programs/locale.c (show_info): Decode wordarray elements.
42208         * locale/categories.def (LC_MONETARY): Add element for
42209         _NL_MONETARY_CRNCYSTR.
42210         * locale/C-monetary.c (conversion_rate): New variable.
42211         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
42212         element.
42213
42214 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
42215
42216         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
42217         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
42218
42219 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42220
42221         * elf/Makefile (tst-auxv): New test.
42222         * elf/tst-auxv.c: New
42223         * elf/rtld.c (dl_main): Adjust AT_EXECFN
42224
42225 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
42226
42227         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
42228         (hidden_proto): Caller changed.
42229         (hidden_tls_proto): New macro.
42230         (libc_hidden_tls_proto): Likewise.
42231         (rtld_hidden_tls_proto): Likewise.
42232         (libm_hidden_tls_proto): Likewise.
42233         (libresolv_hidden_tls_proto): Likewise.
42234         (librt_hidden_tls_proto): Likewise.
42235         (libdl_hidden_tls_proto): Likewise.
42236         (libnss_files_hidden_tls_proto): Likewise.
42237         (libnsl_hidden_tls_proto): Likewise.
42238         (libnss_nisplus_hidden_tls_proto): Likewise.
42239         (libutil_hidden_tls_proto): Likewise.
42240
42241 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
42242
42243         [BZ #10253]
42244         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
42245         (decompose_rpath): Defer expansion to fillin_rpath.
42246         (_dl_init_paths): Pass linkmap to fillin_rpath.
42247
42248 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42249
42250         * benchtests/Makefile: Add strsep.
42251         * benchtests/bench-strsep.c: New file: strsep benchtest.
42252         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
42253
42254 2013-11-18  Andreas Schwab  <schwab@suse.de>
42255
42256         * locale/programs/locale.c (show_info) [case byte]: Check for
42257         '\377' instead of '\177'.
42258         * locale/C-monetary.c (not_available): Always use "\377".
42259         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
42260         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
42261         detect unavailable sign_posn locale elements.
42262         * locale/localeconv.c (__localeconv): For grouping and
42263         mon_grouping handle "\177" and "\377" like no grouping.
42264         (INT_ELEM): New macro.  Use it to set all numeric members.
42265         * locale/programs/ld-monetary.c (monetary_read)
42266         <tok_mon_grouping>: Normalize single -1 to the empty string.
42267         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
42268         Likewise.
42269
42270 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42271
42272         [BZ #16055]
42273         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
42274         when we match (nil).
42275         * stdio-common/tst-sscanf.c (struct test): Add testcase.
42276
42277 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
42278
42279         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
42280         (NO_TEST_INLINE): Update value.
42281         (ERRNO_UNCHANGED): Likewise.
42282         (ERRNO_EDOM): Likewise.
42283         (ERRNO_ERANGE): Likewise.
42284         (IGNORE_RESULT): Likewise.
42285         (check_float_internal): Check signs of NaN results if
42286         TEST_NAN_SIGN used.
42287         (check_complex): Pass TEST_NAN_SIGN flag through to second
42288         check_float_internal call.
42289         (copysign_test_data): Add tests with quiet NaNs as second
42290         argument.  Use TEST_NAN_SIGN.
42291         (fabs_test_data): Add test of negative quiet NaN argument.  Use
42292         TEST_NAN_SIGN.
42293         (signbit_test_data): Add tests of quiet NaN argument.
42294         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
42295
42296         * math/gen-libm-test.pl (show_exceptions): Take extra argument
42297         $ignore_result.
42298         (parse_args): Handle function results specified as IGNORE.
42299         * math/libm-test.inc (IGNORE_RESULT): New macro.
42300         (check_float_internal): Do not check numerical result if flag
42301         IGNORE_RESULT set.
42302         (check_complex): Pass through IGNORE_RESULT to second
42303         check_float_internal call.
42304         (check_int): Do not check numerical result if flag IGNORE_RESULT
42305         set.
42306         (check_long): Likewise.
42307         (check_bool): Likewise.
42308         (check_longlong): Likewise.
42309         (lrint_test_data): Add tests of infinite and NaN arguments.
42310         (lrint_tonearest_test_data): Likewise.
42311         (lrint_towardzero_test_data): Likewise.
42312         (lrint_downward_test_data): Likewise.
42313         (lrint_upward_test_data): Likewise.
42314         (llrint_test_data): Likewise.
42315         (llrint_tonearest_test_data): Likewise.
42316         (llrint_towardzero_test_data): Likewise.
42317         (llrint_downward_test_data): Likewise.
42318         (llrint_upward_test_data): Likewise.
42319         (lround_test_data): Likewise.
42320         (llround_test_data): Likewise.
42321
42322         * math/libm-test.inc (NO_TEST_INLINE): New macro.
42323         (ERRNO_UNCHANGED): Update value.
42324         (ERRNO_EDOM): Likewise.
42325         (ERRNO_ERANGE): Likewise.
42326         (NO_TEST_INLINE_FLOAT): New macro.
42327         (NO_TEST_INLINE_DOUBLE): Likewise.
42328         (enable_test): New function.
42329         (RUN_TEST_f_f): Check enable_test before running test.
42330         (RUN_TEST_2_f): Likewise.
42331         (RUN_TEST_fff_f): Likewise.
42332         (RUN_TEST_c_f): Likewise.
42333         (RUN_TEST_f_f1): Likewise.
42334         (RUN_TEST_fF_f1): Likewise.
42335         (RUN_TEST_fI_f1): Likewise.
42336         (RUN_TEST_ffI_f1): Likewise.
42337         (RUN_TEST_c_c): Likewise.
42338         (RUN_TEST_cc_c): Likewise.
42339         (RUN_TEST_f_i): Likewise.
42340         (RUN_TEST_f_i_tg): Likewise.
42341         (RUN_TEST_ff_i_tg): Likewise.
42342         (RUN_TEST_f_b): Likewise.
42343         (RUN_TEST_f_b_tg): Likewise.
42344         (RUN_TEST_f_l): Likewise.
42345         (RUN_TEST_f_L): Likewise.
42346         (RUN_TEST_fFF_11): Likewise.
42347         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
42348         conditionals.
42349         (cosh_test_data): Likewise.
42350         (exp_test_data): Likewise.
42351         (expm1_test_data): Likewise.
42352         (hypot_test_data): Likewise.
42353         (pow_test_data): Likewise.
42354         (sinh_test_data): Likewise.
42355         (tanh_test_data): Likewise.
42356         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
42357         flags argument.
42358
42359         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
42360         tests with quiet NaN input and output.
42361         (acosh_test_data): Likewise.
42362         (asin_test_data): Likewise.
42363         (asinh_test_data): Likewise.
42364         (atan_test_data): Likewise.
42365         (atanh_test_data): Likewise.
42366         (atan2_test_data): Likewise.
42367         (cbrt_test_data): Likewise.
42368         (cos_test_data): Likewise.
42369         (cosh_test_data): Likewise.
42370         (erf_test_data): Likewise.
42371         (erfc_test_data): Likewise.
42372         (exp_test_data): Likewise.
42373         (exp10_test_data): Likewise.
42374         (exp2_test_data): Likewise.
42375         (expm1_test_data): Likewise.
42376         (hypot_test_data): Likewise.
42377         (j0_test_data): Likewise.
42378         (j1_test_data): Likewise.
42379         (jn_test_data): Likewise.
42380         (lgamma_test_data): Likewise.
42381         (log_test_data): Likewise.
42382         (log10_test_data): Likewise.
42383         (log1p_test_data): Likewise.
42384         (log2_test_data): Likewise.
42385         (pow_test_data): Likewise.
42386         (scalb_test_data): Likewise.
42387         (sin_test_data): Likewise.
42388         (sincos_test_data): Likewise.
42389         (sinh_test_data): Likewise.
42390         (tan_test_data): Likewise.
42391         (tanh_test_data): Likewise.
42392         (tgamma_test_data): Likewise.
42393         (y0_test_data): Likewise.
42394         (y1_test_data): Likewise.
42395         (yn_test_data): Likewise.
42396
42397         [BZ #16167]
42398         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42399         argument being NaN and avoid computations with second argument in
42400         that case.
42401         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42402         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42403         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42404
42405 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42406
42407         * locale/iso-639.def: Add Chitwani Tharu (the).
42408
42409 2013-11-14  Andreas Schwab  <schwab@suse.de>
42410
42411         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42412         word instead of empty string.
42413
42414 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42415
42416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42417         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42419         (__fe_nomask_env): Likewise.
42420
42421 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42422
42423         * benchtests/bench-timing.h: Include time.h.
42424
42425 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42426
42427         [BZ #15997]
42428         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42429         to 3.4.0 for x32.
42430         * sysdeps/unix/sysv/linux/configure: Regenerated.
42431
42432 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42433
42434         [BZ #16151]
42435         * stdlib/strtod_l.c (round_and_return): Do not consider
42436         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42437         exponent one less than half the least subnormal exponent.
42438         * stdlib/test-strtod-round-data: Add more tests.
42439         * stdlib/tst-strtod-round.c (tests): Regenerated.
42440
42441 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42442
42443         [BZ #14143]
42444         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42445         (__fe_mask_env): Likewise.
42446         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42447         libm_hidden_proto and add function prototype.
42448         (__fe_mask_env): Add function prototype.
42449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42450         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42452         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42454         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42455
42456 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42457
42458         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42459         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42460
42461 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42462
42463         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42464         of htab_find_slot().
42465
42466 2013-11-11  David S. Miller  <davem@davemloft.net>
42467
42468         [BZ #16150]
42469         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42470         symbol in the non-vis3 case in static builds.
42471         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42472         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42473         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42474         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42475
42476 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42477
42478         [BZ #387]
42479         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42480         it is empty.
42481
42482 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42483
42484         * benchtests/Makefile: Add bench-strtod.
42485         * benchtests/bench-strtod.c: New file: strtod benchtest
42486
42487 2013-11-11  Andreas Schwab  <schwab@suse.de>
42488
42489         [BZ #16153]
42490         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42491         terminating NUL in key length.
42492
42493 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42494
42495         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42496         Add artificial ODP entry for vDSO symbol for PPC64.
42497         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42498         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42499
42500 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42501
42502         [BZ #15374]
42503         * nss/getent.c (services_keys): Recognize services starting with digit.
42504
42505 2013-11-06  David S. Miller  <davem@davemloft.net>
42506
42507         [BZ #15985]
42508         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42509         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42510
42511 2013-11-06  Will Newton  <will.newton@linaro.org>
42512
42513         * manual/memory.texi (Malloc Examples): Remove register
42514         keyword from examples.
42515
42516 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42517
42518         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42519
42520 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42521
42522         [BZ #6981]
42523         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42524         depending on [__GCC_IEC_559 > 0].
42525         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42526         depending on [__GCC_IEC_559_COMPLEX > 0].
42527
42528 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42529
42530         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42531         to iso-639.def.
42532
42533 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42534
42535         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42536
42537 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42538
42539         [BZ #16112]
42540         * malloc/malloc (malloc_info): Do not handle first bin as
42541         special case.
42542
42543 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42544
42545         * locale/iso-639.def: Add Central Nahuatl (nhn).
42546
42547 2013-11-01  Bruno Haible  <bruno@clisp.org>
42548
42549         [BZ #7003]
42550         * manual/math.texi (BSD Random): Specify range upper bound as
42551         in POSIX.
42552
42553 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42554
42555         * locale/iso-639.def: Add Meadow Mari (mhr).
42556
42557 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42558
42559         [BZ #14752], [BZ #15763]
42560         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42561         Validate name.
42562         * rt/tst_shm.c: Add test for escaping directory.
42563
42564 2013-10-31  Andreas Schwab  <schwab@suse.de>
42565
42566         [BZ #15917]
42567         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42568         followed by 'x' as part of digit sequence.
42569         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42570
42571 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42572
42573         [BZ #16037]
42574         * configure.ac: allow GNU Make 4.0 and greater.
42575         * configure: Regenerated.
42576
42577 2013-10-30  Will Newton  <will.newton@linaro.org>
42578
42579         [BZ #16038]
42580         * malloc/hooks.c (memalign_check): Limit alignment to the
42581         maximum representable power of two.
42582         * malloc/malloc.c (__libc_memalign): Likewise.
42583         * malloc/tst-memalign.c (do_test): Add test for very
42584         large alignment values.
42585         * malloc/tst-posix_memalign.c (do_test): Likewise.
42586
42587 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42588
42589         [BZ #11087]
42590         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42591         (munmap_chunk): Likewise.
42592         (mremap_chunk): Likewise.
42593
42594 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42595
42596         [BZ #15799]
42597         * stdlib/div.c (div): Remove obsolete code.
42598         * stdlib/ldiv.c (ldiv): Likewise.
42599         * stdlib/lldiv.c (lldiv): Likewise.
42600
42601 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42602
42603         [BZ #16071]
42604         * nss/nss_files/files-XXX.c (get_contents_ret): New
42605         enumerator.
42606         (get_contents): New function.
42607         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42608
42609 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42610
42611         * configure.in: Moved to ...
42612         * configure.ac: ... here. Change reference to configure.in
42613         to configure.ac.
42614         * sysdeps/arm/preconfigure.ac: ... here.
42615         configure.in to configure.ac.
42616         * sysdeps/gnu/configure.in: Moved to ...
42617         * sysdeps/gnu/configure.ac: ... here.
42618         * sysdeps/i386/configure.in: Moved to ...
42619         * sysdeps/i386/configure.ac: ... here.
42620         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42621         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42622         * sysdeps/mach/configure.in: Moved to ...
42623         * sysdeps/mach/configure.ac: ... here.
42624         * sysdeps/mach/hurd/configure.in: Moved to ...
42625         * sysdeps/mach/hurd/configure.ac: ... here.
42626         * sysdeps/powerpc/configure.in: Moved to ...
42627         * sysdeps/powerpc/configure.ac: ... here.
42628         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42629         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42630         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42631         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42632         * sysdeps/s390/s390-32/configure.in: Moved to ...
42633         * sysdeps/s390/s390-32/configure.ac: ... here.
42634         * sysdeps/s390/s390-64/configure.in: Moved to ...
42635         * sysdeps/s390/s390-64/configure.ac: ... here.
42636         * sysdeps/sh/configure.in: Moved to ...
42637         * sysdeps/sh/configure.ac: ... here.
42638         * sysdeps/sparc/configure.in: Moved to ...
42639         * sysdeps/sparc/configure.ac: ... here.
42640         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42641         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42642         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42643         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42644         * sysdeps/x86_64/configure.in: Moved to ...
42645         * sysdeps/x86_64/configure.ac: ... here.
42646         * sysdeps/x86_64/preconfigure.in: Moved to ...
42647         * sysdeps/x86_64/preconfigure.ac: ... here.
42648         * aclocal.m4: Change reference to configure.in to configure.ac.
42649         * config.h.in: Likewise.
42650         * manual/install.texi: Likewise.
42651         * manual/maint.texi: Likewise.
42652         * Makefile: Likewise.
42653         * malloc/Makefile: Likewise.
42654         * nscd/Makefile: Likewise.
42655         * Makeconfig: Change reference to configure.in and
42656         preconfigure.in to configure.ac and preconfigure.ac
42657         respectively.
42658         * INSTALL: Regenerated.
42659         * configure: Likewise.
42660         * sysdeps/gnu/configure: Likewise.
42661         * sysdeps/i386/configure: Likewise.
42662         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42663         * sysdeps/mach/configure: Likewise.
42664         * sysdeps/mach/hurd/configure: Likewise.
42665         * sysdeps/powerpc/configure: Likewise.
42666         * sysdeps/powerpc/powerpc32/configure: Likewise.
42667         * sysdeps/powerpc/powerpc64/configure: Likewise.
42668         * sysdeps/s390/s390-32/configure: Likewise.
42669         * sysdeps/s390/s390-64/configure: Likewise.
42670         * sysdeps/sh/configure: Likewise.
42671         * sysdeps/sparc/configure: Likewise.
42672         * sysdeps/unix/sysv/linux/configure: Likewise.
42673         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42674         * sysdeps/x86_64/configure: Likewise.
42675         * sysdeps/x86_64/preconfigure: Likewise.
42676
42677 2013-10-29  Andreas Schwab  <schwab@suse.de>
42678
42679         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42680
42681 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42682
42683         * benchtests/pow-inputs: Add new inputs.
42684
42685         * benchtests/exp-inputs: Add new inputs.
42686
42687         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42688         conditional check for return value.
42689         (__cos32): Likewise.
42690
42691 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42692
42693         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42694         to provide a boost for large inputs with word alignment.
42695         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42696         implementation based on optimized PPC64 strcpy.
42697         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42698         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42699         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42700         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42701
42702 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42703
42704         [BZ #2801]
42705         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42706
42707 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42708
42709         [BZ #14876]
42710         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42711         * time/tst-strptime.c (day_tests): Add testcase.
42712
42713 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42714
42715         [BZ #14029]
42716         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42717
42718 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42719
42720         [BZ #16074]
42721         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42722         MAP_FAILED on error.
42723
42724 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42725
42726         [BZ #16072]
42727         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42728         heap for large requests.
42729
42730 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42731
42732         [BZ #9954]
42733         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42734         result if the result has no associated interface.
42735         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42736         interface for all 127.X.Y.Z addresses.
42737
42738 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42739
42740         * locale/iso-639.def: Add Ligurian (lij)
42741
42742 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42743
42744         [BZ #15825]
42745         * sunrpc/rpc_main.c: Document rpcgen -5.
42746
42747 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42748
42749         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42750
42751 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42752
42753         [BZ #10278]
42754         * posix/glob.c: Match only directories when trailing slash is present.
42755         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42756         (main): Add testcase.
42757
42758 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42759
42760         [BZ #15670]
42761         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42762
42763 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42764
42765         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42766         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42767         AUTH_DES and cindex for FIPS 140-2.
42768         (DES Encryption): Add cindex FIPS 46-3.
42769
42770         * locale/locarchive.h (struct locarhandle): Add fname.
42771         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42772         if an optional argument was specified to --list-archive,
42773         otherwise NULL.
42774         * locale/programs/locarchive.c (show_archive_content): Take new
42775         argument fname and pass it via ah.fname to open_archive.
42776         * locale/programs/localedef.h: Update decl.
42777         (open_archive): If AH->fname is non-null, open that file
42778         rather than the default file name, and don't ignore ENOENT.
42779         (create_archive): Set AH.fname to NULL.
42780         (delete_locales_from_archive): Likewise.
42781         (add_locales_to_archive): Likewise.
42782         * locale/programs/locfile.c (write_all_categories): Likewise.
42783
42784 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42785             Aldy Hernandez  <aldyh@redhat.com>
42786
42787         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42788         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42789         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42790         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42791         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42792         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42793         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42794         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42795         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42796         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42797         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42798         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42799         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42800         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42801         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42802         Likewise.
42803         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42804         Likewise.
42805         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42806         Likewise.
42807         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42808         Likewise.
42809         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42810         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42811         Likewise.
42812         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42813         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42814         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42815         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42816         Likewise.
42817         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42818         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42819         * sysdeps/powerpc/preconfigure: Likewise.
42820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42821         Likewise.
42822         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42823         Replace contents of file by #include of <fenv_libc.h>.
42824         * sysdeps/powerpc/soft-fp/sfp-machine.h
42825         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42826         and <sys/prctl.h>.
42827         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42828         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42829         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42830         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42831         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42832         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42833         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42834         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42835         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42836         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42837         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42838         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42840         Allow copysignl PLT reference to be missing.
42841
42842 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42843             Joseph Myers  <joseph@codesourcery.com
42844
42845         [BZ #15948]
42846         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42847         single character.
42848         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42849
42850 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42851
42852         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42853         * elf/tst-tls1.c: Likewise.
42854         * elf/tst-tls10.h: Likewise.
42855         * elf/tst-tls14.c: Likewise.
42856         * elf/tst-tls2.c: Likewise.
42857         * elf/tst-tls3.c: Likewise.
42858         * elf/tst-tls4.c: Likewise.
42859         * elf/tst-tls5.c: Likewise.
42860         * elf/tst-tls6.c: Likewise.
42861         * elf/tst-tls7.c: Likewise.
42862         * elf/tst-tls8.c: Likewise.
42863         * elf/tst-tls9.c: Likewise.
42864         * elf/tst-tlsmod1.c: Likewise.
42865         * elf/tst-tlsmod13.c: Likewise.
42866         * elf/tst-tlsmod13a.c: Likewise.
42867         * elf/tst-tlsmod14a.c: Likewise.
42868         * elf/tst-tlsmod16a.c: Likewise.
42869         * elf/tst-tlsmod16b.c: Likewise.
42870         * elf/tst-tlsmod2.c: Likewise.
42871         * elf/tst-tlsmod3.c: Likewise.
42872         * elf/tst-tlsmod4.c: Likewise.
42873         * elf/tst-tlsmod5.c: Likewise.
42874         * elf/tst-tlsmod6.c: Likewise.
42875
42876 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42877
42878         [BZ #12486]
42879         * malloc/malloc.c: remove checks for statistics.
42880
42881 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42882
42883         [BZ #15277]
42884         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42885         * inet/tst-network.c: Add testcase.
42886
42887 2013-10-17  Andreas Schwab  <schwab@suse.de>
42888
42889         [BZ #15218]
42890         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42891         to determine canonical name.
42892
42893 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42894
42895         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42896         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42897         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42898         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42899         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42900         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42901         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42902         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42903         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42904         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42905         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42906         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42907         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42908         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42909         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42910         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42911         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42912         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42913         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42914         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42915         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42916         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42917         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42918         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42919         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42920         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42921         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42922         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42923         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42924         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42925         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42926         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42927         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42928         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42929         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42930         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42931         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42932         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42933         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42934         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42935         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42936         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42937         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42938         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42939         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42940         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42941         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42942         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42943         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42944         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42945         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42946         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42947         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42948         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42949         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42950         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42951         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42952         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42953
42954 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42955
42956         [BZ #16041]
42957         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42958         make result into a quiet NaN.
42959
42960 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42961
42962         * soft-fp/adddf3.c: Fix horizontal whitespace.
42963         * soft-fp/addsf3.c: Likewise.
42964         * soft-fp/addtf3.c: Likewise.
42965         * soft-fp/divdf3.c: Likewise.
42966         * soft-fp/divsf3.c: Likewise.
42967         * soft-fp/divtf3.c: Likewise.
42968         * soft-fp/double.h: Likewise.
42969         * soft-fp/eqdf2.c: Likewise.
42970         * soft-fp/eqsf2.c: Likewise.
42971         * soft-fp/eqtf2.c: Likewise.
42972         * soft-fp/extenddftf2.c: Likewise.
42973         * soft-fp/extended.h: Likewise.
42974         * soft-fp/extendsfdf2.c: Likewise.
42975         * soft-fp/extendsftf2.c: Likewise.
42976         * soft-fp/extendxftf2.c: Likewise.
42977         * soft-fp/fixdfdi.c: Likewise.
42978         * soft-fp/fixdfsi.c: Likewise.
42979         * soft-fp/fixdfti.c: Likewise.
42980         * soft-fp/fixsfdi.c: Likewise.
42981         * soft-fp/fixsfsi.c: Likewise.
42982         * soft-fp/fixsfti.c: Likewise.
42983         * soft-fp/fixtfdi.c: Likewise.
42984         * soft-fp/fixtfsi.c: Likewise.
42985         * soft-fp/fixtfti.c: Likewise.
42986         * soft-fp/fixunsdfdi.c: Likewise.
42987         * soft-fp/fixunsdfsi.c: Likewise.
42988         * soft-fp/fixunsdfti.c: Likewise.
42989         * soft-fp/fixunssfdi.c: Likewise.
42990         * soft-fp/fixunssfsi.c: Likewise.
42991         * soft-fp/fixunssfti.c: Likewise.
42992         * soft-fp/fixunstfdi.c: Likewise.
42993         * soft-fp/fixunstfsi.c: Likewise.
42994         * soft-fp/fixunstfti.c: Likewise.
42995         * soft-fp/floatdidf.c: Likewise.
42996         * soft-fp/floatdisf.c: Likewise.
42997         * soft-fp/floatditf.c: Likewise.
42998         * soft-fp/floatsidf.c: Likewise.
42999         * soft-fp/floatsisf.c: Likewise.
43000         * soft-fp/floatsitf.c: Likewise.
43001         * soft-fp/floattidf.c: Likewise.
43002         * soft-fp/floattisf.c: Likewise.
43003         * soft-fp/floattitf.c: Likewise.
43004         * soft-fp/floatundidf.c: Likewise.
43005         * soft-fp/floatundisf.c: Likewise.
43006         * soft-fp/floatunditf.c: Likewise.
43007         * soft-fp/floatunsidf.c: Likewise.
43008         * soft-fp/floatunsisf.c: Likewise.
43009         * soft-fp/floatunsitf.c: Likewise.
43010         * soft-fp/floatuntidf.c: Likewise.
43011         * soft-fp/floatuntisf.c: Likewise.
43012         * soft-fp/floatuntitf.c: Likewise.
43013         * soft-fp/fmadf4.c: Likewise.
43014         * soft-fp/fmasf4.c: Likewise.
43015         * soft-fp/fmatf4.c: Likewise.
43016         * soft-fp/gedf2.c: Likewise.
43017         * soft-fp/gesf2.c: Likewise.
43018         * soft-fp/getf2.c: Likewise.
43019         * soft-fp/ledf2.c: Likewise.
43020         * soft-fp/lesf2.c: Likewise.
43021         * soft-fp/letf2.c: Likewise.
43022         * soft-fp/muldf3.c: Likewise.
43023         * soft-fp/mulsf3.c: Likewise.
43024         * soft-fp/multf3.c: Likewise.
43025         * soft-fp/negdf2.c: Likewise.
43026         * soft-fp/negsf2.c: Likewise.
43027         * soft-fp/negtf2.c: Likewise.
43028         * soft-fp/op-1.h: Likewise.
43029         * soft-fp/op-2.h: Likewise.
43030         * soft-fp/op-4.h: Likewise.
43031         * soft-fp/op-8.h: Likewise.
43032         * soft-fp/op-common.h: Likewise.
43033         * soft-fp/quad.h: Likewise.
43034         * soft-fp/single.h: Likewise.
43035         * soft-fp/soft-fp.h: Likewise.
43036         * soft-fp/sqrtdf2.c: Likewise.
43037         * soft-fp/sqrtsf2.c: Likewise.
43038         * soft-fp/sqrttf2.c: Likewise.
43039         * soft-fp/subdf3.c: Likewise.
43040         * soft-fp/subsf3.c: Likewise.
43041         * soft-fp/subtf3.c: Likewise.
43042         * soft-fp/truncdfsf2.c: Likewise.
43043         * soft-fp/trunctfdf2.c: Likewise.
43044         * soft-fp/trunctfsf2.c: Likewise.
43045         * soft-fp/trunctfxf2.c: Likewise.
43046         * soft-fp/unorddf2.c: Likewise.
43047         * soft-fp/unordsf2.c: Likewise.
43048         * soft-fp/unordtf2.c: Likewise.
43049
43050 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
43051
43052         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
43053         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
43054
43055 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
43056
43057         * elf/dl-libc.c: Clear initfini list after freeing.
43058
43059 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
43060
43061         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
43062         * soft-fp/addsf3.c: Likewise.
43063         * soft-fp/addtf3.c: Likewise.
43064         * soft-fp/divdf3.c: Likewise.
43065         * soft-fp/divsf3.c: Likewise.
43066         * soft-fp/divtf3.c: Likewise.
43067         * soft-fp/double.h: Likewise.
43068         * soft-fp/eqdf2.c: Likewise.
43069         * soft-fp/eqsf2.c: Likewise.
43070         * soft-fp/eqtf2.c: Likewise.
43071         * soft-fp/extenddftf2.c: Likewise.
43072         * soft-fp/extended.h: Likewise.
43073         * soft-fp/extendsfdf2.c: Likewise.
43074         * soft-fp/extendsftf2.c: Likewise.
43075         * soft-fp/extendxftf2.c: Likewise.
43076         * soft-fp/fixdfdi.c: Likewise.
43077         * soft-fp/fixdfsi.c: Likewise.
43078         * soft-fp/fixdfti.c: Likewise.
43079         * soft-fp/fixsfdi.c: Likewise.
43080         * soft-fp/fixsfsi.c: Likewise.
43081         * soft-fp/fixsfti.c: Likewise.
43082         * soft-fp/fixtfdi.c: Likewise.
43083         * soft-fp/fixtfsi.c: Likewise.
43084         * soft-fp/fixtfti.c: Likewise.
43085         * soft-fp/fixunsdfdi.c: Likewise.
43086         * soft-fp/fixunsdfsi.c: Likewise.
43087         * soft-fp/fixunsdfti.c: Likewise.
43088         * soft-fp/fixunssfdi.c: Likewise.
43089         * soft-fp/fixunssfsi.c: Likewise.
43090         * soft-fp/fixunssfti.c: Likewise.
43091         * soft-fp/fixunstfdi.c: Likewise.
43092         * soft-fp/fixunstfsi.c: Likewise.
43093         * soft-fp/fixunstfti.c: Likewise.
43094         * soft-fp/floatdidf.c: Likewise.
43095         * soft-fp/floatdisf.c: Likewise.
43096         * soft-fp/floatditf.c: Likewise.
43097         * soft-fp/floatsidf.c: Likewise.
43098         * soft-fp/floatsisf.c: Likewise.
43099         * soft-fp/floatsitf.c: Likewise.
43100         * soft-fp/floattidf.c: Likewise.
43101         * soft-fp/floattisf.c: Likewise.
43102         * soft-fp/floattitf.c: Likewise.
43103         * soft-fp/floatundidf.c: Likewise.
43104         * soft-fp/floatundisf.c: Likewise.
43105         * soft-fp/floatunsidf.c: Likewise.
43106         * soft-fp/floatunsisf.c: Likewise.
43107         * soft-fp/floatuntidf.c: Likewise.
43108         * soft-fp/floatuntisf.c: Likewise.
43109         * soft-fp/floatuntitf.c: Likewise.
43110         * soft-fp/fmadf4.c: Likewise.
43111         * soft-fp/fmasf4.c: Likewise.
43112         * soft-fp/fmatf4.c: Likewise.
43113         * soft-fp/gedf2.c: Likewise.
43114         * soft-fp/gesf2.c: Likewise.
43115         * soft-fp/getf2.c: Likewise.
43116         * soft-fp/ledf2.c: Likewise.
43117         * soft-fp/lesf2.c: Likewise.
43118         * soft-fp/letf2.c: Likewise.
43119         * soft-fp/muldf3.c: Likewise.
43120         * soft-fp/mulsf3.c: Likewise.
43121         * soft-fp/multf3.c: Likewise.
43122         * soft-fp/negdf2.c: Likewise.
43123         * soft-fp/negsf2.c: Likewise.
43124         * soft-fp/negtf2.c: Likewise.
43125         * soft-fp/op-1.h: Likewise.
43126         * soft-fp/op-2.h: Likewise.
43127         * soft-fp/op-4.h: Likewise.
43128         * soft-fp/op-8.h: Likewise.
43129         * soft-fp/op-common.h: Likewise.
43130         * soft-fp/quad.h: Likewise.
43131         * soft-fp/single.h: Likewise.
43132         * soft-fp/soft-fp.h: Likewise.
43133         * soft-fp/sqrtdf2.c: Likewise.
43134         * soft-fp/sqrtsf2.c: Likewise.
43135         * soft-fp/sqrttf2.c: Likewise.
43136         * soft-fp/subdf3.c: Likewise.
43137         * soft-fp/subsf3.c: Likewise.
43138         * soft-fp/subtf3.c: Likewise.
43139         * soft-fp/truncdfsf2.c: Likewise.
43140         * soft-fp/trunctfdf2.c: Likewise.
43141         * soft-fp/trunctfsf2.c: Likewise.
43142         * soft-fp/trunctfxf2.c: Likewise.
43143         * soft-fp/unorddf2.c: Likewise.
43144         * soft-fp/unordsf2.c: Likewise.
43145         * soft-fp/unordtf2.c: Likewise.
43146
43147 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
43148
43149         [BZ #15672]
43150         * misc/error.c (error_tail): Fix possible buffer overflow.
43151
43152 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
43153
43154         [BZ #13028]
43155         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
43156         address.
43157
43158 2013-10-14  P. J. McDermott  <pj@pehjota.net>
43159
43160         [BZ #832]
43161         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
43162         testing pipefail option.
43163
43164 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43165
43166         * soft-fp/double.h: Indent preprocessor directives inside #if.
43167         * soft-fp/extended.h: Likewise.
43168         * soft-fp/op-2.h: Likewise.
43169         * soft-fp/op-4.h: Likewise.
43170         * soft-fp/op-common.h: Likewise.
43171         * soft-fp/quad.h: Likewise.
43172         * soft-fp/single.h: Likewise.
43173         * soft-fp/soft-fp.h: Likewise.
43174
43175 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
43176
43177         * iconv/iconv_prog.c: Fix typos.
43178         * stdio-common/psiginfo-data.h: Likewise.
43179
43180 2013-10-12   Reuben Thomas <rrt@sc3d.org>
43181
43182         [BZ #15764]
43183         * locale/setlocale.c: Fix typo.
43184
43185 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43186
43187         [BZ #16036]
43188         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
43189         signaling NaN arguments.
43190         * soft-fp/unordsf2.c (__unordsf2): Likewise.
43191         * soft-fp/unordtf2.c (__unordtf2): Likewise.
43192
43193         [BZ #14910]
43194         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
43195         unordered operands.
43196         * soft-fp/gesf2.c (__gesf2): Likewise.
43197         * soft-fp/getf2.c (__getf2): Likewise.
43198         * soft-fp/ledf2.c (__ledf2): Likewise.
43199         * soft-fp/lesf2.c (__lesf2): Likewise.
43200         * soft-fp/letf2.c (__letf2): Likewise.
43201
43202         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
43203         * soft-fp/eqsf2.c (__eqsf2): Likewise.
43204         * soft-fp/eqtf2.c (__eqtf2): Likewise.
43205         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
43206         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
43207         * soft-fp/fixdfti.c (__fixdfti): Likewise.
43208         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
43209         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
43210         * soft-fp/fixsfti.c (__fixsfti): Likewise.
43211         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
43212         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
43213         * soft-fp/fixtfti.c (__fixtfti): Likewise.
43214         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
43215         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
43216         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
43217         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
43218         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
43219         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
43220         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
43221         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
43222         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
43223         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
43224         * soft-fp/floatdisf.c (__floatdisf): Likewise.
43225         * soft-fp/floatsisf.c (__floatsisf): Likewise.
43226         * soft-fp/floattidf.c (__floattidf): Likewise.
43227         * soft-fp/floattisf.c (__floattisf): Likewise.
43228         * soft-fp/floattitf.c (__floattitf): Likewise.
43229         * soft-fp/floatundidf.c (__floatundidf): Likewise.
43230         * soft-fp/floatundisf.c (__floatundisf): Likewise.
43231         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
43232         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
43233         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
43234         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
43235         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
43236         * soft-fp/gesf2.c (__gesf2): Likewise.
43237         * soft-fp/getf2.c (__getf2): Likewise.
43238         * soft-fp/ledf2.c (__ledf2): Likewise.
43239         * soft-fp/lesf2.c (__lesf2): Likewise.
43240         * soft-fp/letf2.c (__letf2): Likewise.
43241
43242         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
43243         Undefine and redefine.
43244         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
43245         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
43246         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
43247         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
43248         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43249         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
43250         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43251         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
43252         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43253         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
43254         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43255         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
43256         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43257         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
43258         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43259
43260         [BZ #16032]
43261         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
43262         without decrementing exponent if mantissa >= that for the
43263         denominator, not >.
43264         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
43265         denominator, not >.  Decrement exponent in < case instead of
43266         incrementing in >= case.
43267         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
43268         without decrementing exponent if mantissa >= that for the
43269         denominator, not >.
43270
43271         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
43272         computing saturated result for unsigned overflow.
43273
43274 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43275             Jeff Law  <law@redhat.com>
43276
43277         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
43278         (atan2Mp): Add systemtap probe marker.
43279         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
43280         (__ieee754_log): Add systemtap probe marker.
43281         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43282         (atanMp): Add systemtap probe marker.
43283         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
43284         (tanMp): Add systemtap probe marker.
43285         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
43286         (__slowexp): Add systemtap probe marker.
43287         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
43288         (__slowpow): Add systemtap probe marker.
43289         * manual/probes.texi: Document probes.
43290
43291 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
43292
43293         [BZ #15362]
43294         * libio/fileops.c (_IO_new_file_write): Return count of bytes
43295         written.
43296         (_IO_new_file_xsputn): Don't return EOF if nothing has been
43297         written.
43298         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
43299         written to buffer but not flushed.
43300         * libio/iofwrite_u.c:  Likewise.
43301         * libio/iopadn.c:  Return bytes returned even if EOF was
43302         encountered.
43303         * libio/iowpadn.c:  Likewise.
43304         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
43305         if _IO_padn does not write the whole buffer.
43306         [!COMPILE_WPRINTF] (PAD): Likewise.
43307
43308 2013-10-10  David S. Miller  <davem@davemloft.net>
43309
43310         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
43311         directory block.
43312
43313 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43314
43315         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
43316         instead of FSF address.
43317         * soft-fp/fixdfti.c: Likewise.
43318         * soft-fp/fixsfti.c: Likewise.
43319         * soft-fp/fixtfti.c: Likewise.
43320         * soft-fp/fixunsdfti.c: Likewise.
43321         * soft-fp/fixunssfti.c: Likewise.
43322         * soft-fp/fixunstfti.c: Likewise.
43323         * soft-fp/floattidf.c: Likewise.
43324         * soft-fp/floattisf.c: Likewise.
43325         * soft-fp/floattitf.c: Likewise.
43326         * soft-fp/floatuntidf.c: Likewise.
43327         * soft-fp/floatuntisf.c: Likewise.
43328         * soft-fp/floatuntitf.c: Likewise.
43329         * soft-fp/trunctfxf2.c: Likewise.
43330
43331         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
43332         * soft-fp/fixdfti.c: Likewise.
43333         * soft-fp/fixsfti.c: Likewise.
43334         * soft-fp/fixtfti.c: Likewise.
43335         * soft-fp/fixunsdfti.c: Likewise.
43336         * soft-fp/fixunssfti.c: Likewise.
43337         * soft-fp/fixunstfti.c: Likewise.
43338         * soft-fp/floattidf.c: Likewise.
43339         * soft-fp/floattisf.c: Likewise.
43340         * soft-fp/floattitf.c: Likewise.
43341         * soft-fp/floatuntidf.c: Likewise.
43342         * soft-fp/floatuntisf.c: Likewise.
43343         * soft-fp/floatuntitf.c: Likewise.
43344         * soft-fp/trunctfxf2.c: Likewise.
43345
43346 2013-10-10  David S. Miller  <davem@davemloft.net>
43347
43348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43349
43350 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
43351
43352         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
43353         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
43354         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
43355         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
43356         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
43357         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
43358         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
43359
43360         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
43361         for NaNs before doing comparisons on argument.
43362         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
43363         Likewise.
43364
43365 2013-10-10  Will Newton  <will.newton@linaro.org>
43366
43367         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43368         passed to _int_memalign does not overflow.
43369
43370 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43371
43372         * scripts/bench.pl: Add include-sources directive.
43373         * benchtests/README: Update documentation.
43374
43375 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43376
43377         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43378         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43379         instead of FP_INIT_ROUNDMODE.
43380         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43381         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43382
43383         [BZ #16034]
43384         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43385         copy class of input value.
43386         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43387         not handle exceptions.
43388         * soft-fp/negsf2.c (__negsf2): Likewise.
43389         * soft-fp/negtf2.c (__negtf2): Likewise.
43390         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43391
43392 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43393
43394         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43395         semicolon.  From Linux kernel.
43396
43397 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43398
43399         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43400
43401 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43402
43403         [BZ #156]
43404         * manual/socket.texi: Added statement about buffer
43405         for gethostbyname2_r.
43406
43407 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43408
43409         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43410         Use .p2align directive instead, throughout.
43411         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43412         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43413         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43414         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43415         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43416         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43417         * sysdeps/x86_64/strchr.S: Likewise.
43418         * sysdeps/x86_64/strrchr.S: Likewise.
43419
43420 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43421
43422         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43423
43424         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43425
43426         * sysdeps/generic/math_private.h (__mpsin1): Remove
43427         declaration.
43428         (__mpcos1): Likewise.
43429         (__mpsin): New argument __range_reduce.
43430         (__mpcos): Likewise.
43431         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43432         (slow): Use __mpsin and __mpcos.
43433         (slow1): Likewise.
43434         (slow2): Likewise.
43435         (sloww): Likewise.
43436         (sloww1): Likewise.
43437         (sloww2): Likewise.
43438         (bsloww): Likewise.
43439         (bsloww1): Likewise.
43440         (bsloww2): Likewise.
43441         (cslow2): Likewise.
43442         (csloww): Likewise.
43443         (csloww1): Likewise.
43444         (csloww2): Likewise.
43445         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43446         range_reduce.  Merge in __mpsin1.
43447         (__mpcos): Likewise.
43448         (__mpsin1): Remove.
43449         (__mpcos1): Likewise.
43450
43451 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43452
43453         * locale/loadlocale.c (_nl_intern_locale_data): Use
43454         LOCFILE_ALIGNED_P.
43455         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43456         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43457         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43458         obstack data is appropriately aligned.
43459         (obstack_int32_grow_fast): Likewise.
43460         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43461         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43462         (add_locale_uint32_array): Likewise.
43463
43464 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43465
43466         * benchtests/Makefile: Remove ARGLIST and RET variables.
43467         ($(objpfx)bench-%.c): Pass only function name to the script.
43468         * benchtests/README: Update documentation.
43469         * benchtests/acos-inputs: Add new directives.
43470         * benchtests/acosh-inputs: Likewise.
43471         * benchtests/asin-inputs: Likewise.
43472         * benchtests/asinh-inputs: Likewise.
43473         * benchtests/atan-inputs: Likewise.
43474         * benchtests/atanh-inputs: Likewise.
43475         * benchtests/cos-inputs: Likewise.
43476         * benchtests/cosh-inputs: Likewise.
43477         * benchtests/exp-inputs: Likewise.
43478         * benchtests/log-inputs: Likewise.
43479         * benchtests/pow-inputs: Likewise.
43480         * benchtests/rint-inputs: Likewise.
43481         * benchtests/sin-inputs: Likewise.
43482         * benchtests/sinh-inputs: Likewise.
43483         * benchtests/tan-inputs: Likewise.
43484         * benchtests/tanh-inputs: Likewise.
43485         * scripts/bench.pl: Add support for new directives.
43486
43487 2013-10-07  Alan Modra  <amodra@gmail.com>
43488
43489         * README: Fix careless merge.
43490
43491 2013-10-05  Alan Modra  <amodra@gmail.com>
43492
43493         * NEWS: Mention powerpc64le support and bugs fixed.
43494         * README: Both big-endian and little-endian powerpc64 supported.
43495
43496 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43497
43498         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43499         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43500         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43501         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43502
43503 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43504
43505         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43506         match prototype.
43507
43508 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43509
43510         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43511         Move -mhard-float appending from
43512         ports/sysdeps/powerpc/powerpc32/Makefile.
43513         [$(with-fp) = yes] (ASFLAGS): Likewise.
43514         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43515         * sysdeps/powerpc/nofpu: Move directory from
43516         ports/sysdeps/powerpc/nofpu.
43517         * sysdeps/powerpc/soft-fp: Move directory from
43518         ports/sysdeps/powerpc/soft-fp.
43519         * sysdeps/powerpc/powerpc32/405: Move directory from
43520         ports/sysdeps/powerpc/powerpc32/405.
43521         * sysdeps/powerpc/powerpc32/440: Move directory from
43522         ports/sysdeps/powerpc/powerpc32/440.
43523         * sysdeps/powerpc/powerpc32/464: Move directory from
43524         ports/sysdeps/powerpc/powerpc32/464.
43525         * sysdeps/powerpc/powerpc32/476: Move directory from
43526         ports/sysdeps/powerpc/powerpc32/476.
43527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43528         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43530         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43532         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43534         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43536         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43537         * README: Update for powerpc-*-linux-gnu software floating point
43538         support in libc.
43539
43540         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43541         case to powerpc/powerpc32*.
43542         * sysdeps/unix/sysv/linux/configure: Regenerated.
43543
43544         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43545         (_FPU_MASK_OM): Define as 0x04.
43546         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43547         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43548         0x00c10080.
43549         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43550         0x0000003c.
43551         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43552
43553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43554         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43555         getcontext_e500.
43556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43557         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43558         setcontext_e500.
43559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43560         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43561         and setcontext_e500.
43562
43563 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43564
43565         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43566
43567 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43568
43569         * manual/threads.texi (Default Thread Attributes): Fix typo.
43570
43571 2013-10-04  Will Newton  <will.newton@linaro.org>
43572
43573         * malloc/Makefile: Add tst-memalign.
43574         * malloc/tst-memalign.c: New file.
43575
43576         * malloc/tst-posix_memalign.c: Add comments.
43577         (do_test): Add comments and call free on all potentially
43578         allocated pointers. Add space after cast.
43579
43580         * malloc/tst-pvalloc.c: Add comments.
43581         (do_test): Add comments and call free on all potentially
43582         allocated pointers. Remove duplicate check for NULL pointer.
43583         Add space after cast.
43584
43585         * malloc/tst-valloc.c: Add comments.
43586         (do_test): Add comments and call free on all potentially
43587         allocated pointers. Remove duplicate check for NULL pointer.
43588         Add space after cast.
43589
43590 2013-10-04  Alan Modra  <amodra@gmail.com>
43591
43592         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43593         Use stdint types in rather than __attribute__((mode())).
43594         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43595
43596 2013-10-04  Alan Modra  <amodra@gmail.com>
43597
43598         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43599         Correct handling of unaligned relocs for little-endian.
43600         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43601
43602 2013-10-04  Alan Modra  <amodra@gmail.com>
43603
43604         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43605         * configure: Regenerate.
43606         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43607         * shlib-versions: Likewise.
43608
43609 2013-10-04  Alan Modra  <amodra@gmail.com>
43610
43611         * string/tester.c (test_memrchr): Increment reported test cycle.
43612
43613 2013-10-04  Alan Modra  <amodra@gmail.com>
43614
43615         * string/test-memcpy.c (do_one_test): When reporting errors, print
43616         string address and don't overrun end of string.
43617
43618 2013-10-04  Alan Modra  <amodra@gmail.com>
43619
43620         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43621         insrdi.  Make better use of reg selection to speed exit slightly.
43622         Schedule entry path a little better.  Remove useless "are we done"
43623         checks on entry to main loop.  Handle wrapping around zero address.
43624         Correct main loop count.  Handle single left-over word from main
43625         loop inline rather than by using loop_small.  Remove extra word
43626         case in loop_small caused by wrong loop count.  Add little-endian
43627         support.
43628         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43629         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43630         cache hint.
43631         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43632         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43633         support.  Avoid rlwimi.
43634         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43635
43636 2013-10-04  Alan Modra  <amodra@gmail.com>
43637
43638         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43639         insrdi.  Formatting.
43640         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43641         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43642         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43643         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43644         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43645         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43646
43647 2013-10-04  Alan Modra  <amodra@gmail.com>
43648
43649         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43650         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43651         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43652         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43653         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43654         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43655         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43656         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43657         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43658         use of regs.  Use power7 mtocrf.  Tidy function tails.
43659
43660 2013-10-04  Alan Modra  <amodra@gmail.com>
43661
43662         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43663         Formatting.  Consistently use rXXX register defines or rN defines.
43664         Use early exit labels that avoid restoring unused non-volatile regs.
43665         Make cr field use more consistent with rWORDn compares.  Rename
43666         regs used as shift registers for unaligned loop, using rN defines
43667         for short lifetime/multiple use regs.
43668         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43669         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43670         addi 1,1,64 to pop stack frame.  Simplify return value code.
43671         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43672
43673 2013-10-04  Alan Modra  <amodra@gmail.com>
43674
43675         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43676         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43677         rather than rlwimi.
43678         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43679         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43680         little-endian support.  Correct typos.
43681         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43682         rather than rlwimi.
43683         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43684         in loop and entry code to keep "and." results.
43685         (strchr): Add little-endian support.  Comment.  Move cntlzd
43686         earlier in tail.
43687         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43688
43689 2013-10-04  Alan Modra  <amodra@gmail.com>
43690
43691         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43692         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43693         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43694         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43695
43696 2013-10-04  Alan Modra  <amodra@gmail.com>
43697
43698         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43699         (rTMP): Define as r11.
43700         (strcmp): Add little-endian support.  Optimise tail.
43701         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43702         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43703         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43704         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43705         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43706         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43707         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43708
43709 2013-10-04  Alan Modra  <amodra@gmail.com>
43710
43711         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43712         little-endian support.  Remove unnecessary "are we done" tests.
43713         Handle "s" wrapping around zero and extremely large "size".
43714         Correct main loop count.  Handle single left-over word from main
43715         loop inline rather than by using small_loop.  Correct comments.
43716         Delete "zero" tail, use "end_max" instead.
43717         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43718
43719 2013-10-04  Alan Modra  <amodra@gmail.com>
43720
43721         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43722         support.  Don't branch over align.
43723         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43724         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43725         support.  Rearrange tmp reg use to suit.  Comment.
43726         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43727
43728 2013-10-04  Alan Modra  <amodra@gmail.com>
43729
43730         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43731
43732 2013-10-04  Alan Modra  <amodra@gmail.com>
43733
43734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43735         conditional form of branch and link when obtaining pc.
43736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43737
43738 2013-10-04  Alan Modra  <amodra@gmail.com>
43739
43740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43741         HIWORD/LOWORD.
43742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43744
43745 2013-10-04  Alan Modra  <amodra@gmail.com>
43746
43747         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43748         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43749         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43750         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43751         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43752         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43753         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43754         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43755         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43756         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43757
43758 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43759             Alistair Popple <alistair@ozlabs.au.ibm.com>
43760             Alan Modra <amodra@gmail.com>
43761
43762         [BZ #15723]
43763         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43764         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43765         _dl_hwcap access for little-endian.
43766         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43767         destroy vmx regs when saving unaligned.
43768         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43769         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43770         destroy vmx regs when saving unaligned.
43771
43772 2013-10-04  Alan Modra  <amodra@gmail.com>
43773
43774         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43775         Don't use a union to pack hi/low value.
43776
43777 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43778
43779         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43780         for little-endian.
43781         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43782         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43783         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43784         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43785         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43786
43787 2013-10-04  Alan Modra  <amodra@gmail.com>
43788
43789         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43790         constants to usual value for .cst8 section, and remove redundant
43791         high address load.
43792         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43793         constant for 0x1p52.  Load little-endian words of double from
43794         correct stack offsets.
43795
43796 2013-10-04  Alan Modra  <amodra@gmail.com>
43797
43798         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43799         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43800         words of double from correct stack offsets.
43801         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43802         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43803         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43804         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43805         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43806         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43807         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43808         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43809         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43810         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43811         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43812         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43813         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43814         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43815         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43816         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43817         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43818
43819 2013-10-04  Alan Modra  <amodra@gmail.com>
43820
43821         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43822         64-bit int/double union.
43823         (_FPU_SETCW): Likewise.
43824         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43825         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43826
43827 2013-10-04  Alan Modra  <amodra@gmail.com>
43828
43829         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43830         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43831
43832 2013-10-04  Alan Modra  <amodra@gmail.com>
43833
43834         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43835         use vector int constants.
43836         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43837
43838 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43839
43840         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43841         array with long long.
43842         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43843         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43844         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43845         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43846         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43847         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43848         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43849         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43850         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43851         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43852         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43853         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43854         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43855
43856 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43857
43858         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43859         (__signbit): Likewise.  Correct for little-endian.
43860         (__signbitl): Call __signbit.
43861         (lrint): Correct for little-endian.
43862         (lrintf): Call lrint.
43863
43864 2013-10-04  Alan Modra  <amodra@gmail.com>
43865
43866         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43867         union 32-bit int array member with 64-bit int array.
43868         (t515, tm256): Double rather than long double.
43869         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43870
43871 2013-10-04  Alan Modra  <amodra@gmail.com>
43872
43873         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43874         Delete.
43875         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43876         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43877         version of math_ldbl.h.
43878
43879 2013-10-04  Alan Modra  <amodra@gmail.com>
43880
43881         [BZ #15734], [BZ #15735]
43882         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43883         all uses of ieee875 long double macros and unions.  Simplify test
43884         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43885         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43886         normalize after ldbl_extract_mantissa, and don't add hidden bit
43887         already handled.  Don't treat low word of ieee854 mantissa like
43888         low word of IBM long double and mask off bit when testing for
43889         zero.
43890         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43891         all uses of ieee875 long double macros and unions.  Simplify tests
43892         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43893         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43894         two1022, instead use their values.  Recognise that tests for large
43895         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43896         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43897         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43898         test for 0.0L and nan.  Correct negation.
43899         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43900         ieee875 long double macros and unions.  Correct output for large
43901         magnitude x.  Correct absolute value calculation.
43902         (__erfcl): Likewise.
43903         * math/libm-test.inc: Add tests for errors discovered in IBM long
43904         double versions of fmodl, remainderl, erfl and erfcl.
43905
43906 2013-10-04  Alan Modra  <amodra@gmail.com>
43907
43908         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43909         all uses of ieee854 long double macros and unions.  Simplify tests
43910         for long doubles that are fully specified by the high double.
43911         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43912         Likewise.
43913         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43914         Remove dead code too.
43915         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43916         (__ieee754_ynl): Likewise.
43917         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43918         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43919         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43920         Remove dead code too.
43921         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43922         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43923         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43924         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43925         Simplify.
43926         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43927         Simplify.
43928         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43929         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43930         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43931         Comment on variable precision.
43932         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43933         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43934         Likewise.
43935         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43936         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43937         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43938         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43939         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43940
43941 2013-10-04  Alan Modra  <amodra@gmail.com>
43942
43943         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43944         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43945         all uses of ieee854 long double macros and unions.
43946         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43947         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43948         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43949         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43950         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43951         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43952         Likewise.
43953         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43954         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43955         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43956         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43957         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43958         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43959         Simplify sign and nan test too.
43960         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43961         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43962         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43963         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43964         Likewise.
43965         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43966         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43967         Likewise.
43968         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43969         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43970         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43971         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43972         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43973         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43974
43975 2013-10-04  Alan Modra  <amodra@gmail.com>
43976
43977         * stdio-common/printf_size.c (__printf_size): Don't use
43978         union ieee854_long_double in fpnum union.
43979         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43980         signbit macro to retrieve sign from long double.
43981         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43982         retrieve sign from long double.
43983         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43984         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43985         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43986         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43987         * math/test-misc.c (main): Don't use union ieee854_long_double.
43988
43989 2013-10-04  Alan Modra  <amodra@gmail.com>
43990
43991         [BZ #15680]
43992         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43993         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43994         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43995         calculation.  Remove unnecessary test for denormal exponent.
43996         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43997         Correct handling of denormals.  Avoid undefined shift behaviour.
43998         Correct normalisation of low mantissa when low double is denormal.
43999         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
44000         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
44001         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
44002         Correct normalisation of low mantissa.  Test for overflow of high
44003         mantissa and normalise.
44004         (ldbl_nearbyint): Use more readable constant for two52.
44005         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
44006         (__mpn_construct_long_double): Fix test for overflow of high
44007         mantissa and correct normalisation.  Avoid undefined shift.
44008
44009 2013-10-04  Alan Modra  <amodra@gmail.com>
44010
44011         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44012         (union ibm_extended_long_double): Define as an array of ieee754_double.
44013         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
44014         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
44015         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
44016         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
44017         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44018         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
44019         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
44020         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
44021         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
44022         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
44023         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
44024
44025 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
44026
44027         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
44028         page size instead of calling getpagesize.
44029
44030         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
44031         (LOCFILE_ALIGN_MASK): Likewise.
44032         (LOCFILE_ALIGN_UP): Likewise.
44033         (LOCFILE_ALIGNED_P): Likewise.
44034         * locale/programs/ld-collate.c (collate_output): Use the new
44035         macros instead of __alignof__ (int32_t).
44036         * locale/weight.h (findidx): Likewise.
44037
44038 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
44039
44040         [BZ #431]
44041         * manual/string.texi: Fix strncat and wcsncat.
44042
44043 2013-10-03  Brooks Moses  <bmoses@google.com>
44044
44045         [BZ #15915]
44046         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
44047         * Makerules: ...here, and adjust associated comments.
44048
44049 2013-10-02  Will Newton  <will.newton@linaro.org>
44050
44051         * malloc/Makefile: Add tst-pvalloc.
44052         * malloc/tst-pvalloc.c: New file.
44053
44054 2013-10-02  Will Newton  <will.newton@linaro.org>
44055
44056         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
44057         improve test coverage.
44058
44059 2013-10-02  Will Newton  <will.newton@linaro.org>
44060
44061         * malloc/Makefile: Add tst-posix_memalign.
44062         * malloc/tst-posix_memalign.c: New file.
44063
44064 2013-10-01  Eric Blake  <eblake@redhat.com>
44065
44066         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
44067         Use __THROWNL rather than __THROW on static functions.
44068
44069 2013-09-30  Petr Machata  <pmachata@redhat.com>
44070
44071         * elf/elf.h (R_AARCH64_ABS16): New macro.
44072         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
44073         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
44074         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
44075         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
44076         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
44077         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
44078         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
44079         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
44080         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
44081         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
44082         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
44083         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
44084         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
44085         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
44086         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
44087         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
44088         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
44089         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
44090         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
44091         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
44092         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
44093         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
44094         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
44095         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
44096         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
44097         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
44098         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
44099         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
44100         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
44101         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
44102         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
44103         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
44104         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
44105         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
44106         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
44107         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
44108         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
44109         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
44110         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
44111         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
44112         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
44113         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
44114         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
44115         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
44116         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
44117         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
44118         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
44119         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
44120         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
44121         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
44122         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
44123         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
44124         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
44125         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
44126         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
44127         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
44128         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
44129         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
44130         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
44131         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
44132         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
44133         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
44134         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
44135         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
44136         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
44137         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
44138         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
44139         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
44140         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
44141         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
44142         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
44143         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
44144         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
44145         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
44146         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
44147         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
44148         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
44149         (R_AARCH64_TLSDESC_LDR): Likewise.
44150         (R_AARCH64_TLSDESC_ADD): Likewise.
44151         (R_AARCH64_TLSDESC_CALL): Likewise.
44152
44153 2013-09-30  Andreas Schwab  <schwab@suse.de>
44154
44155         [BZ #15048]
44156         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
44157         the nss database lookup.
44158         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44159         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44160
44161 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
44162
44163         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
44164
44165 2013-09-28  P. J. McDermott  <pj@pehjota.net>
44166
44167         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
44168         ${Bash-specific parameter/pattern/string} parameter expansion.
44169         * sysdeps/unix/make-syscalls.sh: Likewise.
44170
44171 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44172
44173         * sysdeps/sh/stackguard-macros.h: New file.
44174
44175 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
44176
44177         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
44178         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
44179         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
44180         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
44181         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44182         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
44183
44184 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44185
44186         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
44187         Fix thread ID register.
44188
44189 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
44190
44191         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
44192         [POSIX || UNIX98]: Require rather than permitting all symbols from
44193         <time.h>.
44194         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
44195         element of struct sched_param.
44196         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
44197         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
44198         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
44199         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
44200         constant.
44201
44202 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
44203
44204         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
44205         argument calculation.
44206
44207 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44208
44209         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
44210         Expect macro.
44211         [POSIX] (pthread_attr_t): Do not require type.
44212         [POSIX] (pthread_cond_t): Likewise.
44213         [POSIX] (pthread_condattr_t): Likewise.
44214         [POSIX] (pthread_key_t): Likewise.
44215         [POSIX] (pthread_mutex_t): Likewise.
44216         [POSIX] (pthread_mutexattr_t): Likewise.
44217         [POSIX] (pthread_once_t): Likewise.
44218         [POSIX] (pthread_t): Likewise.
44219         [POSIX-based standards] (pthread_atfork): Expect function.
44220
44221 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44222             Richard Sandiford  <richard@codesourcery.com>
44223
44224         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
44225         (swap_endianness_p): New extern variable.
44226         (set_big_endian): New inline function.
44227         (maybe_swap_uint32): Likewise.
44228         (maybe_swap_uint32_array): Likewise.
44229         (maybe_swap_uint32_obstack): Likewise.
44230         * locale/programs/locfile.c: Include <stdbool.h>.
44231         (swap_endianness_p): New variable.
44232         (add_locale_uint32): Call maybe_swap_uint32.
44233         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
44234         (write_locale_data): Call maybe_swap_uint32_array.
44235         * locale/programs/ld-collate.c (obstack_int32_grow): Call
44236         maybe_swap_uint32.
44237         (obstack_int32_grow_fast): Likewise.
44238         (output_weightwc): Call maybe_swap_uint32_obstack.
44239         (collate_output): Likewise.
44240         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
44241         (OPT_LITTLE_ENDIAN): Likewise.
44242         (options): Add --little-endian and --big-endian options.
44243         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
44244         * locale/programs/locarchive.c: Include "locfile.h".
44245         (GET): New macro.
44246         (SET): Likewise.
44247         (INC): Likewise.
44248         (create_archive): Use the new macros to access fields of
44249         structures directly mapped from or written to locale archives.
44250         (oldlocrecentcmp): Likewise.
44251         (enlarge_archive): Likewise.
44252         (insert_name): Likewise.
44253         (add_alias): Likewise.
44254         (add_locale): Likewise.
44255         (delete_locales_from_archive): Likewise.
44256         (show_archive_content): Likewise.
44257         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
44258         locale data.
44259
44260 2013-09-24  Roland McGrath  <roland@hack.frob.com>
44261
44262         * manual/freemanuals.texi: Updated from (newly) canonical copy at
44263         http://www.gnu.org/doc/freemanuals.texi.
44264         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
44265
44266 2013-09-24  Will Newton  <will.newton@linaro.org>
44267
44268         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
44269         macro.
44270
44271 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
44272
44273         * locale/hashval.h (compute_hashval): Interpret bytes of key as
44274         unsigned char.
44275
44276 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
44277
44278         * manual/threads.texi (POSIX Threads): Fix a typo.
44279
44280 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
44281
44282         [BZ #14547]
44283         * string/tst-strcoll-overflow.c: New test case.
44284         * string/Makefile (xtests): Add tst-strcoll-overflow.
44285         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
44286         cache if string sizes may cause integer overflow.
44287
44288         [BZ #14547]
44289         * string/strcoll_l.c (coll_seq): New members rule, idx,
44290         save_idx and back_us.
44291         (get_next_seq_nocache): New function.
44292         (do_compare_nocache): New function.
44293         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
44294         when malloc fails.
44295
44296 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
44297
44298         [BZ #15754]
44299         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
44300         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
44301         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
44302
44303         [BZ #15754]
44304         * elf/Makefile (tests): Add tst-ptrguard1.
44305         (tests-static): Add tst-ptrguard1-static.
44306         (tst-ptrguard1-ARGS): Define.
44307         (tst-ptrguard1-static-ARGS): Define.
44308         * elf/tst-ptrguard1.c: New file.
44309         * elf/tst-ptrguard1-static.c: New file.
44310         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
44311         * sysdeps/i386/stackguard-macros.h: Likewise.
44312         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
44313         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
44314         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
44315         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
44316         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
44317         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
44318
44319 2013-09-23  Hector Marco  <hecmargi@upv.es>
44320             Ismael Ripoll  <iripoll@disca.upv.es>
44321             Carlos O'Donell  <carlos@redhat.com>
44322
44323         [BZ #15754]
44324         * sysdeps/generic/stackguard-macros.h: Define
44325         __pointer_chk_guard_local and POINTER_CHK_GUARD.
44326         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
44327         Define __pointer_chk_guard_local.
44328         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
44329         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
44330
44331 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
44332
44333         [BZ #15859]
44334         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
44335
44336 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
44337
44338         * include/string.h (__ffs): Declare as hidden.
44339         * string/ffs.c (__ffs): Define as hidden.
44340         * sysdeps/i386/ffs.c (__ffs): Likewise.
44341         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
44342         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
44343         * sysdeps/s390/ffs.c (__ffs): Likewise.
44344         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
44345
44346 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
44347
44348         * NEWS: Mention malloc probes.
44349
44350         * malloc/arena.c (new_heap): New memory_heap_new probe.
44351         (grow_heap): New memory_heap_more probe.
44352         (shrink_heap): New memory_heap_less probe.
44353         (heap_trim): New memory_heap_free probe.
44354         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
44355         (systrim): New memory_sbrk_less probe.
44356         * manual/probes.texi: Document them.
44357
44358         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
44359         * manual/probes.texi: Document it.
44360
44361         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
44362         (__libc_realloc): Add memory_realloc_retry probe.
44363         (__libc_memalign): Add memory_memalign_retry probe.
44364         (__libc_valloc): Add memory_valloc_retry probe.
44365         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44366         (__libc_calloc): Add memory_calloc_retry probe.
44367         * manual/probes.texi: Document them.
44368
44369         * malloc/arena.c (get_free_list): Add probe
44370         memory_arena_reuse_free_list.
44371         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44372         and memory_arena_reuse.
44373         (arena_get2) [!PER_THREAD]: Likewise.
44374         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44375         memory_arena_reuse_realloc.
44376         * manual/probes.texi: Document them.
44377
44378         * malloc/malloc.c (__libc_free): Add
44379         memory_mallopt_free_dyn_thresholds probe.
44380         (__libc_mallopt): Add multiple memory_mallopt probes.
44381         * manual/probes.texi: Document them.
44382
44383         * malloc/malloc.c: Include stap-probe.h.
44384         (__libc_mallopt): Add memory_mallopt probe.
44385         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44386         * manual/probes.texi: New.
44387         * manual/Makefile (chapters): Add probes.
44388         * manual/threads.texi: Set next node.
44389
44390 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44391
44392         [BZ #15963, #13985]
44393         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44394         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44395         Add `Chinese' to `nan' entry name.
44396
44397 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44398
44399         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44400         (POLYNOMIAL): Likewise.
44401         (TAYLOR_SINCOS): Likewise.
44402         (TAYLOR_SLOW): Likewise.
44403         (__sin): Use TAYLOR_SINCOS.
44404         (__cos): Likewise.
44405         (slow): Use TAYLOR_SLOW.
44406         (sloww): Likewise.
44407         (bsloww): Likewise.
44408         (csloww): Likewise.
44409
44410 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44411
44412         * stdlib/strtod_l.c: Fix buffer overrun.
44413
44414 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44415
44416         * benchtests/Makefile (bench): Add sincos.
44417         * benchtests/bench-sincos.c: New file.
44418
44419         * math/libm-test.inc (cos_test_data): New test inputs.
44420         (sin_test_data): Likewise.
44421
44422         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44423         macro.
44424         (__sin): Use it.
44425         (__cos): Likewise.
44426         (slow1): Likewise.
44427         (slow2): Likewise.
44428         (sloww1): Likewise.
44429         (sloww2): Likewise.
44430         (bsloww1): Likewise.
44431         (bsloww2): Likewise.
44432         (cslow2): Likewise.
44433         (csloww1): Likewise.
44434         (csloww2): Likewise.
44435
44436         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44437         function.
44438         (__sin): Use it.
44439         (__cos): Likewise.
44440
44441         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44442         gotos.
44443         (__cos): Likewise.
44444
44445 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44446
44447         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44448         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44449         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44450         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44451         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44452         * elf/cache.c (print_entry): Handle the new cache flags.
44453
44454 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44455             Aldy Hernandez  <aldyh@redhat.com>
44456
44457         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44458         Change condition to [_SOFT_FLOAT].
44459         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44460         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44461         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44462         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44463         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44464         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44465         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44466         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44467         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44468         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44469         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44470         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44471         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44472         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44473         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44474         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44475         declaration.
44476
44477 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44478
44479         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44480         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44481         (__longjmp): Use LOAD_GP to load saved GPRs.
44482         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44483         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44484         (__sigsetjmp): Use SAVE_GP to save GPRs.
44485
44486         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44487         Do not append -msoft-float.
44488         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44489
44490 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44491
44492         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44493
44494 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44495
44496         [BZ #15966]
44497         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44498         (_FPU_GETCW): Use initial "__" on variable and field names but not
44499         on macro parameter name.
44500         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44501         parentheses around reference to macro parameter.
44502
44503 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44504
44505         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44506         prototype.
44507         (ctype_startup): Use uint32_t in cast and sizeof for
44508         ctype->charnames.
44509
44510 2013-09-11  Jia Liu  <proljc@gmail.com>
44511
44512         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44513         __daddr_t_defined.
44514         [__FreeBSD__]: Likewise.
44515
44516 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44517
44518         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44519         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44520         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44521         (strchr): Remove __strchr_sse42 ifunc selection.
44522         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44523         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44524
44525 2013-09-11  Will Newton  <will.newton@linaro.org>
44526
44527         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44528         parameter to RES. Remove hardcoded 1000 value.
44529         * benchtests/bench-skeleton.c (main): Pass RES parameter
44530         to TIMING_INIT and multiply result by 1000.
44531
44532 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44533
44534         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44535
44536 2013-09-11  Andreas Schwab  <schwab@suse.de>
44537
44538         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44539         if not defined.
44540         (O_TMPFILE) [__USE_GNU]: Define.
44541         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44542         Define.
44543
44544 2013-09-11  Will Newton  <will.newton@linaro.org>
44545
44546         [BZ #15857]
44547         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44548         does not overflow.
44549
44550 2013-09-11  Will Newton  <will.newton@linaro.org>
44551
44552         [BZ #15856]
44553         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44554         does not overflow.
44555
44556 2013-09-11  Will Newton  <will.newton@linaro.org>
44557
44558         [BZ #15855]
44559         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44560         does not overflow.
44561
44562 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44563
44564         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44565         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44566         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44567         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44568         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44569
44570 2013-09-10  Allan McRae  <allan@archlinux.org>
44571
44572         [BZ #15748]
44573         * manual/arith.texi (Parsing of Floats): Clarify
44574         cross-reference.
44575
44576         [BZ #15849]
44577         * manual/install.texi (Running make install): Mention
44578         --enable-pt-chown.
44579         * INSTALL: Regenerated.
44580
44581 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44582
44583         * csu/init-first.c (_init): Remove the !SHARED condition around
44584         FPU control word initialization.
44585         * elf/dl-support.c (_dl_fpu_control): New variable.
44586         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44587         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44588         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44589         * math/test-fpucw-static.c: New file.
44590         * math/test-fpucw-ieee.c: New file.
44591         * math/test-fpucw-ieee-static.c: New file.
44592         * math/Makefile (tests): Add `test-fpucw-ieee' and
44593         `$(tests-static)'.
44594         (tests-static): New variable.
44595         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44596         dependency to...
44597         [($(build-shared),yes)]
44598         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44599         ... this.
44600         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44601         New dependency.
44602
44603 2013-09-09  Allan McRae  <allan@archlinux.org>
44604
44605         [BZ #15939]
44606         * manual/string.texi (Collation Functions): Fix typo in
44607         strcoll example.
44608         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44609
44610         [BZ #15893]
44611         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44612
44613         [BZ #15892]
44614         * libio/memstream.c (open_memstream): Fix memory leak.
44615         * libio/wmemstream.c (open_wmemstream): Likewise.
44616
44617         [BZ #15895]
44618         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44619
44620 2013-09-09  Will Newton  <will.newton@linaro.org>
44621
44622         * malloc/Makefile: Add tst-realloc to tests.
44623         * malloc/tst-realloc.c: New file.
44624
44625 2013-09-09  Allan McRae  <allan@archlinux.org>
44626
44627         [BZ #15844]
44628         * COPYING: Update from GNU website to fix FSF address.
44629         * COPYING.LIB: Likewise.
44630
44631 2013-09-06  David S. Miller  <davem@davemloft.net>
44632
44633         * po/zh_TW.po: Update Chinese (traditional) translation from
44634         translation project.
44635
44636 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44637             Joseph Myers  <joseph@codesourcery.com>
44638
44639         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44640         "localeinfo.h".
44641         (obstack_chunk_alloc): New macro.
44642         (obstack_chunk_free): Likewise.
44643         (record_offset): New function.
44644         (init_locale_data): Likewise.
44645         (align_locale_data): Likewise.
44646         (add_locale_empty): Likewise.
44647         (add_locale_raw_data): Likewise.
44648         (add_locale_raw_obstack): Likewise.
44649         (add_locale_string): Likewise.
44650         (add_locale_wstring): Likewise.
44651         (add_locale_uint32): Likewise.
44652         (add_locale_uint32_array): Likewise.
44653         (add_locale_char): Likewise.
44654         (start_locale_structure): Likewise.
44655         (end_locale_structure): Likewise.
44656         (start_locale_prelude): Likewise.
44657         (end_locale_prelude): Likewise.
44658         (write_locale_data): Take locale_file structure rather than an
44659         iovec.
44660         * locale/programs/locfile.h: Include "obstack.h".
44661         (struct locale_file): Change to store locale file contents instead
44662         of header.
44663         (init_locale_data): New prototype.
44664         (align_locale_data): Likewise.
44665         (add_locale_empty): Likewise.
44666         (add_locale_raw_data): Likewise.
44667         (add_locale_raw_obstack): Likewise.
44668         (add_locale_string): Likewise.
44669         (add_locale_wstring): Likewise.
44670         (add_locale_uint32): Likewise.
44671         (add_locale_uint32_array): Likewise.
44672         (add_locale_char): Likewise.
44673         (start_locale_structure): Likewise.
44674         (end_locale_structure): Likewise.
44675         (start_locale_prelude): Likewise.
44676         (end_locale_prelude): Likewise.
44677         (write_locale_data): Update prototype.
44678         * locale/programs/3level.h (struct TABLE): Remove result field.
44679         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44680         Use new locale_file interface.
44681         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44682         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44683         * locale/programs/ld-address.c (address_output): Use new
44684         locale_file interface.
44685         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44686         NO_ADD_LOCALE.
44687         (collate_finish): Don't call collseq_table_finalize.
44688         (collate_output): Use new locale_file interface.
44689         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44690         in file.
44691         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44692         (TABLE): Move defines earlier in file.
44693         (ELEMENT): Likewise.
44694         (DEFAULT): Likewise.
44695         (wctrans_table_add): Move macro and inline function earlier in
44696         file.
44697         (struct wctype_table): Move type earlier in file.
44698         (add_locale_wctype_table): New static prototype.
44699         (struct locale_ctype_t): Use logical types instead of struct iovec
44700         pointers for members.
44701         (ctype_output): Use new locale_file interface.
44702         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44703         new locale_file interface.
44704         (allocate_arrays): Update for use of new locale_file interface.
44705         * locale/programs/ld-identification.c (identification_output): Use
44706         new locale_file interface.
44707         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44708         * locale/programs/ld-messages.c (messages_output): Likewise.
44709         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44710         * locale/programs/ld-name.c (name_output): Likewise.
44711         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44712         * locale/programs/ld-paper.c (paper_output): Likewise.
44713         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44714         * locale/programs/ld-time.c (time_output): Likewise.
44715
44716 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44717
44718         * benchtests/Makefile: Add memrchr benchmark.
44719         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44720         benchmark as memrchr.
44721         * benchtests/bench-memrchr-ifunc.c: New file.
44722         * benchtests/bench-memrchr.c: New file.
44723
44724 2013-09-06   Will Newton  <will.newton@linaro.org>
44725
44726         * benchtests/Makefile (string-bench): Add memcpy.
44727
44728 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44729             Cong Wang  <amwang@redhat.com>
44730
44731         [BZ #15850]
44732         * sysdeps/unix/sysv/linux/bits/in.h
44733         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44734         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44735         before __USE_KERNEL_IPV6_DEFS uses.
44736         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44737         IPPROTO_BEETPH.
44738         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44739         sockaddr_in6, or ipv6_mreq.
44740
44741 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44742
44743         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44744         memory access for final bytes in some large inputs.
44745         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44746
44747 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44748
44749         * string/test-memrchr.c: New file.
44750         * string/test-memrchr-ifunc.c: New file.
44751         * string/Makefile: Add new memrchr testcase.
44752
44753 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44754
44755         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44756         fanotify_init returns EPERM.
44757
44758 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44759
44760         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44761         errors.
44762         (top level): Treat second token from macro or constant entries for
44763         allowed headers as allowed.
44764         * include/complex.h: Condition internal declarations on
44765         [!_ISOMAC].
44766         * include/fenv.h: Condition include of <stdbool.h> and internal
44767         declarations on [!_ISOMAC].
44768
44769 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44770
44771         [BZ #15923]
44772         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44773
44774 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44775
44776         * configure.in (--enable-versioning): Remove configure option.
44777         (libc_cv_asm_symver_directive): Remove configure test.
44778         (libc_cv_ld_version_script_option): Likewise.
44779         (VERSIONING): Remove variable and AC_SUBST.
44780         (DO_VERSIONING): Remove AC_DEFINE.
44781         * configure: Regenerated.
44782         * config.h.in (DO_VERSIONING): Remove macro.
44783         * Makerules [$(versioning) = yes]: Change conditionals to
44784         [$(build-shared) = yes].
44785         * config.make.in (versioning): Remove variable.
44786         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44787         [$(build-shared) = yes].
44788         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44789         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44790         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44791         [$(build-shared) = yes].
44792         * extra-lib.mk [$(versioning) = yes]: Likewise.
44793         * hurd/Makefile [$(versioning) = yes]: Likewise.
44794         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44795         [SHARED].
44796         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44797         [SHARED].
44798         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44799         [SHARED && !NO_HIDDEN].
44800         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44801         [SHARED].
44802         [SHARED && DO_VERSIONING]: Likewise..
44803         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44804         [$(build-shared) = yes].
44805         * manual/install.texi (--disable-versioning): Remove
44806         documentation.
44807         * INSTALL: Regenerated.
44808         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44809         to [SHARED].
44810         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44811         [$(build-shared) = yes].
44812         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44813         * sysdeps/i386/i686/multiarch/strstr-c.c
44814         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44815         [SHARED && !NO_HIDDEN].
44816         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44817         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44818         * sysdeps/powerpc/powerpc32/dl-machine.c
44819         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44820         * sysdeps/powerpc/powerpc32/sysdep.h
44821         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44822         to [SHARED && PIC && !NO_HIDDEN].
44823         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44824         conditional to [SHARED].
44825
44826 2013-09-04   Will Newton  <will.newton@linaro.org>
44827
44828         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44829         * benchtests/bench-string.h: Include bench-timing.h instead
44830         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44831         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44832         call to HP_TIMING_DIFF_INIT.
44833         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44834         instead of hp-timing.h macros.
44835         * benchtests/bench-memchr.c: Likewise.
44836         * benchtests/bench-memcmp.c: Likewise.
44837         * benchtests/bench-memcpy.c: Likewise.
44838         * benchtests/bench-memmem.c: Likewise.
44839         * benchtests/bench-memmove.c: Likewise.
44840         * benchtests/bench-memset.c: Likewise.
44841         * benchtests/bench-rawmemchr.c: Likewise.
44842         * benchtests/bench-strcasecmp.c: Likewise.
44843         * benchtests/bench-strcasestr.c: Likewise.
44844         * benchtests/bench-strcat.c: Likewise.
44845         * benchtests/bench-strchr.c: Likewise.
44846         * benchtests/bench-strcmp.c: Likewise.
44847         * benchtests/bench-strcpy.c: Likewise.
44848         * benchtests/bench-strcpy_chk.c: Likewise.
44849         * benchtests/bench-strlen.c: Likewise.
44850         * benchtests/bench-strncasecmp.c: Likewise.
44851         * benchtests/bench-strncat.c: Likewise.
44852         * benchtests/bench-strncmp.c: Likewise.
44853         * benchtests/bench-strncpy.c: Likewise.
44854         * benchtests/bench-strnlen.c: Likewise.
44855         * benchtests/bench-strpbrk.c: Likewise.
44856         * benchtests/bench-strrchr.c: Likewise.
44857         * benchtests/bench-strspn.c: Likewise.
44858         * benchtests/bench-strstr.c: Likewise.
44859
44860 2013-09-04  Will Newton  <will.newton@linaro.org>
44861
44862         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44863
44864 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44865
44866         [BZ #15427]
44867         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44868         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44869         * math/libm-test.inc (lgamma_test_data): Add more tests.
44870         * sysdeps/i386/fpu/libm-test-ulps: Update.
44871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44872
44873 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44874
44875         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44876         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44877         Add ifunc.
44878         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44879         Add strcmp-sse2-unaligned
44880         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44881
44882 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44883
44884         * Versions.def (libc): Add GLIBC_2.19.
44885
44886 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44887
44888         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44889         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44890
44891 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44892
44893         [BZ #14155]
44894         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44895         intermediate calculations in recurrence.
44896         (__ieee754_ynf): Likewise.
44897         * math/libm-test.inc (jn_test_data): Do not allow spurious
44898         underflow exception.  Add more tests.
44899         (yn_test_data): Add more tests.
44900         * sysdeps/i386/fpu/libm-test-ulps: Update.
44901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44902
44903 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44904
44905         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44906
44907 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44908
44909         * csu/init-first.c: Fix then/than typos.
44910         * locale/programs/ld-collate.c: Likewise.
44911         * locale/programs/linereader.h: Likewise.
44912         * manual/charset.texi: Likewise.
44913         * manual/filesys.texi: Likewise.
44914         * manual/stdio.texi: Likewise.
44915         * manual/string.texi: Likewise.
44916         * stdlib/fmtmsg.c: Likewise.
44917         * sysdeps/i386/stpncpy.S: Likewise.
44918         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44919         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44920         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44921         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44922
44923 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44924
44925         * elf/dl-open.c: Fix typos.
44926         * iconvdata/gbbig5.c: Likewise.
44927         * iconvdata/iso-2022-jp.c: Likewise.
44928         * iconv/gconv_int.h: Likewise.
44929         * iconv/loop.c: Likewise.
44930         * nis/rpcsvc/nis.h: Likewise.
44931         * resolv/ns_name.c: Likewise.
44932         * stdio-common/vfscanf.c: Likewise.
44933         * streams/stropts.h: Likewise.
44934         * sunrpc/rpc_thread.c: Likewise.
44935         * sysdeps/i386/strpbrk.S: Likewise.
44936         * sysdeps/ieee754/k_standard.c: Likewise.
44937         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44938         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44939         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44940         * sysdeps/mach/hurd/profil.c: Likewise.
44941         * sysdeps/s390/dl-procinfo.h: Likewise.
44942         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44943         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44944         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44945         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44946         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44947
44948 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44949
44950         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44951         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44952
44953 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44954
44955         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44956         aix specific files.
44957         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44958         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44959         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44960         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44961         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44962         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44963         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44964         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44965
44966 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44967             Roland McGrath  <roland@hack.frob.com>
44968
44969         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44970         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44971
44972 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44973
44974         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44975         __executable_start symbol instead of _start.
44976
44977 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44978
44979         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44980         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44981         Move macros to...
44982         * sysdeps/gnu/ldsodefs.h: ... this new file.
44983
44984         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44985         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44986         instead of ELFOSABI_LINUX.
44987
44988         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44989         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44990         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44991         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44992         Likewise.
44993         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44994         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44995         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44996         Likewise.
44997         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44998         (ibm_extended_long_double): Add ieee_nan member.
44999         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
45000         (do_test): New function.
45001
45002         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
45003         TEST_TRUNC.
45004         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
45005         functions, renamed from truncdfsf_test, trunctfsf_test,
45006         trunctfdf_test.
45007         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
45008         functions.
45009         (do_test): Run all these.
45010
45011 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
45012
45013         * argp/argp-help.c: Fix typos.
45014         * argp/argp-parse.c: Likewise.
45015         * debug/backtracesyms.c: Likewise.
45016         * elf/elf.h: Likewise.
45017         * malloc/malloc.c: Likewise.
45018         * nis/nis_print.c: Likewise.
45019         * resolv/res_comp.c: Likewise.
45020         * stdlib/stdlib.h: Likewise.
45021         * sunrpc/clnt_tcp.c: Likewise.
45022         * sunrpc/clnt_udp.c: Likewise.
45023         * sunrpc/clnt_unix.c: Likewise.
45024         * sysdeps/unix/bsd/ptsname.c: Likewise.
45025         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
45026         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
45027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
45028         Likewise.
45029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
45030         Likewise.
45031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
45032         Likewise.
45033         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
45034
45035 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
45036
45037         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
45038         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
45039
45040 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
45041
45042         [BZ #15897]
45043         * dlfcn/Makefile (tests): Add bug-dl-leaf.
45044         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
45045         ($(objpfx)bug-dl-leaf): New rule.
45046         ($(objpfx)bug-dl-leaf.so): Likewise.
45047         ($(objpfx)bug-dl-leaf.out): Likewise.
45048         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
45049         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
45050         * dlfcn/bug-dl-leaf.c: New test.
45051         * dlfcn/bug-dl-leaf-lib.c: Likewise.
45052         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
45053         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
45054         (dlclose): Likewise.
45055         (dlmopen): Likewise.
45056
45057 2013-08-27  Roland McGrath  <roland@hack.frob.com>
45058
45059         * include/netdb.h [!_ISOMAC]:
45060         Don't include <tls.h>.
45061         (h_errno, __libc_h_errno): Move declaration and macros out of
45062         [_LIBC_REENTRANT].
45063
45064         * include/resolv.h [_RESOLV_H_]:
45065         Don't include <tls.h>.
45066         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
45067         * resolv/res_libc.c: Don't include <tls.h>.
45068         (_res): Use __attribute__ ((nocommon)) in place of
45069         __attribute__ ((section (".bss"))).
45070
45071         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
45072         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
45073
45074         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
45075
45076         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
45077         only under [SIOCGIFCONF && SIOCGIFNETMASK].
45078
45079         * resolv/res_mkquery.c: Include <sys/time.h>.
45080
45081         * inet/ifreq.c: Moved to ...
45082         * sysdeps/unix/ifreq.c: ... here.
45083         * inet/ifreq.c: New file, true stub version.
45084
45085         * socket/sa_len.c: New file.
45086         * socket/Makefile (aux): Add it.
45087         * sysdeps/unix/sysv/linux/Makefile
45088         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
45089         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
45090         and #include <socket/sa_len.c>.
45091         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
45092         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
45093
45094         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
45095         * bits/socket.h: ... here.
45096
45097         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
45098         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
45099         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
45100
45101 2013-08-27  Andreas Schwab  <schwab@suse.de>
45102
45103         [BZ #15736]
45104         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
45105         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
45106         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
45107         * string/test-strcasecmp.c (test_main): Run tests in several
45108         locales.
45109         * string/test-strncasecmp.c (test_main): Likewise.
45110
45111         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
45112         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
45113         to __strcasecmp_nonascii and __strncasecmp_nonascii.
45114         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
45115         (__strncasecmp_ssse3) [PIC]: Likewise.
45116
45117 2013-08-26  Roland McGrath  <roland@hack.frob.com>
45118
45119         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
45120
45121         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
45122         instead of explicitly declaring xdecrypt.
45123         * nis/nss_nis/nis-publickey.c: Likewise.
45124
45125 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45126
45127         [BZ #15890]
45128         * nscd/aicache.c: Include res_hconf.h.
45129         (addhstaiX): Initialize res_hconf.
45130
45131 2013-08-26  Andreas Schwab  <schwab@suse.de>
45132
45133         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
45134         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
45135
45136 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45137
45138         * nscd/aicache.c (addhstaiX): Fix indentation.
45139
45140 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
45141
45142         * configure.ac: Quote $build_pt_chown test.
45143         * configure: Regenerated.
45144
45145 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
45146
45147         [BZ #15532]
45148         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
45149         * math/s_cexpf.c (__cexpf): Likewise.
45150         * math/s_cexpl.c (__cexpl): Likewise.
45151         * math/libm-test.inc (cexp_test_data): Correct expected return
45152         value for NaN + i0.  Add another test.
45153
45154 2013-08-22  David S. Miller  <davem@davemloft.net>
45155
45156         * po/ca.po: Update Catalan translation from translation project.
45157         * po/uk.po: Add Ukrainian translations from translation project.
45158
45159 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
45160
45161         [BZ #15797]
45162         * math/s_fdim.c (__fdim): Check for infinite arguments if result
45163         is infinite, not alongside NaN test.
45164         * math/s_fdimf.c (__fdimf): Likewise.
45165         * math/s_fdiml.c (__fdiml): Likewise.
45166         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
45167         errno is unchanged.
45168
45169 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
45170
45171         * argp/argp-help.c: Fix typos.
45172         * crypt/speeds.c: Likewise.
45173         * csu/check_fds.c: Likewise.
45174         * elf/dl-load.c: Likewise.
45175         * elf/dl-open.c: Likewise.
45176         * elf/reldep3.c: Likewise.
45177         * elf/reldep.c: Likewise.
45178         * elf/sprof.c: Likewise.
45179         * iconv/iconv_charmap.c: Likewise.
45180         * iconv/skeleton.c: Likewise.
45181         * iconv/strtab.c: Likewise.
45182         * io/lockf64.c: Likewise.
45183         * libio/libioP.h: Likewise.
45184         * resolv/gai_notify.c: Likewise.
45185         * resolv/ns_name.c: Likewise.
45186         * resolv/ns_samedomain.c: Likewise.
45187         * resolv/res_send.c: Likewise.
45188         * stdlib/random.c: Likewise.
45189         * sunrpc/rpc/xdr.h: Likewise.
45190         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
45191         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
45192         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
45193         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
45194         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
45195         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
45196         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
45197         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
45198         * sysdeps/mach/hurd/check_fds.c: Likewise.
45199         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
45200         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
45201         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45202         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
45203         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
45204         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
45205         * sysdeps/pthread/aio_notify.c: Likewise.
45206         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
45207         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
45208         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
45209         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45210         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45211
45212 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45213
45214         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
45215         version if bit_Slow_SSE4_2 is set.
45216         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
45217         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
45218
45219 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45220
45221         [BZ #15867]
45222         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
45223         trampoline stack frame information.
45224         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
45225         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
45226         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
45227         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
45228         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
45229         * sysdeps/unix/sysv/linux/powerpc/init-first.c
45230         (_libc_vdso_platform_setup): Initialize the signal trampolines.
45231         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
45232         sa_flags value.
45233         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
45234         interrupting a syscall and set with option SA_SIGINFO.
45235
45236 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45237
45238         [BZ #15531]
45239         * math/s_cproj.c (__cproj): Only return an infinity if one part of
45240         argument is infinite.
45241         * math/s_cprojf.c (__cprojf): Likewise.
45242         * math/s_cprojl.c (__cprojl): Likewise.
45243         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
45244         * math/libm-test.inc (cproj_test_data): Add more tests.
45245
45246         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
45247
45248         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
45249         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
45250         size.  Use __ffs to determine corresponding shift.
45251
45252 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45253             Roland McGrath  <roland@hack.frob.com>
45254
45255         * Makefile (INSTALL): Remove trailing blank lines from output of
45256         makeinfo.
45257
45258 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45259
45260         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
45261         Align 32 bit compat elf_greg to 8 bytes.
45262
45263 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45264
45265         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
45266
45267 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45268
45269         * string/strcoll_l.c (coll_seq): New structure.
45270         (get_next_seq_cached): New function.
45271         (get_next_seq): New function.
45272         (do_compare): New function.
45273         (STRCOLL): Use GNU style definition.  Simplify implementation
45274         by using get_next_seq, get_next_seq_cached and do_compare.
45275
45276 2013-08-16  Florian Weimer  <fweimer@redhat.com>
45277
45278         [BZ #14699]
45279         CVE-2013-4237
45280         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
45281         member.
45282         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
45283         member.
45284         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
45285         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
45286         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
45287         conditional.
45288         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
45289         GETDENTS_64BIT_ALIGNED.
45290         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
45291         * manual/filesys.texi (Reading/Closing Directory): Document
45292         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
45293         strongly.
45294         * manual/conf.texi (Limits for Files): Add portability note to
45295         NAME_MAX, PATH_MAX.
45296         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
45297
45298 2013-08-13  Andreas Schwab  <schwab@suse.de>
45299
45300         [BZ #15749]
45301         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
45302         of fabs.
45303         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
45304         LDBL_MAX_EXP >= 16384]: Add tests for it.
45305
45306 2013-08-12  David S. Miller  <davem@davemloft.net>
45307
45308         * version.h (RELEASE): Set to "development".
45309         (VERSION): Set to "2.18.90".
45310         * NEWS: Add 2.19 section.
45311
45312 2013-08-03  David S. Miller  <davem@davemloft.net>
45313
45314         * po/ko.po: Update Korean translation from translation project.
45315
45316 2013-08-01  David S. Miller  <davem@davemloft.net>
45317
45318         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
45319         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
45320         Bilka.
45321
45322 2013-07-30  David S. Miller  <davem@davemloft.net>
45323
45324         * po/fr.po: Update French translation from translation project.
45325
45326 2013-07-28  David S. Miller  <davem@davemloft.net>
45327
45328         * po/cs.po: Update Czech translation from translation project.
45329
45330         * po/sv.po: Update Swedish translation from translation project.
45331
45332 2013-07-27  David S. Miller  <davem@davemloft.net>
45333
45334         * po/eo.po: Update Esperanto translation from translation project.
45335
45336         * po/vi.po: Update Vietnamese translation from translation project.
45337
45338         * po/de.po: Update German translation from translation project.
45339
45340 2013-07-26  David S. Miller  <davem@davemloft.net>
45341
45342         * po/bg.po: Update Bulgarian translation from translation project.
45343
45344         * po/nl.po: Update Dutch translation from translation project.
45345         * po/pl.po: Update Polish translation from translation project.
45346         * po/ru.po: Update Russian translation from translation project.
45347
45348 2013-07-24  David S. Miller  <davem@davemloft.net>
45349
45350         * po/libc.pot: Update.
45351
45352 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45353
45354         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
45355         variable page size.
45356         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
45357         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
45358         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
45359
45360 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45361
45362         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
45363
45364 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45365             Andreas Schwab  <schwab@suse.de>
45366             Roland McGrath  <roland@hack.frob.com>
45367             Joseph Myers  <joseph@codesourcery.com>
45368             Carlos O'Donell  <carlos@redhat.com>
45369
45370         [BZ #15755]
45371         * config.h.in: Define HAVE_PT_CHOWN.
45372         * config.make.in (build-pt-chown): New variable.
45373         * configure.in (--enable-pt_chown): New configure option.
45374         * configure: Regenerate.
45375         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45376         build-pt-chown is enabled.
45377         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45378         pt_chown to fix pty ownership.
45379         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45380         CLOSE_ALL_FDS.
45381         * manual/install.texi (Configuring and compiling): Mention
45382         --enable-pt_chown. Add @findex for grantpt.
45383         * INSTALL: Regenerate.
45384
45385 2013-07-20  David S. Miller  <davem@davemloft.net>
45386
45387         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45388         difference between 32-bit and 64-bit.
45389
45390 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45391
45392         [BZ #15711]
45393         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45394         Avoid system header dependency with -ffreestanding.
45395         ($(objpfx)bits/syscall%d): Likewise.
45396
45397 2013-07-13  David S. Miller  <davem@davemloft.net>
45398
45399         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45400         underflows from atanl/atan2l due to bug 15319.
45401         (casinh_test_data): Likewise.
45402
45403 2013-07-07  David S. Miller  <davem@davemloft.net>
45404
45405         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45406
45407 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45408
45409         * sysdeps/i386/fpu/libm-test-ulps: Update.
45410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45411
45412 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45413
45414         * configure.in (--enable-lock-elision): Fix message text.
45415         * INSTALL: Regenerate.
45416         * configure: Regenerate.
45417
45418 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45419
45420         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45421
45422 2013-07-03  Andreas Jaeger  <aj@suse.de>
45423
45424         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45425         define.
45426         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45427         (ptrace_peeksiginfo_args): Add.
45428         (__ptrace_peeksiginfo_flags): Add.
45429         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45430         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45431         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45432
45433 2013-07-03  Allan McRae  <allan@archlinux.org>
45434
45435         * sysdeps/i386/fpu/libm-test-ulps: Update.
45436
45437 2013-07-02  David S. Miller  <davem@davemloft.net>
45438
45439         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45440
45441 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45442
45443         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45444
45445 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45446
45447         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45449
45450 2013-07-02  Andi Kleen <ak@linux.intel.com>
45451
45452         * config.h.in (ENABLE_LOCK_ELISION): Add.
45453         * configure.in (--enable-lock-elision): Add option.
45454         * manual/install.texi: Document --enable lock elision.
45455         * configure: Regenerate
45456         * INSTALL: Regenerate.
45457
45458 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45459
45460         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45461         SSE4.2 strcasecmp for libc.a.
45462         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45463
45464 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45465
45466         [BZ #13304]
45467         * soft-fp/op-common.h (_FP_FMA): New macro.
45468         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45469         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45470         (_FP_MUL_MEAT_1_imm): ... here.
45471         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45472         (_FP_MUL_MEAT_1_wide): ... here.
45473         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45474         (_FP_MUL_MEAT_1_hard): ... here.
45475         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45476         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45477         (_FP_MUL_MEAT_2_wide): ... here.
45478         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45479         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45480         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45481         (_FP_MUL_MEAT_2_gmp): ... here.
45482         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45483         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45484         (_FP_MUL_MEAT_4_wide): ... here.
45485         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45486         (_FP_MUL_MEAT_4_gmp): ... here.
45487         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45488         (_FP_WFRACBITS_DW_S): Likewise.
45489         (_FP_WFRACXBITS_DW_S): Likewise.
45490         (_FP_HIGHBIT_DW_S): Likewise.
45491         (FP_FMA_S): Likewise.
45492         (_FP_FRAC_HIGH_DW_S): Likewise.
45493         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45494         (_FP_WFRACBITS_DW_D): Likewise.
45495         (_FP_WFRACXBITS_DW_D): Likewise.
45496         (_FP_HIGHBIT_DW_D): Likewise.
45497         (FP_FMA_D): Likewise.
45498         (_FP_FRAC_HIGH_DW_D): Likewise.
45499         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45500         (_FP_WFRACBITS_DW_E): Likewise.
45501         (_FP_WFRACXBITS_DW_E): Likewise.
45502         (_FP_HIGHBIT_DW_E): Likewise.
45503         (FP_FMA_E): Likewise.
45504         (_FP_FRAC_HIGH_DW_E): Likewise.
45505         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45506         (_FP_WFRACBITS_DW_Q): Likewise.
45507         (_FP_WFRACXBITS_DW_Q): Likewise.
45508         (_FP_HIGHBIT_DW_Q): Likewise.
45509         (FP_FMA_Q): Likewise.
45510         (_FP_FRAC_HIGH_DW_Q): Likewise.
45511         * soft-fp/fmasf4.c: New file.
45512         * soft-fp/fmadf4.c: Likewise.
45513         * soft-fp/fmatf4.c: Likewise.
45514
45515 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45516
45517         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45518         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45519         Silvermont.
45520         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45521         macro.
45522         (index_Slow_SSE4_2): Likewise.
45523         (index_Prefer_PMINUB_for_stringop): Likewise.
45524         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45525         bit_Slow_SSE4_2 is set.
45526         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45527         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45528
45529 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45530
45531         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45532         rtld_global._dl_hwcap2.
45533         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45534         POWER8.
45535         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45536         POWER8 feature descriptions defined in _dl_hwcap2.
45537         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45538         string handling for POWER8 feature bits.
45539         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45540         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45541         _dl_powerpc_cap_flags.
45542         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45543         * sysdeps/powerpc/rtld-global-offsets.sym
45544         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45545         _dl_hwcap2 in the rtld_global_ro structure.
45546
45547 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45548
45549         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45550         hardware capabilities in support of AT_HWCAP2.
45551         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45552         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45553         GLRO(dl_hwcap2).
45554         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45555         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45556         explicitly the unknown a_type display mechanism is used.
45557         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45558         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45559         struct member.
45560         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45561         to macro prototype for AT_HWCAP2 support.
45562         * sysdeps/i386/dl-procinfo.h: Likewise.
45563         * sysdeps/s390/dl-procinfo.h: Likewise.
45564         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45565         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45566         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45567         return -1 for unknown a_type display fallback.
45568         * sysdeps/sparc/dl-procinfo.h: Likewise.
45569         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45570         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45571
45572 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45573
45574         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45575         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45576
45577 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45578
45579         [BZ #12492]
45580         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45581         mprotect making __stack_prot writable.
45582
45583 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45584             Joseph Myers  <joseph@codesourcery.com>
45585
45586         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45587         as being properly aligned.
45588
45589 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45590
45591         * dlfcn/modstatic5.c: New file.
45592         * dlfcn/tststatic5.c: New file.
45593         * dlfcn/Makefile (tests): Add tststatic5.
45594         (tests-static): Likewise.
45595         (modules-names): Add modstatic5.
45596         (tststatic5-ENV): New variable.
45597         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45598
45599         [BZ #15022]
45600         * elf/dl-support.c (_dl_main_map): New variable.
45601         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45602         (_dl_nns, _dl_load_adds): Set to 1.
45603         (_dl_initial_searchlist): Refer to _dl_main_map.
45604         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45605         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45606         call to _dl_get_origin.
45607         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45608         around call_map.
45609         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45610         * dlfcn/modstatic3.c: New file.
45611         * dlfcn/tststatic3.c: New file.
45612         * dlfcn/tststatic4.c: New file.
45613         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45614         (tests-static): Likewise.
45615         (modules-names): Add modstatic3.
45616         (tststatic3-ENV, tststatic4-ENV): New variables.
45617         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45618         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45619
45620 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45621
45622         * configure.in (CC): Require GCC version 4.4 or later.
45623         * configure: Regenerated.
45624         * manual/install.texi (Tools for Compilation): Update GCC version
45625         requirement.
45626         * INSTALL: Regenerated.
45627
45628 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45629
45630         [BZ #15674]
45631         * string/test-memcmp.c (check2): New.
45632         (main): Call check2.
45633
45634         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45635
45636 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45637
45638         [BZ #15022]
45639         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45640         over to...
45641         (dl_open_worker) [!SHARED]: ... here.
45642
45643 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45644
45645         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45646
45647 2013-06-25  Richard Henderson  <rth@redhat.com>
45648
45649         * locale/programs/locarchive.c: Include <libc-internal.h>
45650
45651 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45652
45653         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45654         trailing whitespace removed.
45655
45656 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45657
45658         [BZ #10283]
45659         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45660         * locale/programs/locarchive.c: Include libc-mmap.h.
45661         (prepare_address_space): Take two new outputs (the mmap base and len).
45662         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45663         values.
45664         (create_archive): Declare new mmap base and len values for
45665         prepare_address_space, and store the result in ah.
45666         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45667         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45668         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45669         Declare new mmap base and len values for
45670         prepare_address_space, and store the result in new_ah.
45671         (open_archive): Declare new mmap base and len values for
45672         prepare_address_space, and store the result in ah.
45673         (close_archive): If ah->mmap_base is not NULL, use that and
45674         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45675         * sysdeps/generic/libc-mmap.h: New file.
45676
45677 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45678
45679         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45680         (ALIGN_UP): Likewise.
45681         (PTR_ALIGN_DOWN): Likewise.
45682         (PTR_ALIGN_UP): Likewise.
45683
45684 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45685
45686         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45687         entry mapped to PPC_PLATFORM_POWER8.
45688         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45689         POWER8.
45690         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45691         (_dl_string_platform): Add case for exporting platform position for
45692         POWER8.
45693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45694         search path to sysdeps/powerpc/powerpc32/power8 directory.
45695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45696         search path to sysdeps/powerpc/powerpc64/power8 directory.
45697         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45698         power7 directories.
45699         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45700         power7 directories.
45701
45702 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45703
45704         * INSTALL: Regenerate.
45705
45706         * nscd/connections.c (nscd_init): Fix comment.
45707
45708 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45709
45710         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45711
45712         [BZ #15667]
45713         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45714         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45715
45716 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45717
45718         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45719         DL_DST_REQ_STATIC.
45720         (DL_DST_REQ_STATIC): Remove macro.
45721
45722 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45723
45724         [BZ #7006]
45725         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45726         with a shift of 0 bits.
45727
45728 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45729
45730         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45731         $(tststatic-ENV).
45732
45733 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45734
45735         [BZ #15655]
45736         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45737
45738 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45739
45740         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45741         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45742         accepts -fno-tree-loop-distribute-patterns.
45743         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45744         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45745         recursive call.
45746         * string/memset.c (memset): Likewise.
45747         * string/test-memmove.c (simple_memmove): Disable loop transformation
45748         to library calls.
45749         * string/test-memset.c (simple_memset): Likewise.
45750         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45751         * benchtests/bench-memset.c (simple_memset): Likewise.
45752         * configure: Regenerated.
45753
45754 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45755
45756         * math/test-misc.c (main): Ignore fesetround failure when failures
45757         of subsequent rounding tests would be ignored.
45758
45759         [BZ #15654]
45760         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45761         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45762         * math/fegetenv.c (__fegetenv): Return 0.
45763         * math/fegetexcept.c (fegetexcept): Return 0.
45764         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45765         FE_TONEAREST.
45766         * math/feholdexcpt.c (feholdexcept): Return 0.
45767         * math/fesetenv.c (__fesetenv): Return 0.
45768         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45769         argument FE_TONEAREST.
45770         * math/feupdateenv.c (__feupdateenv): Return 0.
45771         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45772
45773 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45774
45775         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45776         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45777         ($(objpfx)rtld-%.os rules): Use them.
45778
45779 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45780
45781         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45782         fields.
45783
45784 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45785
45786         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45787         length of target pattern, then descending length of dependency pattern.
45788         * configure.in (AWK): Require gawk 3.1.2 or newer.
45789         * manual/install.texi (Tools for Compilation): Say that we do.
45790         * configure: Regenerated.
45791
45792         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45793         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45794         * scripts/sysd-rules.awk: ... this new script.
45795         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45796         than a glob-style pattern.
45797
45798 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45799
45800         * math/test-misc.c (main): Do not treat incorrectly rounded
45801         conversions as failure unless ROUNDING_TESTS passes.
45802
45803 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45804
45805         [BZ #15631]
45806         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45807         restore exception state around main square root computation, then
45808         check for inexactness explicitly.
45809
45810         * math/libm-test.inc (fma_test_data): Add another test.
45811
45812 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45813
45814         * manual/threads.texi (Non-POSIX Extensions): New document
45815         node.  Document pthread_getattr_default_np and
45816         pthread_setattr_default_np.
45817
45818         * Versions.def (libpthread): Add GLIBC_2.18.
45819         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45821         Likewise.
45822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45823         Likewise.
45824         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45825         Likewise.
45826         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45827         Likewise.
45828         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45829         Likewise.
45830         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45831         Likewise.
45832         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45833         Likewise.
45834         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45835         Likewise.
45836         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45837         Likewise.
45838
45839 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45840
45841         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45842         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45843
45844 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45845             H.J. Lu  <hjl.tools@gmail.com>
45846
45847         [BZ #15627]
45848         * sysdeps/x86_64/rtld-memset.c: Remove file.
45849         * sysdeps/x86_64/rtld-memset.S: New file.
45850
45851 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45852
45853         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45854         (test_in_one_mode): Take arguments for whether the rounding mode
45855         is supported for each floating-point type.
45856         (do_test): Pass new arguments to test_in_one_mode using
45857         ROUNDING_TESTS.
45858
45859 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45860
45861         * posix/tst-waitid.c (do_test): Distinguish different instances of
45862         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45863         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45864         before entering the kernel for waitpid.
45865
45866 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45867
45868         * NEWS: Fix note on clock function precision.  Text by Roland
45869         McGrath.
45870
45871 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45872
45873         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45874         it into place only when and if the sanity check passes.
45875
45876 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45877
45878         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45879         output for whether conversion result is exact.  Take argument
45880         indicating whether type is IBM long double.
45881         (round_for_all): Change need_exact field to ibm_ld.
45882         * stdlib/tst-strtod-round.c (struct exactness): New type.
45883         (struct test): Change bool ld_ok field to struct exactness exact.
45884         (TEST): Update all definitions for change to field.
45885         (tests): Regenerate array contents.
45886         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45887         field value.  Check for IBM long double here.
45888         (do_test): Update calls to test_in_one_mode.
45889
45890 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45891
45892         [BZ #12515]
45893         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45894         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45895
45896 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45897
45898         [BZ #15605]
45899         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45900         generated by the compiler on loop optimizations.
45901         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45902         general definitions.
45903
45904 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45905
45906         * math/bug-nextafter.c: Include <math-tests.h>.
45907         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45908         the relevant type.
45909         * math/bug-nexttoward.c: Include <math-tests.h>.
45910         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45911         the relevant type.
45912         * math/test-misc.c: Include <math-tests.h>.
45913         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45914         the relevant type.
45915
45916 2013-06-12  Andreas Jaeger  <aj@suse.de>
45917
45918         * po/ia.po: Update Interlingua translation from translation
45919         project.
45920
45921 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45922
45923         * include/fenv.h: Include stdbool.h.
45924         (struct rm_ctx): New structure.
45925         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45926         Define macro.
45927         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45928         (SET_RESTORE_ROUNDF): Likewise.
45929         (SET_RESTORE_ROUNDL): Likewise.
45930         (SET_RESTORE_ROUND_NOEX): Likewise.
45931         (SET_RESTORE_ROUND_NOEXF): Likewise.
45932         (SET_RESTORE_ROUND_NOEXL): Likewise.
45933         (SET_RESTORE_ROUND_53BIT): Likewise.
45934         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45935         (libc_feresetround_noexf_ctx): Likewise.
45936         (libc_feresetround_noexl_ctx): Likewise.
45937         (libc_feholdsetround_53bit_ctx): Likewise.
45938         (libc_feresetround_53bit_ctx): Likewise.
45939         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45940         (libc_feholdexcept_setround_sse_ctx): New function.
45941         (libc_fesetenv_sse_ctx): Likewise.
45942         (libc_feupdateenv_sse_ctx): Likewise.
45943         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45944         (libc_feholdexcept_setround_387_ctx): Likewise.
45945         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45946         (libc_feholdsetround_387_prec_ctx): Likewise.
45947         (libc_feholdsetround_387_ctx): Likewise.
45948         (libc_feholdsetround_387_53bit_ctx): Likewise.
45949         (libc_feholdsetround_sse_ctx): Likewise.
45950         (libc_feresetround_sse_ctx): Likewise.
45951         (libc_feresetround_387_ctx): Likewise.
45952         (libc_feupdateenv_387_ctx): Likewise.
45953         (libc_feholdexcept_setroundf_ctx): Define macro.
45954         (libc_fesetenvf_ctx): Likewise.
45955         (libc_feupdateenvf_ctx): Likewise.
45956         (libc_feholdsetroundf_ctx): Likewise.
45957         (libc_feresetroundf_ctx): Likewise.
45958         (libc_feholdexcept_setround_ctx): Likewise.
45959         (libc_fesetenv_ctx): Likewise.
45960         (libc_feupdateenv_ctx): Likewise.
45961         (libc_feholdsetround_ctx): Likewise.
45962         (libc_feresetround_ctx): Likewise.
45963         (libc_feholdexcept_setroundl_ctx): Likewise.
45964         (libc_feupdateenvl_ctx): Likewise.
45965         (libc_feholdsetroundl_ctx): Likewise.
45966         (libc_feresetroundl_ctx): Likewise.
45967         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45968         (libc_feresetround_53bit_ctx): Likewise.
45969
45970 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45971
45972         * locale/iso-639.def: Convert to UTF-8.
45973
45974 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45975
45976         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45977         (EXCEPTION_TESTS_double): Likewise.
45978         (EXCEPTION_TESTS_long_double): Likewise.
45979         (EXCEPTION_TESTS): Likewise.
45980         * math/libm-test.inc (test_exceptions): Only test exceptions if
45981         EXCEPTION_TESTS (FLOAT).
45982
45983 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45984
45985         * benchtests/Makefile (string-bench): Add strcpy_chk and
45986         stpcpy_chk.
45987         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45988         * benchtests/bench-stpcpy_chk.c: New file.
45989         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45990         * benchtests/bench-strcpy_chk.c: New file.
45991         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45992         code.
45993         (do_test): Likewise.
45994
45995 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45996
45997         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45998         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45999         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
46000         with tabs where appropriate.
46001         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
46002         dl-procinfo.h.
46003         [PPC_PLATFORM_PPC440]: Likewise.
46004         [PPC_PLATFORM_PPC464]: Likewise.
46005         [PPC_PLATFORM_PPC476]: Likewise.
46006         (_dl_string_platform): Add support for detecting ppc405, ppc440,
46007         ppc464, and ppc476 platform strings merging from ports/
46008         dl-procinfo.h.
46009
46010 2013-06-11  Andreas Schwab  <schwab@suse.de>
46011
46012         [BZ #14991]
46013         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
46014         (from_ucs4_idx): Regenerate.
46015         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
46016         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
46017         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
46018         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
46019         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
46020         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
46021         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
46022         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
46023         from FROM_LOOP and TO_LOOP specific macros.
46024         (BODY): Handle combining characters.
46025         * iconvdata/BIG5HKSCS.irreversible: Update.
46026         * iconvdata/BIG5HKSCS.precomposed: New file.
46027         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
46028         characters.
46029         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
46030
46031 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46032
46033         * include/sys/time.h: Fix indentation and add copyright header.
46034
46035         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
46036         (do_test): Likewise.
46037         * string/test-memchr.c (do_one_test): Likewise.
46038         (do_test): Likewise.
46039         * string/test-memcmp.c (do_one_test): Likewise.
46040         (do_test): Likewise.
46041         * string/test-memcpy.c (do_one_test): Likewise.
46042         (do_test): Likewise.
46043         * string/test-memmem.c (do_one_test): Likewise.
46044         (do_test): Likewise.
46045         (do_random_tests): Likewise.
46046         * string/test-memmove.c (do_one_test): Likewise.
46047         (do_test): Likewise.
46048         * string/test-memset.c (do_one_test): Likewise.
46049         (do_test): Likewise.
46050         * string/test-rawmemchr.c (do_one_test): Likewise.
46051         (do_test): Likewise.
46052         * string/test-strcasecmp.c (do_one_test): Likewise.
46053         (do_test): Likewise.
46054         * string/test-strcasestr.c (do_one_test): Likewise.
46055         (do_test): Likewise.
46056         * string/test-strcat.c (do_one_test): Likewise.
46057         (do_test): Likewise.
46058         * string/test-strchr.c (do_one_test): Likewise.
46059         (do_test): Likewise.
46060         * string/test-strcmp.c (do_one_test): Likewise.
46061         (do_test): Likewise.
46062         * string/test-strcpy.c (do_one_test): Likewise.
46063         (do_test): Likewise.
46064         * string/test-string.h: Likewise.
46065         (test_init): Likewise.
46066         * string/test-strlen.c (do_one_test): Likewise.
46067         (do_test): Likewise.
46068         * string/test-strncasecmp.c (do_one_test): Likewise.
46069         (do_test): Likewise.
46070         * string/test-strncat.c (do_one_test): Likewise.
46071         (do_test): Likewise.
46072         * string/test-strncmp.c (do_one_test): Likewise.
46073         (do_test_limit): Likewise.
46074         (do_test): Likewise.
46075         * string/test-strncpy.c (do_one_test): Likewise.
46076         (do_test): Likewise.
46077         * string/test-strnlen.c (do_one_test): Likewise.
46078         (do_test): Likewise.
46079         * string/test-strpbrk.c (do_one_test): Likewise.
46080         (do_test): Likewise.
46081         * string/test-strrchr.c (do_one_test): Likewise.
46082         (do_test): Likewise.
46083         * string/test-strspn.c (do_one_test): Likewise.
46084         (do_test): Likewise.
46085         * string/test-strstr.c (do_one_test): Likewise.
46086         (do_test): Likewise.
46087
46088         * benchtests/Makefile (string-bench): Add string benchmarks.
46089         * benchtests/bench-bcopy-ifunc.c: New file.
46090         * benchtests/bench-bcopy.c: New file.
46091         * benchtests/bench-bzero-ifunc.c: New file.
46092         * benchtests/bench-bzero.c: New file.
46093         * benchtests/bench-memccpy-ifunc.c: New file.
46094         * benchtests/bench-memccpy.c: New file.
46095         * benchtests/bench-memchr-ifunc.c: New file.
46096         * benchtests/bench-memchr.c: New file.
46097         * benchtests/bench-memcmp-ifunc.c: New file.
46098         * benchtests/bench-memcmp.c: New file.
46099         * benchtests/bench-memmem-ifunc.c: New file.
46100         * benchtests/bench-memmem.c: New file.
46101         * benchtests/bench-memmove-ifunc.c: New file.
46102         * benchtests/bench-memmove.c: New file.
46103         * benchtests/bench-mempcpy-ifunc.c: New file.
46104         * benchtests/bench-mempcpy.c: New file.
46105         * benchtests/bench-memset-ifunc.c: New file.
46106         * benchtests/bench-memset.c: New file.
46107         * benchtests/bench-rawmemchr-ifunc.c: New file.
46108         * benchtests/bench-rawmemchr.c: New file.
46109         * benchtests/bench-stpcpy-ifunc.c: New file.
46110         * benchtests/bench-stpcpy.c: New file.
46111         * benchtests/bench-stpncpy-ifunc.c: New file.
46112         * benchtests/bench-stpncpy.c: New file.
46113         * benchtests/bench-strcasecmp-ifunc.c: New file.
46114         * benchtests/bench-strcasecmp.c: New file.
46115         * benchtests/bench-strcasestr-ifunc.c: New file.
46116         * benchtests/bench-strcasestr.c: New file.
46117         * benchtests/bench-strcat-ifunc.c: New file.
46118         * benchtests/bench-strcat.c: New file.
46119         * benchtests/bench-strchr-ifunc.c: New file.
46120         * benchtests/bench-strchr.c: New file.
46121         * benchtests/bench-strchrnul-ifunc.c: New file.
46122         * benchtests/bench-strchrnul.c: New file.
46123         * benchtests/bench-strcmp-ifunc.c: New file.
46124         * benchtests/bench-strcmp.c: New file.
46125         * benchtests/bench-strcpy-ifunc.c: New file.
46126         * benchtests/bench-strcpy.c: New file.
46127         * benchtests/bench-strcspn-ifunc.c: New file.
46128         * benchtests/bench-strcspn.c: New file.
46129         * benchtests/bench-strlen-ifunc.c: New file.
46130         * benchtests/bench-strlen.c: New file.
46131         * benchtests/bench-strncasecmp-ifunc.c: New file.
46132         * benchtests/bench-strncasecmp.c: New file.
46133         * benchtests/bench-strncat-ifunc.c: New file.
46134         * benchtests/bench-strncat.c: New file.
46135         * benchtests/bench-strncmp-ifunc.c: New file.
46136         * benchtests/bench-strncmp.c: New file.
46137         * benchtests/bench-strncpy-ifunc.c: New file.
46138         * benchtests/bench-strncpy.c: New file.
46139         * benchtests/bench-strnlen-ifunc.c: New file.
46140         * benchtests/bench-strnlen.c: New file.
46141         * benchtests/bench-strpbrk-ifunc.c: New file.
46142         * benchtests/bench-strpbrk.c: New file.
46143         * benchtests/bench-strrchr-ifunc.c: New file.
46144         * benchtests/bench-strrchr.c: New file.
46145         * benchtests/bench-strspn-ifunc.c: New file.
46146         * benchtests/bench-strspn.c: New file.
46147         * benchtests/bench-strstr-ifunc.c: New file.
46148         * benchtests/bench-strstr.c: New file.
46149
46150         * benchtests/Makefile: Disable parallel execution of targets.
46151         (string-bench): Add memcpy.
46152         (benchset): New variable to store a list of benchmark sets.
46153         (bench-func): Renamed from bench.
46154         (bench-set): New target.
46155         (bench): Depend on bench-func and bench-set.
46156         * benchtests/README: Add section on benchmark sets.
46157         * benchtests/bench-memcpy-ifunc.c: New file.
46158         * benchtests/bench-memcpy.c: New file.
46159         * benchtests/bench-string.h: New file.
46160
46161 2013-06-11  Andreas Schwab  <schwab@suse.de>
46162
46163         [BZ #15577]
46164         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
46165         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
46166         values in the triple.
46167         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
46168         terminator in the group key.
46169
46170 2013-06-11  Andreas Jaeger  <aj@suse.de>
46171
46172         * po/zh_TW.po: Update Chinese (traditional) translation from
46173         translation project.
46174
46175 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46176
46177         * include/time.h (__clock_gettime): Add libc_hidden_proto.
46178         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
46179         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
46180         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
46181         (clock_getcpuclockid): Likewise.
46182         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
46183         Add weak_alias and libc_hidden_def.
46184         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
46185         * rt/clock_gettime.c (clock_gettime): Rename to
46186         __clock_gettime.  Add weak_alias and libc_hidden_def.
46187         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
46188         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
46189         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
46190         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
46191         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
46192         Likewise.
46193         * rt/clock_settime.c (clock_settime): Rename to
46194         __clock_settime.  Add weak_alias and libc_hidden_def.
46195         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
46196
46197 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
46198
46199         * mach/err_boot.sub: Remove trailing whitespace.
46200         * mach/err_ipc.sub: Likewise.
46201         * mach/err_mach.sub: Likewise.
46202
46203         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
46204         (ROUNDING_TESTS_double): Likewise.
46205         (ROUNDING_TESTS_long_double): Likewise.
46206         (ROUNDING_TESTS): Likewise.
46207         * math/libm-test.inc: Include <math-tests.h>.
46208         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
46209         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
46210         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
46211         (IF_ROUND_INIT_FE_UPWARD): Likewise.
46212
46213 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
46214
46215         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
46216         of assigning.
46217
46218 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
46219
46220         * sysdeps/gnu/errlist.awk: Do not generate space at end of
46221         otherwise empty TRANS lines.
46222         * sysdeps/gnu/errlist.c: Regenerated.
46223
46224         * catgets/gencat.c (error_print): Use (void) in function
46225         definition.
46226         * crypt/crypt_util.c (__init_des): Likewise.
46227         * crypt/speeds.c (Stop): Likewise.
46228         (main): Likewise.
46229         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
46230         * inet/ruserpass.c (token): Likewise.
46231         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
46232         * intl/localealias.c (extend_alias_table): Likewise.
46233         * intl/plural-exp.c (init_germanic_plural): Likewise.
46234         * libio/fcloseall.c (__fcloseall): Likewise.
46235         * libio/genops.c (_IO_flush_all): Likewise.
46236         (_IO_flush_all_linebuffered): Likewise.
46237         (_IO_cleanup): Likewise.
46238         (_IO_iter_begin): Likewise.
46239         (_IO_iter_end): Likewise.
46240         (_IO_list_lock): Likewise.
46241         (_IO_list_unlock): Likewise.
46242         (_IO_list_resetlock): Likewise.
46243         * libio/getchar.c (getchar): Likewise.
46244         * libio/getchar_u.c (getchar_unlocked): Likewise.
46245         * libio/getwchar.c (getwchar): Likewise.
46246         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
46247         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
46248         * login/getpt.c (__getpt): Likewise.
46249         * login/tst-utmp.c (main): Likewise.
46250         * malloc/hooks.c (__malloc_check_init): Likewise.
46251         * malloc/malloc.c (__malloc_stats): Likewise.
46252         * malloc/mtrace.c (tr_break): Likewise.
46253         (mtrace): Likewise.
46254         (muntrace): Likewise.
46255         * misc/fstab.c (endfsent): Likewise.
46256         * misc/getclktck.c (__getclktck): Likewise.
46257         * misc/getdtsz.c (__getdtablesize): Likewise.
46258         * misc/gethostid.c (gethostid): Likewise.
46259         * misc/getpagesize.c (__getpagesize): Likewise.
46260         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
46261         (__get_nprocs): Likewise.
46262         (__get_phys_pages): Likewise.
46263         (__get_avphys_pages): Likewise.
46264         * misc/getttyent.c (getttyent): Likewise.
46265         (setttyent): Likewise.
46266         (endttyent): Likewise.
46267         * misc/getusershell.c (getusershell): Likewise.
46268         (endusershell): Likewise.
46269         (setusershell): Likewise.
46270         (initshells): Likewise.
46271         * misc/hsearch.c (__hdestroy): Likewise.
46272         * misc/sync.c (sync): Likewise.
46273         * misc/syslog.c (closelog_internal): Likewise.
46274         (closelog): Likewise.
46275         * misc/ttyslot.c (ttyslot): Likewise.
46276         * misc/vhangup.c (vhangup): Likewise.
46277         * posix/fork.c (__fork): Likewise.
46278         * posix/getegid.c (__getegid): Likewise.
46279         * posix/geteuid.c (__geteuid): Likewise.
46280         * posix/getgid.c (__getgid): Likewise.
46281         * posix/getpid.c (__getpid): Likewise.
46282         * posix/getppid.c (__getppid): Likewise.
46283         * posix/getuid.c (__getuid): Likewise.
46284         * posix/pause.c (pause): Likewise.
46285         * posix/setpgrp.c (setpgrp): Likewise.
46286         * posix/setsid.c (__setsid): Likewise.
46287         * posix/test-vfork.c (noop): Likewise.
46288         * resolv/gethnamaddr.c (_endhtent): Likewise.
46289         (_gethtent): Likewise.
46290         (ht_endhostent): Likewise.
46291         (gethostent): Likewise.
46292         (dns_service): Likewise.
46293         * stdlib/drand48.c (drand48): Likewise.
46294         * stdlib/lrand48.c (lrand48): Likewise.
46295         * stdlib/mrand48.c (mrand48): Likewise.
46296         * stdlib/rand.c (rand): Likewise.
46297         * stdlib/random.c (__random): Likewise.
46298         * stdlib/setenv.c (clearenv): Likewise.
46299         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
46300         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
46301         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
46302         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
46303         (__get_nprocs): Likewise.
46304         (__get_phys_pages): Likewise.
46305         (__get_avphys_pages): Likewise.
46306         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
46307         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
46308         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
46309         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
46310         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
46311         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
46312         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
46313         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
46314         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
46315         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
46316         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
46317         * sysdeps/mach/hurd/sync.c (sync): Likewise.
46318         * sysdeps/posix/clock.c (clock): Likewise.
46319         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
46320         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
46321         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
46322         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
46323         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
46324         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
46325         (__get_nprocs_conf): Likewise.
46326         (__get_phys_pages): Likewise.
46327         (__get_avphys_pages): Likewise.
46328         * time/clock.c (clock): Likewise.
46329         * time/tzset.c (__tzname_max): Likewise.
46330
46331 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
46332
46333         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
46334         (__bswap_32): Do not use "register".
46335         * crypt/crypt.c (_ufc_doit_r): Likewise.
46336         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
46337         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
46338         * gmon/gmon.c (__monstartup): Likewise.
46339         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
46340         * hurd/hurdmalloc.c (more_memory): Likewise.
46341         (malloc): Likewise.
46342         (free): Likewise.
46343         (realloc): Likewise.
46344         (malloc_fork_prepare): Likewise.
46345         (malloc_fork_parent): Likewise.
46346         (malloc_fork_child): Likewise.
46347         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
46348         (_svcauth_des): Likewise.
46349         * inet/inet_lnaof.c (inet_lnaof): Likewise.
46350         * inet/inet_net.c (inet_network): Likewise.
46351         * inet/inet_netof.c (inet_netof): Likewise.
46352         * inet/rcmd.c (__validuser2_sa): Likewise.
46353         * io/fts.c (fts_open): Likewise.
46354         (fts_load): Likewise.
46355         (fts_close): Likewise.
46356         (fts_read): Likewise.
46357         (fts_children): Likewise.
46358         (fts_build): Likewise.
46359         (fts_stat): Likewise.
46360         (fts_sort): Likewise.
46361         (fts_alloc): Likewise.
46362         (fts_lfree): Likewise.
46363         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46364         (_IO_file_xsgetn): Likewise.
46365         (_IO_file_xsgetn_mmap): Likewise.
46366         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46367         (_IO_cookie_write): Likewise.
46368         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46369         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46370         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46371         * malloc/obstack.c (_obstack_begin): Likewise.
46372         (_obstack_begin_1): Likewise.
46373         (_obstack_newchunk): Likewise.
46374         (_obstack_allocated_p): Likewise.
46375         (obstack_free): Likewise.
46376         (_obstack_memory_used): Likewise.
46377         * misc/getttyent.c (getttynam): Likewise.
46378         (getttyent): Likewise.
46379         (skip): Likewise.
46380         (value): Likewise.
46381         * misc/getusershell.c (initshells): Likewise.
46382         * misc/syslog.c (__vsyslog_chk): Likewise.
46383         * misc/ttyslot.c (ttyslot): Likewise.
46384         * nis/nis_hash.c (__nis_hash): Likewise.
46385         * posix/fnmatch_loop.c (FCT): Likewise.
46386         * posix/getconf.c (print_all): Likewise.
46387         (main): Likewise.
46388         * posix/getopt.c (exchange): Likewise.
46389         * posix/glob.c (globfree): Likewise.
46390         (prefix_array): Likewise.
46391         (__glob_pattern_type): Likewise.
46392         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46393         (NS_GET32): Likewise.
46394         (NS_PUT16): Likewise.
46395         (NS_PUT32): Likewise.
46396         * resolv/gethnamaddr.c (getanswer): Likewise.
46397         (gethostbyname2): Likewise.
46398         (gethostbyaddr): Likewise.
46399         (_gethtent): Likewise.
46400         (_gethtbyname2): Likewise.
46401         (_gethtbyaddr): Likewise.
46402         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46403         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46404         * resolv/res_init.c (__res_vinit): Likewise.
46405         (net_mask): Likewise.
46406         * resolv/res_mkquery.c (outchar): Likewise.
46407         (PRINT): Likewise.
46408         * stdio-common/printf_fp.c (outchar): Likewise.
46409         (PRINT): Likewise.
46410         * stdio-common/printf_fphex.c (outchar): Likewise.
46411         (PRINT): Likewise.
46412         * stdio-common/printf_size.c (outchar): Likewise.
46413         (PRINT): Likewise.
46414         * stdio-common/test_rdwr.c (main): Likewise.
46415         * stdio-common/tfformat.c (matches): Likewise.
46416         * stdio-common/vfprintf.c (outchar): Likewise.
46417         (printf_unknown): Likewise.
46418         (buffered_vfprintf): Likewise.
46419         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46420         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46421         (ReadFile): Likewise.
46422         * stdlib/qsort.c (SWAP): Likewise.
46423         (_quicksort): Likewise.
46424         * stdlib/setenv.c (__add_to_environ): Likewise.
46425         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46426         * stdlib/strtol_l.c (__strtol_l): Likewise.
46427         * stdlib/tst-strtod.c (main): Likewise.
46428         * stdlib/tst-strtol.c (main): Likewise.
46429         * stdlib/tst-strtoll.c (main): Likewise.
46430         * string/bits/string2.h (__strcmp_cc): Likewise.
46431         (__strcmp_cg): Likewise.
46432         (__strcspn_c1): Likewise.
46433         (__strcspn_c2): Likewise.
46434         (__strcspn_c3): Likewise.
46435         (__strspn_c1): Likewise.
46436         (__strspn_c2): Likewise.
46437         (__strspn_c3): Likewise.
46438         (__strsep_1c): Likewise.
46439         (__strsep_2c): Likewise.
46440         (__strsep_3c): Likewise.
46441         * string/memccpy.c (__memccpy): Likewise.
46442         * string/stpcpy.c (__stpcpy): Likewise.
46443         * string/strcmp.c (strcmp): Likewise.
46444         * string/strrchr.c (strrchr): Likewise.
46445         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46446         Likewise.
46447         * sysdeps/mach/hurd/getcwd.c
46448         (_hurd_canonicalize_directory_name_internal): Likewise.
46449         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46450         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46451         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46452         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46453         Likewise, in both definitions.
46454         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46455         definitions.
46456         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46457         64] (__bswap_64): Likewise.
46458         * time/test_time.c (main): Likewise.
46459         * time/tzfile.c (__tzfile_read): Likewise.
46460         (__tzfile_compute): Likewise.
46461         * time/tzset.c (__tzset_parse_tz): Likewise.
46462         (tzset_internal): Likewise.
46463         (compute_change): Likewise.
46464         * wcsmbs/wcscat.c (__wcscat): Likewise.
46465         * wcsmbs/wcschr.c (wcschr): Likewise.
46466         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46467         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46468         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46469         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46470         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46471         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46472         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46473         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46474         * wcsmbs/wmemset.c (wmemset): Likewise.
46475
46476 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46477
46478         * scripts/config.guess: Update to version 2013-05-16.
46479         * scripts/config.sub: Update to version 2013-04-24.
46480         * scripts/install-sh: Update to version 2011-11-20.07.
46481         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46482         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46483
46484 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46485
46486         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46487         * elf/sln.c: Likewise.
46488         * hurd/hurd/ioctl.h: Likewise.
46489         * hurd/hurdmalloc.c: Likewise.
46490         * hurd/xattr.c: Likewise.
46491         * include/shlib-compat.h: Likewise.
46492         * inet/ruserpass.c: Likewise.
46493         * libio/iofgets_u.c: Likewise.
46494         * libio/iofgetws_u.c: Likewise.
46495         * locale/programs/ld-identification.c: Likewise.
46496         * locale/programs/ld-time.c: Likewise.
46497         * mach/msg-destroy.c: Likewise.
46498         * nss/nss_files/files-netgrp.c: Likewise.
46499         * resolv/res_data.c: Likewise.
46500         * soft-fp/op-1.h: Likewise.
46501         * soft-fp/op-2.h: Likewise.
46502         * soft-fp/op-4.h: Likewise.
46503         * soft-fp/op-common.h: Likewise.
46504         * stdio-common/printf_fphex.c: Likewise.
46505         * stdlib/strtod_l.c: Likewise.
46506         * sunrpc/rpc/clnt.h: Likewise.
46507         * sysdeps/generic/framestate.c: Likewise.
46508         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46509         * sysdeps/i386/bsd-setjmp.S: Likewise.
46510         * sysdeps/i386/__longjmp.S: Likewise.
46511         * sysdeps/i386/setjmp.S: Likewise.
46512         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46513         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46514         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46515         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46516         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46517         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46518         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46519         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46520         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46521         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46522         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46523         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46524         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46525         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46526         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46527         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46528         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46529         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46530         * sysdeps/ieee754/support.c: Likewise.
46531         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46532         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46533         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46534         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46535         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46536         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46537         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46538         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46539         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46540         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46541         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46542         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46543         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46544         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46545         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46546         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46547         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46549
46550 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46551
46552         * posix/transbug.c: Remove executable mode.
46553
46554 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46555
46556         * crypt/speeds.c: Remove trailing whitespace.
46557         * dlfcn/default.c: Likewise.
46558         * elf/ifuncdep2.c: Likewise.
46559         * elf/ifuncmain1.c: Likewise.
46560         * elf/ifuncmain1vis.c: Likewise.
46561         * elf/testobj.h: Likewise.
46562         * elf/tst-stackguard1.c: Likewise.
46563         * gmon/sys/gmon.h: Likewise.
46564         * hurd/hurdmsg.c: Likewise.
46565         * hurd/new-fd.c: Likewise.
46566         * hurd/ports-get.c: Likewise.
46567         * iconvdata/ibm1008_420.c: Likewise.
46568         * inet/tst-getni1.c: Likewise.
46569         * inet/tst-getni2.c: Likewise.
46570         * libio/ioungetc.c: Likewise.
46571         * libio/wfiledoalloc.c: Likewise.
46572         * manual/libm-err-tab.pl: Likewise.
46573         * math/w_dremf.c: Likewise.
46574         * misc/ftruncate.c: Likewise.
46575         * posix/bug-glob2.c: Likewise.
46576         * posix/tst-pcre.c: Likewise.
46577         * posix/wait4.c: Likewise.
46578         * resolv/README: Likewise.
46579         * resolv/res_debug.h: Likewise.
46580         * resolv/tst-inet_ntop.c: Likewise.
46581         * setjmp/bug269-setjmp.c: Likewise.
46582         * soft-fp/extended.h: Likewise.
46583         * soft-fp/op-1.h: Likewise.
46584         * soft-fp/op-2.h: Likewise.
46585         * soft-fp/op-4.h: Likewise.
46586         * soft-fp/op-8.h: Likewise.
46587         * soft-fp/testit.c: Likewise.
46588         * stdio-common/bug16.c: Likewise.
46589         * stdlib/random.c: Likewise.
46590         * sunrpc/rpcsvc/rquota.x: Likewise.
46591         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46592         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46593         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46594         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46595         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46596         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46597         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46598         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46599         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46600         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46601         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46602         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46603         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46604         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46605         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46606         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46607         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46608         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46609         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46610         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46611         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46612         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46613         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46614         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46615         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46616         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46617         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46618         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46619         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46620         * sysdeps/ieee754/s_lib_version.c: Likewise.
46621         * sysdeps/mach/hurd/check_fds.c: Likewise.
46622         * sysdeps/mach/hurd/getsockname.c: Likewise.
46623         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46624         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46625         * sysdeps/powerpc/bits/link.h: Likewise.
46626         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46627         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46628         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46629         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46630         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46631         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46632         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46633         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46634         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46635         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46636         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46637         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46638         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46639         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46640         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46641         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46642         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46643         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46644         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46645         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46646         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46647         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46648         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46649         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46650         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46651         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46652         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46653         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46654         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46655         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46656         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46657         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46658         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46659         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46660         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46661         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46662         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46663         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46664         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46665         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46666         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46667         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46668         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46669         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46670         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46671         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46672         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46673         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46674         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46675         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46676         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46677         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46678         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46679         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46680         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46681         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46682         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46683         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46684         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46685         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46686         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46687         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46688         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46689         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46690         * sysdeps/powerpc/sysdep.h: Likewise.
46691         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46692         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46693         * sysdeps/sh/dl-trampoline.S: Likewise.
46694         * sysdeps/sh/memset.S: Likewise.
46695         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46696         * sysdeps/sh/strlen.S: Likewise.
46697         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46698         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46699         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46700         * sysdeps/sparc/sparc32/rem.S: Likewise.
46701         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46702         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46703         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46704         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46705         * sysdeps/sparc/sparc32/urem.S: Likewise.
46706         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46707         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46708         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46709         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46710         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46711         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46712         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46713         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46714         * sysdeps/unix/bsd/times.c: Likewise.
46715         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46716         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46720         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46721         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46722         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46723         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46724         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46725         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46726         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46727         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46728         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46729         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46730         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46731         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46732         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46733         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46734         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46735         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46736         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46737         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46738         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46739         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46740         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46741         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46742         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46743         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46744         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46745         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46746         * sysdeps/x86_64/strcspn.S: Likewise.
46747
46748 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46749
46750         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46751         generated file.  Regenerate properly from gen-translit.pl.
46752         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46753         locale/C-translit.h.
46754
46755 2013-06-05  Andreas Schwab  <schwab@suse.de>
46756
46757         [BZ #15100]
46758         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46759         week as 6 instead of -1.
46760         * time/tst-strptime.c (day_tests): Add test case.
46761
46762 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46763
46764         * sysdeps/generic/math_private.h
46765         (libc_feholdexcept_setround_53bit): Replace with
46766         libc_feholdsetround_53bit.
46767         (libc_feupdateenv_53bit): Replace with
46768         libc_feresetround_53bit.
46769         (SET_RESTORE_ROUND_53BIT): Adjust.
46770
46771 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46772
46773         * string/test-strchrnul.c: Add copyright header.
46774
46775         * posix/tst-getaddrinfo4.c: Increase test timeout.
46776
46777 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46778
46779         [BZ #15536]
46780         * math/libm-test.inc (MAX_EXP): Remove
46781         (MIN_EXP): Define.
46782         (ulp): Use MIN_EXP - MANT_DIG.
46783         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46784
46785 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46786
46787         * po/be.po: Revert last change.
46788         * po/zh_CN.po: Likewise.
46789         * po/header.pot: Likewise.
46790
46791 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46792
46793         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46794         link-libc-deps to empty as target-specific variable.
46795         * Makerules (link-libc-args): New variable.
46796         (libc-for-link): Likewise.
46797         (link-libc-deps): Likewise.
46798         (lib%.so): Depend on $(link-libc-deps).  Link with
46799         $(link-libc-args).
46800         (build-module): Link with $(link-libc-args).
46801         (build-module-asneeded): Likewise.
46802         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46803         list of objects.
46804         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46805         target-specific variable.
46806         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46807         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46808         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46809         libc.
46810         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46811         libc and ld.so.
46812         ($(objpfx)libpcprofile.so): Likewise.
46813         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46814         libc_nonshared.a.
46815         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46816         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46817         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46818         $(link-libc-deps).
46819         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46820         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46821         * login/Makefile ($(objpfx)libutil.so): Likewise.
46822         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46823         * math/Makefile ($(objpfx)libm.so): Likewise.
46824         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46825         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46826         variable instead of depending directly on libc.
46827         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46828         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46829         $(link-libc-deps).
46830         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46831         libc.
46832         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46833         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46834         ($(objpfx)libanl.so): Likewise.
46835         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46836         ld.so.
46837         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46838         $(link-libc-deps).
46839         * sysdeps/i386/fpu/Makefile: Remove file.
46840         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46841         ($(objpfx)libm.so): Remove dependency on ld.so.
46842
46843 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46844
46845         [BZ # 15553]
46846         * nis/yp_xdr.c (XDRMAXNAME): Define.
46847         (XDRMAXRECORD): Define.
46848         (xdr_domainname): Use XDRMAXNAME.
46849         (xdr_mapname): Likewise.
46850         (xdr_peername): Likewise.
46851         (xdr_keydat): Use XDRMAXRECORD.
46852         (xdr_valdat): Likewise.
46853
46854 2013-05-30  Jeff Law  <law@redhat.com>
46855
46856         [BZ #14256]
46857         * manual/errno.texi (ESTALE): Update to account for more than
46858         just NFS file systems.
46859         * sysdeps/gnu/errlist.c: Regenerated.
46860
46861 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46862
46863         [BZ #15465]
46864         * elf/Makefile (tests): Add tst-null-argv.
46865         (modules-names):  Add tst-null-argv-lib.
46866         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46867         (tst-null-argv-ENV): Set environment for tst-null-argv.
46868         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46869         (RTLD_PROGNAME): New macro.
46870         * elf/tst-null-argv.c: New test case.
46871         * elf/tst-null-argv-lib.c: Library for test case.
46872         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46873         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46874         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46875         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46876         * elf/dl-init.c (call_init): Likewise.
46877         (_dl_init): Likewise.
46878         * elf/dl-load.c (print_search_path): Likewise.
46879         (_dl_map_object): Likewise.
46880         * elf/dl-lookup.c (do_lookup_x): Likewise.
46881         (add_dependency): Likewise.
46882         (_dl_lookup_symbol_x): Likewise.
46883         (_dl_debug_bindings): Likewise.
46884         * elf/dl-open.c (_dl_show_scope): Likewise.
46885         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46886         * elf/dl-version.c (match_symbol): Likewise.
46887         (_dl_check_map_versions): Likewise.
46888         * elf/rtld.c (dl_main): Likewise.
46889         (print_unresolved): Use RTLD_PROGNAME.
46890         (print_missing_version): Likewise.
46891         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46892         (elf_machine_rela): Likewise.
46893         * sysdeps/powerpc/powerpc32/dl-machine.c
46894         (__process_machine_rela): Likewise.
46895         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46896         Likewise.
46897         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46898         Likewise.
46899         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46900         Likewise.
46901         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46902         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46903         Likewise.
46904         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46905         Likewise.
46906         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46907
46908 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46909
46910         * po/be.po: Add descriptive title.
46911         * po/zh_CN.po: Likewise.
46912         * po/header.pot: Likewise.
46913
46914 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46915
46916         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46917         error message.
46918         (enlarge_archive): Likewise.
46919
46920 2013-05-28  Ben North  <ben@redfrontdoor.org>
46921
46922         * manual/arith.texi (frexp): It is the magnitude of the return
46923         value which lies in [0.5, 1), not the return value itself.
46924
46925 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46926
46927         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46928
46929 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46930
46931         * stdio-common/bug26.c (main): Correct fscanf template.
46932
46933         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46934         declare _dl_skip_args.
46935
46936         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46937         Don't declare.
46938
46939         * manual/platform.texi: Add missing @end deftypefun.
46940
46941 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46942
46943         [BZ #15529]
46944         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46945         bit of mantissa of 2^16382.
46946         * math/libm-test.inc (hypot_test_data): Add more tests.
46947
46948         * math/libm-test.inc: Add drem and pow10 to list of tested
46949         functions.
46950         (pow10_test): New function.
46951         (drem_test): Likewise.
46952         (drem_test_tonearest): Likewise.
46953         (drem_test_towardzero): Likewise.
46954         (drem_test_downward): Likewise.
46955         (drem_test_upward): Likewise.
46956         (main): Call the new functions.
46957
46958         * math/libm-test.inc (finite_test_data): Remove.
46959         (finite_test): Run tests from isfinite_test_data.
46960         (gamma_test_data): Remove.
46961         (gamma_test): Run tests from lgamma_test_data.
46962         * sysdeps/i386/fpu/libm-test-ulps: Update.
46963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46964
46965 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46966
46967         * manual/platform.texi: Add PowerPC PPR function set documentation.
46968         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46969         implementation.
46970
46971 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46972
46973         * math/libm-test.inc (MAX_EXP): Define.
46974         (ULPDIFF): Define.
46975         (ulp): New function.
46976         (check_float_internal): Use ULPDIFF.
46977         (cpow_test): Disable failing test.
46978         (check_ulp): Test ulp() implemetnation.
46979         (main): Call check_ulp before starting tests.
46980
46981 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46982
46983         * math/gen-libm-test.pl (generate_testfile): Do not handle
46984         START_DATA and END_DATA.
46985         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46986         END_DATA.
46987         (acos_tonearest_test_data): Likewise.
46988         (acos_towardzero_test_data): Likewise.
46989         (acos_downward_test_data): Likewise.
46990         (acos_upward_test_data): Likewise.
46991         (acosh_test_data): Likewise.
46992         (asin_test_data): Likewise.
46993         (asin_tonearest_test_data): Likewise.
46994         (asin_towardzero_test_data): Likewise.
46995         (asin_downward_test_data): Likewise.
46996         (asin_upward_test_data): Likewise.
46997         (asinh_test_data): Likewise.
46998         (atan_test_data): Likewise.
46999         (atanh_test_data): Likewise.
47000         (atan2_test_data): Likewise.
47001         (cabs_test_data): Likewise.
47002         (cacos_test_data): Likewise.
47003         (cacosh_test_data): Likewise.
47004         (carg_test_data): Likewise.
47005         (casin_test_data): Likewise.
47006         (casinh_test_data): Likewise.
47007         (catan_test_data): Likewise.
47008         (catanh_test_data): Likewise.
47009         (cbrt_test_data): Likewise.
47010         (ccos_test_data): Likewise.
47011         (ccosh_test_data): Likewise.
47012         (ceil_test_data): Likewise.
47013         (cexp_test_data): Likewise.
47014         (cimag_test_data): Likewise.
47015         (clog_test_data): Likewise.
47016         (clog10_test_data): Likewise.
47017         (conj_test_data): Likewise.
47018         (copysign_test_data): Likewise.
47019         (cos_test_data): Likewise.
47020         (cos_tonearest_test_data): Likewise.
47021         (cos_towardzero_test_data): Likewise.
47022         (cos_downward_test_data): Likewise.
47023         (cos_upward_test_data): Likewise.
47024         (cosh_test_data): Likewise.
47025         (cosh_tonearest_test_data): Likewise.
47026         (cosh_towardzero_test_data): Likewise.
47027         (cosh_downward_test_data): Likewise.
47028         (cosh_upward_test_data): Likewise.
47029         (cpow_test_data): Likewise.
47030         (cproj_test_data): Likewise.
47031         (creal_test_data): Likewise.
47032         (csin_test_data): Likewise.
47033         (csinh_test_data): Likewise.
47034         (csqrt_test_data): Likewise.
47035         (ctan_test_data): Likewise.
47036         (ctan_tonearest_test_data): Likewise.
47037         (ctan_towardzero_test_data): Likewise.
47038         (ctan_downward_test_data): Likewise.
47039         (ctan_upward_test_data): Likewise.
47040         (ctanh_test_data): Likewise.
47041         (ctanh_tonearest_test_data): Likewise.
47042         (ctanh_towardzero_test_data): Likewise.
47043         (ctanh_downward_test_data): Likewise.
47044         (ctanh_upward_test_data): Likewise.
47045         (erf_test_data): Likewise.
47046         (erfc_test_data): Likewise.
47047         (exp_test_data): Likewise.
47048         (exp_tonearest_test_data): Likewise.
47049         (exp_towardzero_test_data): Likewise.
47050         (exp_downward_test_data): Likewise.
47051         (exp_upward_test_data): Likewise.
47052         (exp10_test_data): Likewise.
47053         (exp2_test_data): Likewise.
47054         (expm1_test_data): Likewise.
47055         (fabs_test_data): Likewise.
47056         (fdim_test_data): Likewise.
47057         (finite_test_data): Likewise.
47058         (floor_test_data): Likewise.
47059         (fma_test_data): Likewise.
47060         (fma_towardzero_test_data): Likewise.
47061         (fma_downward_test_data): Likewise.
47062         (fma_upward_test_data): Likewise.
47063         (fmax_test_data): Likewise.
47064         (fmin_test_data): Likewise.
47065         (fmod_test_data): Likewise.
47066         (fpclassify_test_data): Likewise.
47067         (frexp_test_data): Likewise.
47068         (gamma_test_data): Likewise.
47069         (hypot_test_data): Likewise.
47070         (ilogb_test_data): Likewise.
47071         (isfinite_test_data): Likewise.
47072         (isgreater_test_data): Likewise.
47073         (isgreaterequal_test_data): Likewise.
47074         (isinf_test_data): Likewise.
47075         (isless_test_data): Likewise.
47076         (islessequal_test_data): Likewise.
47077         (islessgreater_test_data): Likewise.
47078         (isnan_test_data): Likewise.
47079         (isnormal_test_data): Likewise.
47080         (issignaling_test_data): Likewise.
47081         (isunordered_test_data): Likewise.
47082         (j0_test_data): Likewise.
47083         (j1_test_data): Likewise.
47084         (jn_test_data): Likewise.
47085         (ldexp_test_data): Likewise.
47086         (lgamma_test_data): Likewise.
47087         (lrint_test_data): Likewise.
47088         (lrint_tonearest_test_data): Likewise.
47089         (lrint_towardzero_test_data): Likewise.
47090         (lrint_downward_test_data): Likewise.
47091         (lrint_upward_test_data): Likewise.
47092         (llrint_test_data): Likewise.
47093         (llrint_tonearest_test_data): Likewise.
47094         (llrint_towardzero_test_data): Likewise.
47095         (llrint_downward_test_data): Likewise.
47096         (llrint_upward_test_data): Likewise.
47097         (log_test_data): Likewise.
47098         (log10_test_data): Likewise.
47099         (log1p_test_data): Likewise.
47100         (log2_test_data): Likewise.
47101         (logb_test_data): Likewise.
47102         (logb_downward_test_data): Likewise.
47103         (lround_test_data): Likewise.
47104         (llround_test_data): Likewise.
47105         (modf_test_data): Likewise.
47106         (nearbyint_test_data): Likewise.
47107         (nextafter_test_data): Likewise.
47108         (nexttoward_test_data): Likewise.
47109         (pow_test_data): Likewise.
47110         (pow_tonearest_test_data): Likewise.
47111         (pow_towardzero_test_data): Likewise.
47112         (pow_downward_test_data): Likewise.
47113         (pow_upward_test_data): Likewise.
47114         (remainder_test_data): Likewise.
47115         (remainder_tonearest_test_data): Likewise.
47116         (remainder_towardzero_test_data): Likewise.
47117         (remainder_downward_test_data): Likewise.
47118         (remainder_upward_test_data): Likewise.
47119         (remquo_test_data): Likewise.
47120         (rint_test_data): Likewise.
47121         (rint_tonearest_test_data): Likewise.
47122         (rint_towardzero_test_data): Likewise.
47123         (rint_downward_test_data): Likewise.
47124         (rint_upward_test_data): Likewise.
47125         (round_test_data): Likewise.
47126         (scalb_test_data): Likewise.
47127         (scalbn_test_data): Likewise.
47128         (scalbln_test_data): Likewise.
47129         (signbit_test_data): Likewise.
47130         (sin_test_data): Likewise.
47131         (sin_tonearest_test_data): Likewise.
47132         (sin_towardzero_test_data): Likewise.
47133         (sin_downward_test_data): Likewise.
47134         (sin_upward_test_data): Likewise.
47135         (sincos_test_data): Likewise.
47136         (sinh_test_data): Likewise.
47137         (sinh_tonearest_test_data): Likewise.
47138         (sinh_towardzero_test_data): Likewise.
47139         (sinh_downward_test_data): Likewise.
47140         (sinh_upward_test_data): Likewise.
47141         (sqrt_test_data): Likewise.
47142         (tan_test_data): Likewise.
47143         (tan_tonearest_test_data): Likewise.
47144         (tan_towardzero_test_data): Likewise.
47145         (tan_downward_test_data): Likewise.
47146         (tan_upward_test_data): Likewise.
47147         (tanh_test_data): Likewise.
47148         (tgamma_test_data): Likewise.
47149         (trunc_test_data): Likewise.
47150         (y0_test_data): Likewise.
47151         (y1_test_data): Likewise.
47152         (yn_test_data): Likewise.
47153         (significand_test_data): Likewise.
47154
47155         * math/gen-libm-test.pl (@functions): Remove variable.
47156         (generate_testfile): Don't handle START and END lines.
47157         * math/libm-test.inc (START): New macro.
47158         (END): Likewise.
47159         (END_COMPLEX): Likewise.
47160         (acos_test): Use END macro without arguments.
47161         (acos_test_tonearest): Likewise.
47162         (acos_test_towardzero): Likewise.
47163         (acos_test_downward): Likewise.
47164         (acos_test_upward): Likewise.
47165         (acosh_test): Likewise.
47166         (asin_test): Likewise.
47167         (asin_test_tonearest): Likewise.
47168         (asin_test_towardzero): Likewise.
47169         (asin_test_downward): Likewise.
47170         (asin_test_upward): Likewise.
47171         (asinh_test): Likewise.
47172         (atan_test): Likewise.
47173         (atanh_test): Likewise.
47174         (atan2_test): Likewise.
47175         (cabs_test): Likewise.
47176         (cacos_test): Use END_COMPLEX macro without arguments.
47177         (cacosh_test): Likewise.
47178         (carg_test): Use END macro without arguments.
47179         (casin_test): Use END_COMPLEX macro without arguments.
47180         (casinh_test): Likewise.
47181         (catan_test): Likewise.
47182         (catanh_test): Likewise.
47183         (cbrt_test): Use END macro without arguments.
47184         (ccos_test): Use END_COMPLEX macro without arguments.
47185         (ccosh_test): Likewise.
47186         (ceil_test): Use END macro without arguments.
47187         (cexp_test): Use END_COMPLEX macro without arguments.
47188         (cimag_test): Use END macro without arguments.
47189         (clog_test): Use END_COMPLEX macro without arguments.
47190         (clog10_test): Likewise.
47191         (conj_test): Likewise.
47192         (copysign_test): Use END macro without arguments.
47193         (cos_test): Likewise.
47194         (cos_test_tonearest): Likewise.
47195         (cos_test_towardzero): Likewise.
47196         (cos_test_downward): Likewise.
47197         (cos_test_upward): Likewise.
47198         (cosh_test): Likewise.
47199         (cosh_test_tonearest): Likewise.
47200         (cosh_test_towardzero): Likewise.
47201         (cosh_test_downward): Likewise.
47202         (cosh_test_upward): Likewise.
47203         (cpow_test): Use END_COMPLEX macro without arguments.
47204         (cproj_test): Likewise.
47205         (creal_test): Use END macro without arguments.
47206         (csin_test): Use END_COMPLEX macro without arguments.
47207         (csinh_test): Likewise.
47208         (csqrt_test): Likewise.
47209         (ctan_test): Likewise.
47210         (ctan_test_tonearest): Likewise.
47211         (ctan_test_towardzero): Likewise.
47212         (ctan_test_downward): Likewise.
47213         (ctan_test_upward): Likewise.
47214         (ctanh_test): Likewise.
47215         (ctanh_test_tonearest): Likewise.
47216         (ctanh_test_towardzero): Likewise.
47217         (ctanh_test_downward): Likewise.
47218         (ctanh_test_upward): Likewise.
47219         (erf_test): Use END macro without arguments.
47220         (erfc_test): Likewise.
47221         (exp_test): Likewise.
47222         (exp_test_tonearest): Likewise.
47223         (exp_test_towardzero): Likewise.
47224         (exp_test_downward): Likewise.
47225         (exp_test_upward): Likewise.
47226         (exp10_test): Likewise.
47227         (exp2_test): Likewise.
47228         (expm1_test): Likewise.
47229         (fabs_test): Likewise.
47230         (fdim_test): Likewise.
47231         (finite_test): Likewise.
47232         (floor_test): Likewise.
47233         (fma_test): Likewise.
47234         (fma_test_towardzero): Likewise.
47235         (fma_test_downward): Likewise.
47236         (fma_test_upward): Likewise.
47237         (fmax_test): Likewise.
47238         (fmin_test): Likewise.
47239         (fmod_test): Likewise.
47240         (fpclassify_test): Likewise.
47241         (frexp_test): Likewise.
47242         (gamma_test): Likewise.
47243         (hypot_test): Likewise.
47244         (ilogb_test): Likewise.
47245         (isfinite_test): Likewise.
47246         (isgreater_test): Likewise.
47247         (isgreaterequal_test): Likewise.
47248         (isinf_test): Likewise.
47249         (isless_test): Likewise.
47250         (islessequal_test): Likewise.
47251         (islessgreater_test): Likewise.
47252         (isnan_test): Likewise.
47253         (isnormal_test): Likewise.
47254         (issignaling_test): Likewise.
47255         (isunordered_test): Likewise.
47256         (j0_test): Likewise.
47257         (j1_test): Likewise.
47258         (jn_test): Likewise.
47259         (ldexp_test): Likewise.
47260         (lgamma_test): Likewise.
47261         (lrint_test): Likewise.
47262         (lrint_test_tonearest): Likewise.
47263         (lrint_test_towardzero): Likewise.
47264         (lrint_test_downward): Likewise.
47265         (lrint_test_upward): Likewise.
47266         (llrint_test): Likewise.
47267         (llrint_test_tonearest): Likewise.
47268         (llrint_test_towardzero): Likewise.
47269         (llrint_test_downward): Likewise.
47270         (llrint_test_upward): Likewise.
47271         (log_test): Likewise.
47272         (log10_test): Likewise.
47273         (log1p_test): Likewise.
47274         (log2_test): Likewise.
47275         (logb_test): Likewise.
47276         (logb_test_downward): Likewise.
47277         (lround_test): Likewise.
47278         (llround_test): Likewise.
47279         (modf_test): Likewise.
47280         (nearbyint_test): Likewise.
47281         (nextafter_test): Likewise.
47282         (nexttoward_test): Likewise.
47283         (pow_test): Likewise.
47284         (pow_test_tonearest): Likewise.
47285         (pow_test_towardzero): Likewise.
47286         (pow_test_downward): Likewise.
47287         (pow_test_upward): Likewise.
47288         (remainder_test): Likewise.
47289         (remainder_test_tonearest): Likewise.
47290         (remainder_test_towardzero): Likewise.
47291         (remainder_test_downward): Likewise.
47292         (remainder_test_upward): Likewise.
47293         (remquo_test): Likewise.
47294         (rint_test): Likewise.
47295         (rint_test_tonearest): Likewise.
47296         (rint_test_towardzero): Likewise.
47297         (rint_test_downward): Likewise.
47298         (rint_test_upward): Likewise.
47299         (round_test): Likewise.
47300         (scalb_test): Likewise.
47301         (scalbn_test): Likewise.
47302         (scalbln_test): Likewise.
47303         (signbit_test): Likewise.
47304         (sin_test): Likewise.
47305         (sin_test_tonearest): Likewise.
47306         (sin_test_towardzero): Likewise.
47307         (sin_test_downward): Likewise.
47308         (sin_test_upward): Likewise.
47309         (sincos_test): Likewise.
47310         (sinh_test): Likewise.
47311         (sinh_test_tonearest): Likewise.
47312         (sinh_test_towardzero): Likewise.
47313         (sinh_test_downward): Likewise.
47314         (sinh_test_upward): Likewise.
47315         (sqrt_test): Likewise.
47316         (tan_test): Likewise.
47317         (tan_test_tonearest): Likewise.
47318         (tan_test_towardzero): Likewise.
47319         (tan_test_downward): Likewise.
47320         (tan_test_upward): Likewise.
47321         (tanh_test): Likewise.
47322         (tgamma_test): Likewise.
47323         (trunc_test): Likewise.
47324         (y0_test): Likewise.
47325         (y1_test): Likewise.
47326         (yn_test): Likewise.
47327         (significand_test): Likewise.
47328
47329 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
47330
47331         [BZ #15381]
47332         * libio/genops.c (_IO_no_init): Initialize wide struct info.
47333
47334 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47335
47336         [BZ #14894]
47337         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
47338         __ppc_mdoio and __ppc_mdoom.
47339         * manual/platform.texi: Document new functions __ppc_yield,
47340         __ppc_mdoio and __ppc_mdoom.
47341
47342 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
47343
47344         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
47345         (main): Mention "tls" pseudo-hwcap is legacy.
47346         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
47347
47348 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47349
47350         * math/gen-libm-test.pl (parse_args): Output only string of
47351         arguments as text for test name, not full call or descriptions of
47352         tests for extra outputs.
47353         (generate_testfile): Do not pass function name to parse_args.
47354         Generate this_func variable from START.
47355         * math/libm-test.inc (struct test_f_f_data): Rename test_name
47356         field to arg_str.
47357         (struct test_ff_f_data): Likewise.
47358         (test_ff_f_data_nexttoward): Likewise.
47359         (struct test_fi_f_data): Likewise.
47360         (struct test_fl_f_data): Likewise.
47361         (struct test_if_f_data): Likewise.
47362         (struct test_fff_f_data): Likewise.
47363         (struct test_c_f_data): Likewise.
47364         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47365         (struct test_fF_f1_data): Likewise.
47366         (struct test_ffI_f1_data): Likewise.
47367         (struct test_c_c_data): Rename test_name field to arg_str.
47368         (struct test_cc_c_data): Likewise.
47369         (struct test_f_i_data): Likewise.
47370         (struct test_ff_i_data): Likewise.
47371         (struct test_f_l_data): Likewise.
47372         (struct test_f_L_data): Likewise.
47373         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47374         and extra2_name.
47375         (COMMON_TEST_SETUP): New macro.
47376         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47377         (COMMON_TEST_CLEANUP): Likewise.
47378         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47379         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47380         macros.
47381         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47382         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47383         macros.
47384         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47385         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47386         cleanup macros.
47387         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47388         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47389         macros.
47390         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47391         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47392         macros.
47393         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47394         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47395         cleanup macros.
47396         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47397         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47398         cleanup macros.
47399         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47400         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47401         cleanup macros.
47402         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47403         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47404         macros.
47405         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47406         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47407         macros.
47408         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47409         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47410         macros.
47411         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47412         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47413         cleanup macros.
47414         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47415         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47416         cleanup macros.
47417         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47418         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47419         macros.
47420         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47421         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47422         cleanup macros.
47423         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47424         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47425         macros.
47426         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47427         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47428         macros.
47429         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47430         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47431         cleanup macros.
47432         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47433
47434 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47435
47436         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47437         to _sifields.sigfault.
47438         (si_addr_lsb): Define new macro.
47439         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47440         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47441         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47442
47443 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47444
47445         [BZ #15441]
47446         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47447         returns -1.
47448         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47449         null return -1.
47450         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47451         loading the domain.
47452
47453 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47454
47455         * math/gen-libm-test.pl (parse_args): Do not include expected
47456         result in test name.
47457         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47458         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47459         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47460         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47461         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47462         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47463
47464 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47465
47466         * benchtests/Makefile: Sort function entries.
47467
47468         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47469         tanh, asinh, acosh, atanh.
47470         * benchtests/acos-inputs: New file.
47471         * benchtests/acosh-inputs: New file.
47472         * benchtests/asin-inputs: New file.
47473         * benchtests/asinh-inputs: New file.
47474         * benchtests/atanh-inputs: New file.
47475         * benchtests/cosh-inputs: New file.
47476         * benchtests/log-inputs: New file.
47477         * benchtests/sinh-inputs: New file.
47478         * benchtests/tanh-inputs: New file.
47479
47480 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47481
47482         [BZ #15339]
47483         * posix/tst-getaddrinfo4.c: New test.
47484         * posix/Makefile (tests): Add it.
47485
47486 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47487
47488         [BZ #15339]
47489         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47490         when no services were used.
47491         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47492         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47493
47494 2013-05-21  Andreas Schwab  <schwab@suse.de>
47495
47496         [BZ #15014]
47497         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47498         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47499         successful.
47500         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47501         redundant variable declarations and reallocation of buffer when
47502         parsing as IPv6 address.  Always set NSS status when called from
47503         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47504         buffer too small.  Correct computation of needed size.
47505         * nss/Makefile (tests): Add test-digits-dots.
47506         * nss/test-digits-dots.c: New test.
47507
47508 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47509
47510         * benchtests/Makefile: Remove instructions for adding
47511         benchmark tests.
47512         * benchtests/README: New file to explain how to execute and
47513         enhance the benchmark tests.
47514
47515 2013-05-21  Andreas Schwab  <schwab@suse.de>
47516
47517         [BZ #15493]
47518         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47519         * setjmp/tst-sigsetjmp.c: New test.
47520
47521 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47522
47523         * sysdeps/x86_64/memset.S (memset): New implementation.
47524         (__bzero): Likewise.
47525         (__memset_tail): New function.
47526
47527 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47528
47529         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47530         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47531         __memcpy_sse2_unaligned ifunc selection.
47532         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47533         Add memcpy-sse2-unaligned.S.
47534         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47535         Add: __memcpy_sse2_unaligned.
47536
47537 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47538
47539         [BZ #15490]
47540         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47541         math_force_eval before restoring floating-point envrionment.
47542         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47543         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47544         Likewise.
47545         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47546         <math_private.h>.
47547         (__nearbyintl): Use math_force_eval before restoring
47548         floating-point environment.
47549         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47550
47551         * math/gen-libm-test.pl (special_functions): Remove.
47552         (parse_args): Don't handle TEST_extra.  Handle functions with no
47553         return value.
47554         * math/libm-test.inc (struct test_sincos_data): Replace with
47555         struct test_fFF_11_data.
47556         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47557         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47558         (sincos_test_data): Change element type to struct
47559         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47560         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47561         RUN_TEST_LOOP_sincos.
47562         * math/README.libm-test: Don't mention special handling of
47563         individual functions.
47564         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47565         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47566         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47567         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47568         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47570
47571         * math/gen-libm-test.pl (get_variable): Remove function.
47572         (parse_args): Don't show pointer parameters to call in test
47573         names.  Use "extra output N" in test names for extra outputs
47574         rather than naming variables.
47575
47576 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47577
47578         [BZ #15488]
47579         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47580         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47581         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47582         double tests.
47583         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47584         disable.
47585         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47586         check_long_double.
47587
47588         * math/gen-libm-test.pl (@tests): Remove variable.
47589         ($count): Likewise.
47590         (new_test): Remove function.
47591         (show_exceptions): New function.
47592         (special_functions): Use show_exceptions instead of new_test.
47593         (parse_args): Likewise.
47594         (generate_testfile): Pass only function name in generated call to
47595         print_max_error or print_complex_max_error.
47596         (get_ulps): Do not handle complex tests specially.
47597         (output_test): Rename to ...
47598         (get_all_ulps_for_test): ... this.  Return a string rather than
47599         printing to a file.  Require ulps to be present.
47600         (output_ulps): Generate arrays rather than #defines.
47601         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47602         (struct ulp_data): New type.
47603         (BUILD_COMPLEX_ULP): Remove macro.
47604         (compare_ulp_data): New function.
47605         (find_ulps): Likewise.
47606         (find_test_ulps): Likewise.
47607         (find_function_ulps): Likewise.
47608         (find_complex_function_ulps): Likewise.
47609         (print_max_error): Determine allowed ulps using
47610         find_function_ulps.
47611         (print_complex_max_error): Determine allowed ulps using
47612         find_complex_function_ulps.
47613         (check_float_internal): Determine max ulps using find_test_ulps.
47614         (check_float): Do not take max_ulp parameter.  Update call to
47615         check_float_internal.
47616         (check_complex): Likewise.
47617         (check_int): Do not take max_ulp parameter.
47618         (check_long): Likewise.
47619         (check_bool): Likewise.
47620         (check_longlong): Likewise.
47621         (struct test_f_f_data): Remove max_ulp field.
47622         (struct test_ff_f_data): Likewise.
47623         (struct test_ff_f_data_nexttoward): Likewise.
47624         (struct test_fi_f_data): Likewise.
47625         (struct test_fl_f_data): Likewise.
47626         (struct test_if_f_data): Likewise.
47627         (struct test_fff_f_data): Likewise.
47628         (struct test_c_f_data): Likewise.
47629         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47630         (struct test_fF_f1_data): Likewise.
47631         (struct test_ffI_f1_data): Likewise.
47632         (struct test_c_c_data): Remove max_ulp field.
47633         (struct test_cc_c_data): Likewise.
47634         (struct test_f_i_data): Likewise.
47635         (struct test_ff_i_data): Likewise.
47636         (struct test_f_l_data): Likewise.
47637         (struct test_f_L_data): Likewise.
47638         (struct test_sincos_data): Likewise.
47639         (RUN_TEST_f_f): Do not handle ulps.
47640         (RUN_TEST_LOOP_f_f): Likewise.
47641         (RUN_TEST_2_f): Likewise.
47642         (RUN_TEST_LOOP_2_f): Likewise.
47643         (RUN_TEST_fff_f): Likewise.
47644         (RUN_TEST_LOOP_fff_f): Likewise.
47645         (RUN_TEST_c_f): Likewise.
47646         (RUN_TEST_LOOP_c_f): Likewise.
47647         (RUN_TEST_f_f1): Likewise.
47648         (RUN_TEST_LOOP_f_f1): Likewise.
47649         (RUN_TEST_fF_f1): Likewise.
47650         (RUN_TEST_LOOP_fF_f1): Likewise.
47651         (RUN_TEST_fI_f1): Likewise.
47652         (RUN_TEST_LOOP_fI_f1): Likewise.
47653         (RUN_TEST_ffI_f1): Likewise.
47654         (RUN_TEST_LOOP_ffI_f1): Likewise.
47655         (RUN_TEST_c_c): Likewise.
47656         (RUN_TEST_LOOP_c_c): Likewise.
47657         (RUN_TEST_cc_c): Likewise.
47658         (RUN_TEST_LOOP_cc_c): Likewise.
47659         (RUN_TEST_f_i): Likewise.
47660         (RUN_TEST_LOOP_f_i): Likewise.
47661         (RUN_TEST_f_i_tg): Likewise.
47662         (RUN_TEST_LOOP_f_i_tg): Likewise.
47663         (RUN_TEST_ff_i_tg): Likewise.
47664         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47665         (RUN_TEST_f_b): Likewise.
47666         (RUN_TEST_LOOP_f_b): Likewise.
47667         (RUN_TEST_f_b_tg): Likewise.
47668         (RUN_TEST_LOOP_f_b_tg): Likewise.
47669         (RUN_TEST_f_l): Likewise.
47670         (RUN_TEST_LOOP_f_l): Likewise.
47671         (RUN_TEST_f_L): Likewise.
47672         (RUN_TEST_LOOP_f_L): Likewise.
47673         (RUN_TEST_sincos): Likewise.
47674         (RUN_TEST_LOOP_sincos): Likewise.
47675
47676 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47677
47678         [BZ #15480]
47679         [BZ #15485]
47680         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47681         main case of finite arguments, set rounding mode to FE_TONEAREST
47682         and discard exceptions.
47683         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47684         exceptions.
47685         (remainder_tonearest_test_data): New variable.
47686         (remainder_test_tonearest): New function.
47687         (remainder_towardzero_test_data): New variable.
47688         (remainder_test_towardzero): New function.
47689         (remainder_downward_test_data): New variable.
47690         (remainder_test_downward): New function.
47691         (remainder_upward_test_data): New variable.
47692         (remainder_test_upward): New function.
47693         (main): Call the new test functions.
47694
47695         * math/libm-test.inc (struct test_f_f1_data): Remove field
47696         extra_init.
47697         (struct test_fF_f1_data): Likewise.
47698         (struct test_ffI_f1_data): Likewise.
47699         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47700         based on value of EXTRA_EXPECTED.
47701         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47702         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47703         EXTRA_VAR based on value of EXTRA_EXPECTED.
47704         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47705         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47706         EXTRA_VAR based on value of EXTRA_EXPECTED.
47707         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47708         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47709         EXTRA_VAR based on value of EXTRA_EXPECTED.
47710         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47711         * math/gen-libm-test.pl (parse_args): Don't output initializers
47712         for extra output values.
47713
47714         * math/libm-test.inc (check_int): Expect result to be exactly
47715         equal to expected value and do not handle ulps.
47716         (check_long): Likewise.
47717         (check_longlong): Likewise.
47718
47719         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47720         exceptions.
47721         (cimag_test_data): Likewise.
47722         (conj_test_data): Likewise.
47723         (copysign_test_data): Likewise.
47724         (cproj_test_data): Likewise.
47725         (creal_test_data): Likewise.
47726         (fabs_test_data): Likewise.
47727         (fdim_test_data): Likewise.
47728         (finite_test_data): Likewise.
47729         (floor_test_data): Likewise.
47730         (fmax_test_data): Likewise.
47731         (fmin_test_data): Likewise.
47732         (fmod_test_data): Likewise.
47733         (fpclassify_test_data): Likewise.
47734         (frexp_test_data): Likewise.
47735         (ilogb_test_data): Likewise.
47736         (isfinite_test_data): Likewise.
47737         (isgreater_test_data): Likewise.
47738         (isgreaterequal_test_data): Likewise.
47739         (isinf_test_data): Likewise.
47740         (isless_test_data): Likewise.
47741         (islessequal_test_data): Likewise.
47742         (islessgreater_test_data): Likewise.
47743         (isnan_test_data): Likewise.
47744         (isnormal_test_data): Likewise.
47745         (issignaling_test_data): Likewise.
47746         (isunordered_test_data): Likewise.
47747         (ldexp_test_data): Likewise.
47748         (lrint_test_data): Likewise.
47749         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47750         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47751         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47752         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47753         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47754         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47755         test input.
47756         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47757         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47758         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47759         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47760         that test input.
47761         (lrint_downward_test_data): Test for "inexact" exceptions.
47762         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47763         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47764         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47765         test input.
47766         (lrint_upward_test_data): Test for "inexact" exceptions.
47767         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47768         test input.
47769         (llrint_test_data): Test for "inexact" exceptions.
47770         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47771         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47772         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47773         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47774         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47775         (llrint_downward_test_data): Test for "inexact" exceptions.
47776         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47777         (llrint_upward_test_data): Test for "inexact" exceptions.
47778         (logb_test_data): Likewise.
47779         (logb_downward_test_data): Likewise.
47780         (nextafter_test_data): Likewise.
47781         (nexttoward_test_data): Likewise.
47782         (remainder_test_data): Likewise.
47783         (remquo_test_data): Likewise.
47784         (scalbn_test_data): Likewise.
47785         (scalbln_test_data): Likewise.
47786         (signbit_test_data): Likewise.
47787         (sqrt_test_data): Likewise.
47788         (significand_test_data): Likewise.
47789
47790 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47791
47792         [BZ #15424]
47793         * benchtests/bench-modf.c (struct args): Mark arg0 as
47794         volatile.
47795         * scripts/bench.pl: Mark members of struct args as volatile.
47796
47797 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47798
47799         [BZ # 15497]
47800         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47801         negative infinity on POWER6 or lower.
47802         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47803
47804 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47805
47806         [BZ #15442]
47807         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47808         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47809         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47810         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47811         (_FP_SETQNAN): New macro.
47812         (_FP_SETQNAN_SEMIRAW): Likewise.
47813         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47814         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47815         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47816         (FP_EXTEND): Use _FP_FRAC_SNANP.
47817         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47818         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47819         into account.
47820         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47821         New macro.
47822         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47823         Likewise.
47824
47825 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47826
47827         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47828         with DIVIDE_BY_ZERO_EXCEPTION.
47829         (gamma_test_data): Likewise.
47830         (lgamma_test_data): Likewise.
47831         (log_test_data): Likewise.
47832         (log10_test_data): Likewise.
47833         (log2_test_data): Likewise.
47834         (tgamma_test_data): Likewise.
47835
47836         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47837         (acos_test_tonearest): Likewise.
47838         (acos_test_towardzero): Likewise.
47839         (acos_test_downward): Likewise.
47840         (acos_test_upward): Likewise.
47841         (acosh_test): Likewise.
47842         (asin_test): Likewise.
47843         (asin_test_tonearest): Likewise.
47844         (asin_test_towardzero): Likewise.
47845         (asin_test_downward): Likewise.
47846         (asin_test_upward): Likewise.
47847         (asinh_test): Likewise.
47848         (atan_test): Likewise.
47849         (atanh_test): Likewise.
47850         (atan2_test): Likewise.
47851         (cabs_test): Likewise.
47852         (cacos_test): Likewise.
47853         (cacosh_test): Likewise.
47854         (casin_test): Likewise.
47855         (casinh_test): Likewise.
47856         (catan_test): Likewise.
47857         (catanh_test): Likewise.
47858         (cbrt_test): Likewise.
47859         (ccos_test): Likewise.
47860         (ccosh_test): Likewise.
47861         (cexp_test): Likewise.
47862         (clog_test): Likewise.
47863         (clog10_test): Likewise.
47864         (cos_test): Likewise.
47865         (cos_test_tonearest): Likewise.
47866         (cos_test_towardzero): Likewise.
47867         (cos_test_downward): Likewise.
47868         (cos_test_upward): Likewise.
47869         (cosh_test): Likewise.
47870         (cosh_test_tonearest): Likewise.
47871         (cosh_test_towardzero): Likewise.
47872         (cosh_test_downward): Likewise.
47873         (cosh_test_upward): Likewise.
47874         (cpow_test): Likewise.
47875         (csin_test): Likewise.
47876         (csinh_test): Likewise.
47877         (csqrt_test): Likewise.
47878         (ctan_test): Likewise.
47879         (ctan_test_tonearest): Likewise.
47880         (ctan_test_towardzero): Likewise.
47881         (ctan_test_downward): Likewise.
47882         (ctan_test_upward): Likewise.
47883         (ctanh_test): Likewise.
47884         (ctanh_test_tonearest): Likewise.
47885         (ctanh_test_towardzero): Likewise.
47886         (ctanh_test_downward): Likewise.
47887         (ctanh_test_upward): Likewise.
47888         (erf_test): Likewise.
47889         (erfc_test): Likewise.
47890         (exp_test): Likewise.
47891         (exp_test_tonearest): Likewise.
47892         (exp_test_towardzero): Likewise.
47893         (exp_test_downward): Likewise.
47894         (exp_test_upward): Likewise.
47895         (exp10_test): Likewise.
47896         (exp2_test): Likewise.
47897         (expm1_test): Likewise.
47898         (fmod_test): Likewise.
47899         (gamma_test): Likewise.
47900         (hypot_test): Likewise.
47901         (j0_test): Likewise.
47902         (j1_test): Likewise.
47903         (jn_test): Likewise.
47904         (lgamma_test): Likewise.
47905         (log_test): Likewise.
47906         (log10_test): Likewise.
47907         (log1p_test): Likewise.
47908         (log2_test): Likewise.
47909         (logb_test_downward): Likewise.
47910         (pow_test): Likewise.
47911         (pow_test_tonearest): Likewise.
47912         (pow_test_towardzero): Likewise.
47913         (pow_test_downward): Likewise.
47914         (pow_test_upward): Likewise.
47915         (remainder_test): Likewise.
47916         (remquo_test): Likewise.
47917         (sin_test): Likewise.
47918         (sin_test_tonearest): Likewise.
47919         (sin_test_towardzero): Likewise.
47920         (sin_test_downward): Likewise.
47921         (sin_test_upward): Likewise.
47922         (sincos_test): Likewise.
47923         (sinh_test): Likewise.
47924         (sinh_test_tonearest): Likewise.
47925         (sinh_test_towardzero): Likewise.
47926         (sinh_test_downward): Likewise.
47927         (sinh_test_upward): Likewise.
47928         (sqrt_test): Likewise.
47929         (tan_test): Likewise.
47930         (tan_test_tonearest): Likewise.
47931         (tan_test_towardzero): Likewise.
47932         (tan_test_downward): Likewise.
47933         (tan_test_upward): Likewise.
47934         (tanh_test): Likewise.
47935         (tgamma_test): Likewise.
47936         (y0_test): Likewise.
47937         (y1_test): Likewise.
47938         (yn_test): Likewise.
47939
47940         * math/gen-libm-test.pl (adjust_arg): Remove function.
47941         (special_function): Remove argument $in_func.  Only handle
47942         generating output for tables of tests, not inside functions.
47943         (parse_args): Likewise.
47944         (generate_testfile): Remove variable $in_func.  Update call to
47945         parse_args.
47946         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47947         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47948         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47949         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47950         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47951         (MAX_VALUE_INIT): Rename macro to max_value.
47952         (MIN_VALUE_INIT): Rename macro to min_value.
47953         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47954         (plus_zero): Remove variable.
47955         (minus_zero): Likewise.
47956         (plus_infty): Likewise.
47957         (minus_infty): Likewise.
47958         (qnan_value): Likewise.
47959         (max_value): Likewise.
47960         (min_value): Likewise.
47961         (min_subnorm_value): Likewise.
47962
47963 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47964
47965         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47966         uint64_t or uint32_t usage.
47967         * crypt/sha256-block.c: Likewise.
47968         * crypt/sha256-crypt.c: Likewise.
47969         * crypt/sha256.c: Likewise.
47970         * crypt/sha512-block.c: Likewise.
47971         * crypt/sha512-crypt.c: Likewise.
47972         * crypt/sha512.c: Likewise.
47973         * debug/backtrace-tst.c: Likewise.
47974         * debug/pcprofiledump.c: Likewise.
47975         * elf/cache.c: Likewise.
47976         * elf/dl-cache.c: Likewise.
47977         * elf/dl-misc.c: Likewise.
47978         * elf/dl-profile.c: Likewise.
47979         * elf/dl-support.c: Likewise.
47980         * elf/ldconfig.c: Likewise.
47981         * elf/sprof.c: Likewise.
47982         * iconv/dummy-repertoire.c: Likewise.
47983         * iconv/iconv_charmap.c: Likewise.
47984         * iconv/skeleton.c: Likewise.
47985         * iconvdata/8bit-generic.c: Likewise.
47986         * iconvdata/cp737.h: Likewise.
47987         * iconvdata/cp775.h: Likewise.
47988         * iconvdata/ibm1008.h: Likewise.
47989         * iconvdata/ibm1025.h: Likewise.
47990         * iconvdata/ibm1046.h: Likewise.
47991         * iconvdata/ibm1097.h: Likewise.
47992         * iconvdata/ibm1112.h: Likewise.
47993         * iconvdata/ibm1122.h: Likewise.
47994         * iconvdata/ibm1123.h: Likewise.
47995         * iconvdata/ibm1124.h: Likewise.
47996         * iconvdata/ibm1129.h: Likewise.
47997         * iconvdata/ibm1130.h: Likewise.
47998         * iconvdata/ibm1132.h: Likewise.
47999         * iconvdata/ibm1133.h: Likewise.
48000         * iconvdata/ibm1137.h: Likewise.
48001         * iconvdata/ibm1140.h: Likewise.
48002         * iconvdata/ibm1141.h: Likewise.
48003         * iconvdata/ibm1142.h: Likewise.
48004         * iconvdata/ibm1143.h: Likewise.
48005         * iconvdata/ibm1144.h: Likewise.
48006         * iconvdata/ibm1145.h: Likewise.
48007         * iconvdata/ibm1146.h: Likewise.
48008         * iconvdata/ibm1147.h: Likewise.
48009         * iconvdata/ibm1148.h: Likewise.
48010         * iconvdata/ibm1149.h: Likewise.
48011         * iconvdata/ibm1153.h: Likewise.
48012         * iconvdata/ibm1154.h: Likewise.
48013         * iconvdata/ibm1155.h: Likewise.
48014         * iconvdata/ibm1156.h: Likewise.
48015         * iconvdata/ibm1157.h: Likewise.
48016         * iconvdata/ibm1158.h: Likewise.
48017         * iconvdata/ibm1160.h: Likewise.
48018         * iconvdata/ibm1161.h: Likewise.
48019         * iconvdata/ibm1162.h: Likewise.
48020         * iconvdata/ibm1163.h: Likewise.
48021         * iconvdata/ibm1164.h: Likewise.
48022         * iconvdata/ibm1166.h: Likewise.
48023         * iconvdata/ibm1167.h: Likewise.
48024         * iconvdata/ibm12712.h: Likewise.
48025         * iconvdata/ibm1390.h: Likewise.
48026         * iconvdata/ibm1399.h: Likewise.
48027         * iconvdata/ibm16804.h: Likewise.
48028         * iconvdata/ibm4517.h: Likewise.
48029         * iconvdata/ibm4899.h: Likewise.
48030         * iconvdata/ibm4909.h: Likewise.
48031         * iconvdata/ibm4971.h: Likewise.
48032         * iconvdata/ibm5347.h: Likewise.
48033         * iconvdata/ibm803.h: Likewise.
48034         * iconvdata/ibm856.h: Likewise.
48035         * iconvdata/ibm901.h: Likewise.
48036         * iconvdata/ibm902.h: Likewise.
48037         * iconvdata/ibm9030.h: Likewise.
48038         * iconvdata/ibm9066.h: Likewise.
48039         * iconvdata/ibm921.h: Likewise.
48040         * iconvdata/ibm922.h: Likewise.
48041         * iconvdata/ibm9448.h: Likewise.
48042         * iconvdata/isiri-3342.h: Likewise.
48043         * iconvdata/jis0201.h: Likewise.
48044         * include/link.h: Likewise.
48045         * include/netdb.h: Likewise.
48046         * inet/check_native.c: Likewise.
48047         * inet/check_pf.c: Likewise.
48048         * inet/getipv4sourcefilter.c: Likewise.
48049         * inet/getnameinfo.c: Likewise.
48050         * inet/getsourcefilter.c: Likewise.
48051         * inet/htonl.c: Likewise.
48052         * inet/setipv4sourcefilter.c: Likewise.
48053         * inet/setsourcefilter.c: Likewise.
48054         * inet/test-inet6_opt.c: Likewise.
48055         * inet/tst-network.c: Likewise.
48056         * locale/C-collate.c: Likewise.
48057         * locale/C-ctype.c: Likewise.
48058         * locale/C-time.c: Likewise.
48059         * locale/C-translit.h: Likewise.
48060         * locale/loadarchive.c: Likewise.
48061         * locale/programs/3level.h: Likewise.
48062         * locale/programs/charmap.c: Likewise.
48063         * locale/programs/charmap.h: Likewise.
48064         * locale/programs/ld-address.c: Likewise.
48065         * locale/programs/ld-collate.c: Likewise.
48066         * locale/programs/ld-ctype.c: Likewise.
48067         * locale/programs/ld-identification.c: Likewise.
48068         * locale/programs/ld-measurement.c: Likewise.
48069         * locale/programs/ld-messages.c: Likewise.
48070         * locale/programs/ld-monetary.c: Likewise.
48071         * locale/programs/ld-name.c: Likewise.
48072         * locale/programs/ld-numeric.c: Likewise.
48073         * locale/programs/ld-paper.c: Likewise.
48074         * locale/programs/ld-telephone.c: Likewise.
48075         * locale/programs/ld-time.c: Likewise.
48076         * locale/programs/linereader.c: Likewise.
48077         * locale/programs/locale.c: Likewise.
48078         * locale/programs/locarchive.c: Likewise.
48079         * locale/programs/locfile.h: Likewise.
48080         * locale/programs/repertoire.c: Likewise.
48081         * locale/programs/simple-hash.c: Likewise.
48082         * locale/programs/simple-hash.h: Likewise.
48083         * malloc/memusage.c: Likewise.
48084         * malloc/memusagestat.c: Likewise.
48085         * nis/nis_defaults.c: Likewise.
48086         * nis/nis_hash.c: Likewise.
48087         * nis/nis_print.c: Likewise.
48088         * nis/nis_xdr.c: Likewise.
48089         * nscd/connections.c: Likewise.
48090         * nscd/hstcache.c: Likewise.
48091         * nscd/nscd_gethst_r.c: Likewise.
48092         * nscd/nscd_getserv_r.c: Likewise.
48093         * nscd/nscd_helper.c: Likewise.
48094         * nscd/servicescache.c: Likewise.
48095         * nss/makedb.c: Likewise.
48096         * nss/nss_db/db-XXX.c: Likewise.
48097         * nss/nss_db/db-initgroups.c: Likewise.
48098         * nss/nss_db/db-netgrp.c: Likewise.
48099         * nss/nss_files/files-network.c: Likewise.
48100         * nss/nss_files/files-parse.c: Likewise.
48101         * posix/bug-regex5.c: Likewise.
48102         * posix/fnmatch_loop.c: Likewise.
48103         * posix/regcomp.c: Likewise.
48104         * posix/regexec.c: Likewise.
48105         * posix/tst-rfc3484-2.c: Likewise.
48106         * posix/tst-rfc3484-3.c: Likewise.
48107         * posix/tst-rfc3484.c: Likewise.
48108         * resolv/nss_dns/dns-canon.c: Likewise.
48109         * resolv/nss_dns/dns-network.c: Likewise.
48110         * resolv/res_init.c: Likewise.
48111         * resolv/res_mkquery.c: Likewise.
48112         * resolv/tst-aton.c: Likewise.
48113         * stdlib/cxa_atexit.c: Likewise.
48114         * stdlib/cxa_finalize.c: Likewise.
48115         * stdlib/gen-fpioconst.c: Likewise.
48116         * stdlib/strtol_l.c: Likewise.
48117         * string/tst-endian.c: Likewise.
48118         * sunrpc/auth_des.c: Likewise.
48119         * sunrpc/clnt_udp.c: Likewise.
48120         * sunrpc/rtime.c: Likewise.
48121         * sunrpc/svcauth_des.c: Likewise.
48122         * sunrpc/xdr.c: Likewise.
48123         * sunrpc/xdr_intXX_t.c: Likewise.
48124         * sunrpc/xdr_rec.c: Likewise.
48125         * sysdeps/generic/ldconfig.h: Likewise.
48126         * sysdeps/generic/ldsodefs.h: Likewise.
48127         * sysdeps/generic/memusage.h: Likewise.
48128         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
48129         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
48130         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
48131         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
48132         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
48133         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
48134         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
48135         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
48136         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
48137         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
48138         * sysdeps/posix/getaddrinfo.c: Likewise.
48139         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
48140         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48141         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
48142         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
48143         * sysdeps/powerpc/test-gettimebase.c: Likewise.
48144         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
48145         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
48146         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
48147         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
48148         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
48149         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
48150         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
48151         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
48152         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
48153         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
48154         * sysdeps/x86_64/dl-tls.h: Likewise.
48155         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
48156         * time/alt_digit.c: Likewise.
48157         * time/era.c: Likewise.
48158         * wcsmbs/tst-c16c32-1.c: Likewise.
48159
48160 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48161
48162         * math/libm-test.inc (struct test_sincos_data): New type.
48163         (RUN_TEST_LOOP_sincos): New macro.
48164         (sincos_test_data): New variable.
48165         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
48166
48167 2013-05-16  Richard Henderson  <rth@redhat.com>
48168
48169         * math/atest-exp2.c (LIMB64): New macro.
48170         (CONSTSZ): New macro.
48171         (mp_exp1, mp_exp_m1, mp_log2): New variables.
48172         (hexdig): Move ...
48173         (print_mpn_fp): ... to function scope.
48174         (read_mpn_hex): Remove.
48175         (get_log2): Remove.
48176         (exp2_mpn): Use mp_log2.
48177         (main): Use mp_exp1.
48178
48179 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48180
48181         * math/libm-test.inc: Remove comment about not testing "inexact"
48182         exceptions.
48183         (INEXACT_EXCEPTION): New macro.
48184         (NO_INEXACT_EXCEPTION): Likewise.
48185         (INVALID_EXCEPTION_OK): Update value.
48186         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
48187         (OVERFLOW_EXCEPTION_OK): Likewise.
48188         (UNDERFLOW_EXCEPTION_OK): Likewise.
48189         (IGNORE_ZERO_INF_SIGN): Likewise.
48190         (ERRNO_UNCHANGED): Likewise.
48191         (ERRNO_EDOM): Likewise.
48192         (ERRNO_ERANGE): Likewise.
48193         (test_exceptions): Handle testing "inexact" exceptions.
48194         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
48195         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
48196         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
48197         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
48198         INEXACT_EXCEPTION.
48199         (rint_towardzero_test_data): Likewise.
48200         (rint_downward_test_data): Likewise.
48201         (rint_upward_test_data): Likewise.
48202
48203         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
48204         with OVERFLOW_EXCEPTION.
48205         (exp10_test_data): Likewise.
48206         (exp2_test_data): Likewise.
48207         (expm1_test_data): Likewise.
48208         (lgamma_test_data): Likewise.
48209         (pow_test_data): Likewise.
48210         (tgamma_test_data): Likewise.
48211         (yn_test_data): Remove duplicate test of overflow.
48212
48213         * math/libm-test.inc (struct test_cc_c_data): New type.
48214         (RUN_TEST_LOOP_cc_c): New macro.
48215         (cpow_test_data): New variable.
48216         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
48217
48218         * math/libm-test.inc (struct test_f_L_data): New type.
48219         (RUN_TEST_LOOP_f_L): New macro.
48220         (llrint_test_data): New variable.
48221         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
48222         (llrint_tonearest_test_data): New variable.
48223         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
48224         (llrint_towardzero_test_data): New variable.
48225         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
48226         (llrint_downward_test_data): New variable.
48227         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
48228         (llrint_upward_test_data): New variable.
48229         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
48230         (llround_test_data): New variable.
48231         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
48232
48233 2013-05-13  Peter Collingbourne  <pcc@google.com>
48234
48235         * math/atest-exp2.c (get_log2): Remove const attribute.
48236
48237 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48238
48239         * math/libm-test.inc (struct test_f_l_data): New type.
48240         (RUN_TEST_LOOP_f_l): New macro.
48241         (lrint_test_data): New variable.
48242         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
48243         (lrint_tonearest_test_data): New variable.
48244         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
48245         (lrint_towardzero_test_data): New variable.
48246         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
48247         (lrint_downward_test_data): New variable.
48248         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
48249         (lrint_upward_test_data): New variable.
48250         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
48251         (lround_test_data): New variable.
48252         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
48253
48254 2013-05-15  Peter Collingbourne  <pcc@google.com>
48255
48256         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
48257         (EXTRACT_WORDS64) Use where appropriate.
48258         (INSERT_WORDS64) Likewise.
48259
48260         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
48261         constraints with x constraints.
48262         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
48263
48264         * malloc/obstack.c (_obstack_compat): Add initializer.
48265
48266 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
48267
48268         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
48269         si_trapno and add si_addr_lsb to _sifields.sigfault.
48270         (si_trapno): Remove macro.
48271         (si_addr_lsb): Define new macro.
48272         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
48273
48274 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48275
48276         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
48277         instead of TEST_f_l.
48278         (llrint_test_tonearest): Likewise.
48279         (llrint_test_towardzero): Likewise.
48280         (llrint_test_downward): Likewise.
48281         (llrint_test_upward): Likewise.
48282         (llround_test): Likewise.
48283
48284         * math/libm-test.inc (struct test_f_i_data): Add comment.
48285         (RUN_TEST_LOOP_f_b): New macro.
48286         (RUN_TEST_LOOP_f_b_tg): Likewise.
48287         (finite_test_data): New variable.
48288         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
48289         (isfinite_test_data): New variable.
48290         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48291         (isinf_test_data): New variable.
48292         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48293         (isnan_test_data): New variable.
48294         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48295         (isnormal_test_data): New variable.
48296         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48297         (issignaling_test_data): New variable.
48298         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48299         (signbit_test_data): New variable.
48300         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48301
48302         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
48303         with INVALID_EXCEPTION.
48304         (acosh_test_data): Likewise.
48305         (asin_test_data): Likewise.
48306         (atanh_test_data): Likewise.
48307         (fmod_test_data): Likewise.
48308         (log_test_data): Likewise.
48309         (log10_test_data): Likewise.
48310         (log2_test_data): Likewise.
48311         (pow_test_data): Likewise.
48312         (sqrt_test_data): Likewise.
48313         (y0_test_data): Likewise.
48314         (y1_test_data): Likewise.
48315         (yn_test_data): Likewise.
48316
48317         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
48318         function contents.
48319
48320         * math/libm-test.inc (struct test_ff_i_data): New type.
48321         (RUN_TEST_LOOP_ff_i_tg): New macro.
48322         (isgreater_test_data): New variable.
48323         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48324         (isgreaterequal_test_data): New variable.
48325         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48326         (isless_test_data): New variable.
48327         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48328         (islessequal_test_data): New variable.
48329         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48330         (islessgreater_test_data): New variable.
48331         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48332         (isunordered_test_data): New variable.
48333         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48334
48335 2013-05-14  David S. Miller  <davem@davemloft.net>
48336
48337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48338
48339 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
48340
48341         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
48342
48343         * math/libm-test.inc (struct test_fF_f1_data): Change type of
48344         extra_test to int.
48345         (struct test_f_i_data): Change type of max_ulp to int.
48346
48347         * math/libm-test.inc (test_ffI_f1_data): New type.
48348         (RUN_TEST_LOOP_ffI_f1): New macro.
48349         (remquo_test_data): New variable.
48350         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
48351
48352         * setjmp/tst-setjmp-fp.c: New file.
48353         * setjmp/Makefile (tests): Add tst-setjmp-fp.
48354         (link-libm): New variable.
48355         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
48356
48357         * math/libm-test.inc (struct test_f_i_data): New type.
48358         (RUN_TEST_LOOP_f_i): New macro.
48359         (RUN_TEST_LOOP_f_i_tg): Likewise.
48360         (fpclassify_test_data): New variable.
48361         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
48362         (ilogb_test_data): New variable.
48363         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48364
48365         * math/libm-test.inc (scalbln_test): Correct function name in END
48366         call.
48367
48368         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48369         (RUN_TEST_LOOP_fI_f1): New macro.
48370         (frexp_test_data): New variable.
48371         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48372
48373         * math/libm-test.inc (struct test_fF_f1_data): New type.
48374         (RUN_TEST_LOOP_fF_f1): New macro.
48375         (modf_test_data): New variable.
48376         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48377
48378         * math/libm-test.inc (struct test_f_f1_data): New type.
48379         (RUN_TEST_LOOP_f_f1): New macro.
48380         (gamma_test_data): New variable.
48381         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48382         (lgamma_test_data): New variable.
48383         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48384
48385 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48386
48387         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48388         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48389         (main): Comment "tls" pseudo-hwcap.
48390
48391 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48392
48393         * math/libm-test.inc (struct test_fl_f_data): New type.
48394         (RUN_TEST_LOOP_fl_f): New variable.
48395         (scalbln_test_data): New variable.
48396         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48397
48398         * math/libm-test.inc (struct test_fi_f_data): New type.
48399         (RUN_TEST_LOOP_fi_f): New macro.
48400         (ldexp_test_data): New variable.
48401         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48402         (scalbn_test_data): New variable.
48403         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48404
48405         * math/libm-test.inc (struct test_c_f_data): New type.
48406         (RUN_TEST_LOOP_c_f): New macro.
48407         (cabs_test_data): New variable.
48408         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48409         (carg_test_data): New variable.
48410         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48411         (cimag_test_data): New variable.
48412         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48413         (creal_test_data): New variable.
48414         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48415
48416         * math/libm-test.inc (struct test_if_f_data): New type.
48417         (RUN_TEST_LOOP_if_f): New macro.
48418         (jn_test_data): New variable.
48419         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48420         (yn_test_data): New variable.
48421         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48422
48423         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48424
48425 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48426
48427         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48428         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48429
48430 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48431
48432         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48433         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48434         (bench-deps): Add bench-timing.h.
48435         * benchtests-bench-skeleton.c: Include bench-timing.h.
48436         (main): Use TIMING_* macros instead of clock_gettime.
48437         * benchtests/bench-timing.h: New file.
48438
48439         [BZ #14582]
48440         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48441         Renamed from _LIB_VERSION.
48442         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48443
48444 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48445
48446         * math/libm-test.inc (struct test_fff_f_data): New type.
48447         (RUN_TEST_LOOP_fff_f): New macro.
48448         (fma_test_data): New variable.
48449         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48450         (fma_towardzero_test_data): New variable.
48451         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48452         (fma_downward_test_data): New variable.
48453         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48454         (fma_upward_test_data): New variable.
48455         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48456
48457         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48458         (struct test_c_c_data): New type.
48459         (RUN_TEST_LOOP_c_c): New macro.
48460         (cacos_test_data): New variable.
48461         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48462         (cacosh_test_data): New variable.
48463         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48464         (casin_test_data): New variable.
48465         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48466         (casinh_test_data): New variable.
48467         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48468         (catan_test_data): New variable.
48469         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48470         (catanh_test_data): New variable.
48471         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48472         (ccos_test_data): New variable.
48473         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48474         (ccosh_test_data): New variable.
48475         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48476         (cexp_test_data): New variable.
48477         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48478         (clog_test_data): New variable.
48479         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48480         (clog10_test_data): New variable.
48481         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48482         (conj_test_data): New variable.
48483         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48484         (cproj_test_data): New variable.
48485         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48486         (csin_test_data): New variable.
48487         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48488         (csinh_test_data): New variable.
48489         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48490         (csqrt_test_data): New variable.
48491         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48492         (ctan_test_data): New variable.
48493         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48494         (ctan_tonearest_test_data): New variable.
48495         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48496         (ctan_towardzero_test_data): New variable.
48497         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48498         (ctan_downward_test_data): New variable.
48499         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48500         (ctan_upward_test_data): New variable.
48501         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48502         (ctanh_test_data): New variable.
48503         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48504         (ctanh_tonearest_test_data): New variable.
48505         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48506         (ctanh_towardzero_test_data): New variable.
48507         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48508         (ctanh_downward_test_data): New variable.
48509         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48510         (ctanh_upward_test_data): New variable.
48511         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48512         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48513         of BUILD_COMPLEX.
48514
48515         * math/libm-test.inc (struct test_ff_f_data): New type.
48516         (struct test_ff_f_data_nexttoward): Likewise.
48517         (RUN_TEST_LOOP_2_f): New macro.
48518         (RUN_TEST_LOOP_ff_f): Likewise.
48519         (atan2_test_data): New variable.
48520         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48521         (copysign_test_data): New variable.
48522         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48523         (fdim_test_data): New variable.
48524         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48525         (fmax_test_data): New variable.
48526         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48527         (fmin_test_data): New variable.
48528         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48529         (fmod_test_data): New variable.
48530         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48531         (hypot_test_data): New variable.
48532         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48533         (nextafter_test_data): New variable.
48534         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48535         (nexttoward_test_data): New variable.
48536         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48537         (pow_test_data): New variable.
48538         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48539         (pow_tonearest_test_data): New variable.
48540         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48541         (pow_towardzero_test_data): New variable.
48542         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48543         (pow_downward_test_data): New variable.
48544         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48545         (pow_upward_test_data): New variable.
48546         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48547         (remainder_test_data): New variable.
48548         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48549         (scalb_test_data): New variable.
48550         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48551         * sysdeps/i386/fpu/libm-test-ulps: Update.
48552
48553 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48554
48555         * math/libm-test.inc (fma_test): Use max_value instead of local
48556         variable fltmax.
48557         (nextafter_test): Likewise.
48558
48559         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48560         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48561         (acos_downward_test_data): New variable.
48562         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48563         (acos_upward_test_data): New variable.
48564         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48565         (acosh_test_data): New variable.
48566         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48567         (asin_test_data): New variable.
48568         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48569         (asin_tonearest_test_data): New variable.
48570         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48571         (asin_towardzero_test_data): New variable.
48572         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48573         (asin_downward_test_data): New variable.
48574         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48575         (asin_upward_test_data): New variable.
48576         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48577         (asinh_test_data): New variable.
48578         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48579         (atan_test_data): New variable.
48580         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48581         (atanh_test_data): New variable.
48582         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48583         (cbrt_test_data): New variable.
48584         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48585         (ceil_test_data): New variable.
48586         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48587         (cos_test_data): New variable.
48588         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48589         (cos_tonearest_test_data): New variable.
48590         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48591         (cos_towardzero_test_data): New variable.
48592         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48593         (cos_downward_test_data): New variable.
48594         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48595         (cos_upward_test_data): New variable.
48596         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48597         (cosh_test_data): New variable.
48598         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48599         (cosh_tonearest_test_data): New variable.
48600         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48601         (cosh_towardzero_test_data): New variable.
48602         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48603         (cosh_downward_test_data): New variable.
48604         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48605         (cosh_upward_test_data): New variable.
48606         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48607         (erf_test_data): New variable.
48608         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48609         (erfc_test_data): New variable.
48610         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48611         (exp_test_data): New variable.
48612         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48613         (exp_tonearest_test_data): New variable.
48614         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48615         (exp_towardzero_test_data): New variable.
48616         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48617         (exp_downward_test_data): New variable.
48618         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48619         (exp_upward_test_data): New variable.
48620         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48621         (exp10_test_data): New variable.
48622         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48623         (exp2_test_data): New variable.
48624         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48625         (expm1_test_data): New variable.
48626         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48627         (fabs_test_data): New variable.
48628         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48629         (floor_test_data): New variable.
48630         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48631         (j0_test_data): New variable.
48632         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48633         (j1_test_data): New variable.
48634         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48635         (log_test_data): New variable.
48636         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48637         (log10_test_data): New variable.
48638         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48639         (log1p_test_data): New variable.
48640         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48641         (log2_test_data): New variable.
48642         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48643         (logb_test_data): New variable.
48644         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48645         (logb_downward_test_data): New variable.
48646         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48647         (nearbyint_test_data): New variable.
48648         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48649         (rint_test_data): New variable.
48650         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48651         (rint_tonearest_test_data): New variable.
48652         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48653         (rint_towardzero_test_data): New variable.
48654         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48655         (rint_downward_test_data): New variable.
48656         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48657         (rint_upward_test_data): New variable.
48658         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48659         (round_test_data): New variable.
48660         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48661         (sin_test_data): New variable.
48662         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48663         (sin_tonearest_test_data): New variable.
48664         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48665         (sin_towardzero_test_data): New variable.
48666         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48667         (sin_downward_test_data): New variable.
48668         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48669         (sin_upward_test_data): New variable.
48670         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48671         (sinh_test_data): New variable.
48672         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48673         (sinh_tonearest_test_data): New variable.
48674         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48675         (sinh_towardzero_test_data): New variable.
48676         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48677         (sinh_downward_test_data): New variable.
48678         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48679         (sinh_upward_test_data): New variable.
48680         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48681         (sqrt_test_data): New variable.
48682         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48683         (tan_test_data): New variable.
48684         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48685         (tan_tonearest_test_data): New variable.
48686         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48687         (tan_towardzero_test_data): New variable.
48688         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48689         (tan_downward_test_data): New variable.
48690         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48691         (tan_upward_test_data): New variable.
48692         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48693         (tanh_test_data): New variable.
48694         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48695         (tgamma_test_data): New variable.
48696         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48697         (trunc_test_data): New variable.
48698         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48699         (y0_test_data): New variable.
48700         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48701         (y1_test_data): New variable.
48702         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48703         (significand_test_data): New variable.
48704         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48705
48706 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48707
48708         [BZ #12387]
48709         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48710
48711 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48712
48713         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48714
48715 2013-05-10  Andreas Jaeger  <aj@suse.de>
48716
48717         [BZ #15448]
48718         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48719         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48720
48721 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48722
48723         * math/gen-libm-test.pl (adjust_arg): New function.
48724         (special_functions): Handle generating output in both functions
48725         and arrays.
48726         (parse_args): Likewise.
48727         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48728         $in_func argument to parse_args.
48729         * math/libm-test.inc (struct test_f_f_data): New type.
48730         (IF_ROUND_INIT_): New macro.
48731         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48732         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48733         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48734         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48735         (ROUND_RESTORE_): Likewise.
48736         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48737         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48738         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48739         (ROUND_RESTORE_FE_UPWARD): Likewise.
48740         (RUN_TEST_LOOP_f_f): New macro.
48741         (acos_test_data): New variable.
48742         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48743         (acos_tonearest_test_data): New variable.
48744         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48745
48746 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48747
48748         * benchtests/bench-skeleton.c (startup): Fix coding style.
48749
48750 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48751
48752         [BZ #6809]
48753         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48754         negative infinity argument.
48755         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48756         negative infinity argument.
48757         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48758         negative infinity argument.
48759         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48760         domain errors.
48761
48762 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48763
48764         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48765         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48766         * iconv/iconv_prog.c (main): Likewise.
48767         * locale/programs/charmap-dir.c (charmap_readdir)
48768         (fopen_uncompressed): Likewise.
48769         * locale/programs/locfile.c (siblings_uncached)
48770         (write_locale_data): Use lstat64 instead of lstat.
48771         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48772         stat.
48773
48774 2013-05-10  Andreas Jaeger  <aj@suse.de>
48775
48776         [BZ #15395]
48777         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48778         localization.
48779         Include <locale.h>.
48780
48781 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48782
48783         * elf/dl-close.c (_dl_close_worker): Add comments.
48784
48785 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48786
48787         [BZ #15359]
48788         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48789         high part of pi/2.
48790         (__ieee754_rem_pio2l): Update comments.
48791
48792         [BZ #15429]
48793         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48794         high part of pi/2.
48795         (__ieee754_rem_pio2l): Update comments.
48796
48797         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48798         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48799
48800         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48801         M_PI_4l.
48802
48803         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48804         (M_PI_34_LOG10El): Likewise.
48805         (M_PI2_LOG10El): Likewise.
48806         (M_PI4_LOG10El): Likewise.
48807         (M_PI_LOG10El): Likewise.
48808
48809 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48810
48811         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48812
48813 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48814
48815         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48816         (MINUS_ZERO_INIT): Likewise.
48817         (PLUS_INFTY_INIT): Likewise.
48818         (MINUS_INFTY_INIT): Likewise.
48819         (QNAN_VALUE_INIT): Likewise.
48820         (MAX_VALUE_INIT): Likewise.
48821         (MIN_VALUE_INIT): Likewise.
48822         (MIN_SUBNORM_VALUE_INIT): Likewise.
48823         (plus_zero): Initialize with PLUS_ZERO_INIT.
48824         (minus_zero): Initialize with MINUS_ZERO_INIT.
48825         (plus_infty): Initialize with PLUS_INFTY_INIT.
48826         (minus_infty): Initialize with MINUS_INFTY_INIT.
48827         (qnan_value): Initialize with QNAN_VALUE_INIT.
48828         (max_value): Initialize with MAX_VALUE_INIT.
48829         (min_value): Initialize with MIN_VALUE_INIT.
48830         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48831
48832         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48833         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48834         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48835         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48836
48837         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48838         (RUN_TEST_2_f): Likewise.
48839         (RUN_TEST_ff_f): Likewise.
48840         (RUN_TEST_fi_f): Likewise.
48841         (RUN_TEST_fl_f): Likewise.
48842         (RUN_TEST_fff_f): Likewise.
48843         (RUN_TEST_c_f): Likewise.
48844         (RUN_TEST_f_f1): Likewise.
48845         (RUN_TEST_fF_f1): Likewise.
48846         (RUN_TEST_fI_f1): Likewise.
48847         (RUN_TEST_ffI_f1): Likewise.
48848         (RUN_TEST_c_c): Likewise.
48849         (RUN_TEST_cc_c): Likewise.
48850         (RUN_TEST_f_i): Likewise.
48851         (RUN_TEST_f_i_tg): Likewise.
48852         (RUN_TEST_ff_i_tg): Likewise.
48853         (RUN_TEST_f_b): Likewise.
48854         (RUN_TEST_f_b_tg): Likewise.
48855         (RUN_TEST_f_l): Likewise.
48856         (RUN_TEST_f_L): Likewise.
48857         (RUN_TEST_sincos): Likewise.
48858         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48859         whether to show exceptions.  Do not include ");\n" in return
48860         value.
48861         (special_functions): Output call to RUN_TEST_sincos instead of
48862         check_float calls.  Update calls to new_test.
48863         (parse_args): Output call to single RUN_TEST_* macro instead of
48864         check_* calls and other assignments.  Update calls to new_test.
48865
48866         [BZ #2546]
48867         [BZ #2560]
48868         [BZ #5159]
48869         [BZ #15426]
48870         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48871         input to result for tgamma overflow.
48872         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48873         (gamma_coeff): New variable.
48874         (NCOEFF): New macro.
48875         (gamma_positive): New function.
48876         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48877         underflow here.  Use gamma_positive instead of exp (lgamma) for
48878         other arguments.
48879         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48880         (gamma_coeff): New variable.
48881         (NCOEFF): New macro.
48882         (gammaf_positive): New function.
48883         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48884         underflow here.  Use gamma_positive instead of exp (lgamma) for
48885         other arguments.
48886         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48887         (gamma_coeff): New variable.
48888         (NCOEFF): New macro.
48889         (gammal_positive): New function.
48890         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48891         underflow here.  Use gamma_positive instead of exp (lgamma) for
48892         other arguments.
48893         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48894         (gamma_coeff): New variable.
48895         (NCOEFF): New macro.
48896         (gammal_positive): New function.
48897         (__ieee754_gammal_r): Handle positive infinity, overflow and
48898         underflow here.  Handle NaN the same as positive infinity.  Remove
48899         check x < 0xffffffff for negative integers.  Use gamma_positive
48900         instead of exp (lgamma) for other arguments.
48901         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48902         (gamma_coeff): New variable.
48903         (NCOEFF): New macro.
48904         (gammal_positive): New function.
48905         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48906         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48907         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48908         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48909         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48910         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48911         * sysdeps/generic/math_private.h (__gamma_productf): New
48912         prototype.
48913         (__gamma_product): Likewise.
48914         (__gamma_productl): Likewise.
48915         * math/Makefile (libm-calls): Add gamma_product.
48916         * math/libm-test.inc (tgamma_test): Add more tests.
48917         * sysdeps/i386/fpu/libm-test-ulps: Update.
48918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48919
48920 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48921
48922         * benchtests/bench-skeleton.c (main): Preheat CPU.
48923
48924 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48925
48926         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48927
48928 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48929
48930         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48931         and _dl_skip_args_internal.
48932
48933 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48934
48935         * manual/message.texi (Message Translation): Talk about users.
48936         Message to key mapping impacts design.
48937
48938 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48939
48940         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48941
48942         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48943
48944         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48945         * sysdeps/wordsize-64/glob64.c: ... here.
48946
48947         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48948         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48949         New macros.
48950
48951         * debug/getlogin_r_chk.c: Moved to ...
48952         * login/getlogin_r_chk.c: ... here.
48953         * debug/Makefile (routines): Move getlogin_r_chk to ...
48954         * login/Makefile (routines): ... here.
48955         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48956         * login/Versions (libc: GLIBC_2.4): ... here.
48957
48958         * io/poll.c (__poll): Renamed from poll.
48959         Add libc_hidden_def.
48960         (poll): Define as weak alias.
48961
48962         * debug/ptsname_r_chk.c: Moved to ...
48963         * login/ptsname_r_chk.c: ... here.
48964         * debug/Makefile (routines): Move ptsname_r_chk to ...
48965         * login/Makefile (routines): ... here.
48966         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48967         * login/Versions (libc: GLIBC_2.4): ... here.
48968
48969         * posix/getlogin.c: Moved to ...
48970         * login/getlogin.c: ... here.
48971         * posix/getlogin_r.c: Moved to ...
48972         * login/getlogin_r.c: ... here.
48973         * posix/getlogin_r.c: Moved to ...
48974         * login/getlogin_r.c: ... here.
48975         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48976         * login/Makefile (routines): ... here.
48977         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48978         * login/Versions (libc: GLIBC_2.0): ... here.
48979
48980         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48981         (setrlimit): Define as weak alias.
48982
48983         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48984         Call __ names for open, ftruncate, and close.
48985         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48986         (truncate): Define as weak alias.
48987
48988 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48989
48990         * math/gen-libm-test.pl (parse_args): Initialize x before each
48991         test of frexp, modf and remquo.
48992
48993         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48994         test signgam value.
48995
48996 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48997
48998         [BZ #15418]
48999         [BZ #15419]
49000         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
49001         internal tests.
49002         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
49003
49004 2013-05-06  Roland McGrath  <roland@hack.frob.com>
49005
49006         * elf/dl-writev.h: New file.
49007         * elf/dl-misc.c: Include it.
49008         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
49009         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
49010
49011 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
49012
49013         * math/libm-test.inc (noXFails): Remove variable.
49014         (noXPasses): Likewise.
49015         (BUILD_COMPLEX_INT): Remove macro.
49016         (print_screen): Remove xfail argument.
49017         (print_screen_max_error): Likewise.
49018         (update_stats): Likewise.
49019         (print_max_error): Likewise.  Update calls to other affected
49020         functions.
49021         (print_complex_max_error): Likewise.
49022         (test_single_exception): Update calls to print_screen.
49023         (test_single_errno): Likewise.
49024         (check_float_internal): Remove xfail argument.  Update calls to
49025         other affected functions.
49026         (check_float): Likewise.
49027         (check_complex): Likewise.
49028         (check_int): Likewise.
49029         (check_long): Likewise.
49030         (check_bool): Likewise.
49031         (check_longlong): Likewise.
49032         (main): Don't print noXFails and noXPasses.
49033         * math/gen-libm-test.pl (top level): Don't mention expected
49034         failure handling in comment.
49035         (new_test): Don't handle expected failures.
49036         (parse_args): Don't mention expected failure handling in comment.
49037         (generate_testfile): Don't handle expected failures.
49038         (parse_ulps): Likewise.
49039         (print_ulps_file): Likewise.
49040         (get_failure): Remove function.
49041         (output_test): Don't handle expected failures.
49042         * make/README.libm-test: Don't mention expected failure handling.
49043
49044         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
49045         (minus_zero): Likewise.
49046         (plus_infty): Likewise.
49047         (minus_infty): Likewise.
49048         (qnan_value): Likewise.
49049         (max_value): Likewise.
49050         (min_value): Likewise.
49051         (min_subnorm_value): Likewise.
49052         (initialize): Do not initialize those variables dynamically.
49053
49054 2013-05-03  Roland McGrath  <roland@hack.frob.com>
49055
49056         * io/open.c (__open_2): Moved to ...
49057         * io/open_2.c: ... this new file.
49058         * io/open64.c (__open64_2): Moved to ...
49059         * io/open64_2.c: ... this new file.
49060         * io/openat.c (__openat_2): Moved to ...
49061         * io/openat_2.c: ... this new file.
49062         * io/openat64.c (__openat64_2): Moved to ...
49063         * io/openat64_2.c: ... this new file.
49064         * io/Makefile (routines): Add them.
49065         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
49066         * sysdeps/unix/sysv/linux/open_2.c: File removed.
49067         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
49068         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
49069         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
49070         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
49071         (__openat64): Add hidden_ver.
49072         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
49073         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
49074
49075         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
49076         Separately conditionalize setting of GLRO(dl_sysinfo) so
49077         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
49078         as well, but the actual setting is only under [NEED_DL_SYSINFO].
49079
49080 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49081
49082         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
49083         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
49084         definition.
49085         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
49086         * sysdeps/unix/sysv/linux/powerpc/init-first.c
49087         (_libc_vdso_platform_setup): Add __vdso_time initialization.
49088         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
49089         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
49090
49091 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
49092
49093         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
49094         test signgam value.
49095
49096         * math/libm-test.inc (hypot_test): Do not use
49097         IGNORE_ZERO_INF_SIGN.
49098
49099 2013-05-03  Andreas Jaeger  <aj@suse.de>
49100
49101         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
49102         Linux 3.9.
49103         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
49104         (PF_MAX): Adjust for VSOCK change.
49105
49106 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49107
49108         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49109
49110 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
49111
49112         [BZ #15264]
49113         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
49114         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
49115         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
49116
49117 2013-05-02  David S. Miller  <davem@davemloft.net>
49118
49119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49120
49121 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
49122
49123         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
49124
49125 2013-05-01  Roland McGrath  <roland@hack.frob.com>
49126
49127         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
49128
49129 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
49130
49131         [BZ #14952]
49132         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
49133         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49134         Use __attribute__ ((__gnu_inline__)).
49135         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49136         Don't use __attribute__ ((__gnu_inline__)).
49137
49138 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
49139
49140         [BZ #15423]
49141         * math/s_catan.c (__catan): Handle small real or imaginary part of
49142         input specially to avoid spurious underflow.
49143         * math/s_catanf.c (__catanf): Likewise.
49144         * math/s_catanh.c (__catanh): Likewise.
49145         * math/s_catanhf.c (__catanhf): Likewise.
49146         * math/s_catanhl.c (__catanhl): Likewise.
49147         * math/s_catanl.c (__catanl): Likewise.
49148         * math/libm-test.inc (catan_test): Add more tests.
49149         (catanh_test): Likewise.
49150         * sysdeps/i386/fpu/libm-test-ulps: Update.
49151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49152
49153 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49154
49155         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49156
49157 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
49158
49159         [BZ #15416]
49160         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
49161         accurately for denominator in atan2.
49162         * math/s_catanf.c (__catanf): Likewise.
49163         * math/s_catanh.c (__catanh): Likewise.
49164         * math/s_catanhf.c (__catanhf): Likewise.
49165         * math/s_catanhl.c (__catanhl): Likewise.
49166         * math/s_catanl.c (__catanl): Likewise.
49167         * math/libm-test.inc (catan_test): Add more tests.
49168         (catanh_test): Likewise.
49169         * sysdeps/i386/fpu/libm-test-ulps: Update.
49170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49171
49172 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49173
49174         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
49175
49176         * benchtests/Makefile (bench): Remove slow benchmarks.
49177         * benchtests/atan-inputs: Add slow benchmark inputs.
49178         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
49179         (BENCH_FUNC): Accept variant offset.
49180         (VARIANT): Define.
49181         * benchtests/bench-skeleton.c (main): Run benchmark for each
49182         variant.
49183         * benchtests/cos-inputs: Add slow benchmark inputs.
49184         * benchtests/exp-inputs: Likewise.
49185         * benchtests/pow-inputs: Likewise.
49186         * benchtests/sin-inputs: Likewise.
49187         * benchtests/slowatan-inputs: Remove.
49188         * benchtests/slowatan.c: Remove.
49189         * benchtests/slowcos-inputs: Remove.
49190         * benchtests/slowcos.c: Remove.
49191         * benchtests/slowexp-inputs: Remove.
49192         * benchtests/slowexp.c: Remove.
49193         * benchtests/slowpow-inputs: Remove.
49194         * benchtests/slowpow.c: Remove.
49195         * benchtests/slowsin-inputs: Remove.
49196         * benchtests/slowsin.c: Remove.
49197         * benchtests/slowtan-inputs: Remove.
49198         * benchtests/slowtan.c: Remove.
49199         * benchtests/tan-inputs: Add slow benchmark inputs.
49200         * scripts/bench.pl: Parse comments and directives.
49201
49202         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
49203         in CPPFLAGS.
49204         ($(objpfx)bench-%.c): Remove *-ITER.
49205         * benchtests/bench-modf.c: Remove definition of ITER.
49206         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
49207         (main): Loop for DURATION seconds instead of fixed number of
49208         iterations.
49209         * scripts/bench.pl: Don't expect iterations in parameters.
49210
49211 2013-04-29  Roland McGrath  <roland@hack.frob.com>
49212
49213         * io/fchdir.c (__fchdir): Renamed from fchdir.
49214         (fchdir): Define as weak alias.
49215
49216 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49217
49218         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
49219         (ERRNO_EDOM): Likewise.
49220         (ERRNO_ERANGE): Likewise.
49221         (noErrnoTests): New variable.
49222         (init_max_error): Set errno to 0.
49223         (test_single_errno): New function.
49224         (test_errno): Likewise.
49225         (check_float_internal): Call test_errno.  Set errno to 0.
49226         (check_complex): Refer to errno tests in comment.
49227         (check_int): Call test_errno.  Set errno to 0.
49228         (check_long): Likewise.
49229         (check_bool): Likewise.
49230         (check_longlong): Likewise.
49231         (cos_test): Use ERRNO_* flags for errno tests instead of
49232         check_int.
49233         (expm1_test): Likewise.
49234         (fmod_test): Likewise.
49235         (ilogb_test): Likewise.
49236         (lgamma_test): Likewise.
49237         (pow_test): Likewise.
49238         (remainder_test): Likewise.
49239         (sin_test): Likewise.
49240         (tan_test): Likewise.
49241         (yn_test): Likewise.
49242         (initialize): Set errno to 0.
49243         (main): Print number of errno tests.
49244         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
49245
49246 2013-04-29  Andreas Jaeger  <aj@suse.de>
49247
49248         [BZ #15084]
49249         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
49250         and RES_USEVC.
49251
49252         [BZ #15085]
49253         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
49254         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
49255         unimplemented.
49256
49257         [BZ #15380]
49258         * stdlib/random.c (__initstate): Return NULL if
49259         __initstate fails.
49260
49261         [BZ #15086]
49262         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
49263         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
49264         RES_SNGLKUPREOP.
49265
49266 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49267
49268         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49269
49270 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49271
49272         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
49273         of individual tests.
49274         (casin_test): Likewise.
49275         (casinh_test): Likewise.
49276
49277 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
49278
49279         [BZ #15409]
49280         * math/s_catan.c (__catan): Handle arguments with large real or
49281         imaginary part separately without squaring.
49282         * math/s_catanf.c (__catanf): Likewise.
49283         * math/s_catanh.c (__catanh): Likewise.
49284         * math/s_catanhf.c (__catanhf): Likewise.
49285         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49286         and redefine.
49287         (__catanhl): Handle arguments with large real or imaginary part
49288         separately without squaring.
49289         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49290         and redefine.
49291         (__catanl): Handle arguments with large real or imaginary part
49292         separately without squaring.
49293         * math/libm-test.inc (catan_test): Add more tests.
49294         (catanh_test): Likewise.
49295         * sysdeps/i386/fpu/libm-test-ulps: Update.
49296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49297
49298 2013-04-27  Andreas Jaeger  <aj@suse.de>
49299
49300         [BZ #15007]
49301         * stdlib/stdlib.h: Update guards for qecvt.
49302         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
49303         <stdlib.h>.
49304
49305 2013-04-27  Allan McRae  <allan@archlinux.org>
49306
49307         * sysdeps/i386/fpu/libm-test-ulps: Update.
49308
49309 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
49310
49311         [BZ #15406]
49312         * math/s_catan.c: Include <float.h>.
49313         (__catan): Ensure underflow exception occurs for underflowed
49314         result.
49315         * math/s_catanf.c: Include <float.h>.
49316         (__catanf): Ensure underflow exception occurs for underflowed
49317         result.
49318         * math/s_catanh.c: Include <float.h>.
49319         (__catanh): Ensure underflow exception occurs for underflowed
49320         result.
49321         * math/s_catanhf.c: Include <float.h>.
49322         (__catanhf): Ensure underflow exception occurs for underflowed
49323         result.
49324         * math/s_catanhl.c: Include <float.h>.
49325         (__catanhl): Ensure underflow exception occurs for underflowed
49326         result.
49327         * math/s_catanl.c: Include <float.h>.
49328         (__catanl): Ensure underflow exception occurs for underflowed
49329         result.
49330         * math/libm-test.inc (catan_test): Add more tests.
49331         (catanh_test): Likewise.
49332
49333         [BZ #15405]
49334         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
49335         underflowed result.
49336         * math/s_ccoshf.c (__ccoshf): Likewise.
49337         * math/s_ccoshl.c (__ccoshl): Likewise.
49338         * math/s_csin.c (__csin): Likewise.
49339         * math/s_csinf.c (__csinf): Likewise.
49340         * math/s_csinh.c (__csinh): Likewise.
49341         * math/s_csinhf.c (__csinhf): Likewise.
49342         * math/s_csinhl.c (__csinhl): Likewise.
49343         * math/s_csinl.c (__csinl): Likewise.
49344         * math/libm-test.inc (ccos_test): Add more tests.
49345         (ccosh_test): Likewise.
49346         (csin_test): Likewise.
49347         (csinh_test): Likewise.
49348
49349 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49350
49351         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
49352         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
49353         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
49354         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
49355         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
49356         powerpc/power5+/fpu folders.
49357         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
49358
49359
49360 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
49361
49362         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49363
49364 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49365
49366         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49367         additions to variable.
49368         [$(config-machine) = x86_64] (modules-names): Likewise.
49369         ($(objpfx)tst-audit3): Remove dependency.
49370         ($(objpfx)tst-audit3.out): Likewise.
49371         ($(objpfx)tst-audit4): Likewise.
49372         ($(objpfx)tst-audit4.out): Likewise.
49373         ($(objpfx)tst-audit5): Likewise.
49374         ($(objpfx)tst-audit5.out): Likewise.
49375         ($(objpfx)tst-audit6): Likewise.
49376         ($(objpfx)tst-audit6.out): Likewise.
49377         ($(objpfx)tst-audit7): Likewise.
49378         ($(objpfx)tst-audit7.out): Likewise.
49379         (tst-audit3-ENV): Remove variable.
49380         (tst-audit4-ENV): Likewise.
49381         (tst-audit5-ENV): Likewise.
49382         (tst-audit6-ENV): Likewise.
49383         (tst-audit7-ENV): Likewise.
49384         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49385         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49386         addition to variable.
49387         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49388         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49389         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49390         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49391         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49392         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49393         tst-audit3, tst-audit4 and tst-audit5.
49394         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49395         tst-audit6 and tst-audit7.
49396         [$(subdir) = elf] (modules-names): Add audit modules for those
49397         tests.
49398         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49399         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49400         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49401         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49402         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49403         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49404         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49405         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49406         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49407         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49408         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49409         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49410         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49411         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49412         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49413         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49414         Likewise.
49415         [$(subdir) = elf && $(config-cflags-avx) = yes]
49416         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49417         [$(subdir) = elf && $(config-cflags-avx) = yes]
49418         (CFLAGS-tst-auditmod4a.c): Likewise.
49419         [$(subdir) = elf && $(config-cflags-avx) = yes]
49420         (CFLAGS-tst-auditmod4b.c): Likewise.
49421         [$(subdir) = elf && $(config-cflags-avx) = yes]
49422         (CFLAGS-tst-auditmod6b.c): Likewise.
49423         [$(subdir) = elf && $(config-cflags-avx) = yes]
49424         (CFLAGS-tst-auditmod6c.c): Likewise.
49425         [$(subdir) = elf && $(config-cflags-avx) = yes]
49426         (CFLAGS-tst-auditmod7b.c): Likewise.
49427         * elf/tst-audit3.c: Move to ...
49428         * sysdeps/x86_64/tst-audit3.c: ... here.
49429         * elf/tst-audit4.c: Move to ...
49430         * sysdeps/x86_64/tst-audit4.c: ... here.
49431         * elf/tst-audit5.c: Move to ...
49432         * sysdeps/x86_64/tst-audit5.c: ... here.
49433         * elf/tst-audit6.c: Move to ...
49434         * sysdeps/x86_64/tst-audit6.c: ... here.
49435         * elf/tst-audit7.c: Move to ...
49436         * sysdeps/x86_64/tst-audit7.c: ... here.
49437         * elf/tst-auditmod3a.c: Move to ...
49438         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49439         * elf/tst-auditmod3b.c: Move to ...
49440         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49441         * elf/tst-auditmod4a.c: Move to ...
49442         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49443         * elf/tst-auditmod4b.c: Move to ...
49444         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49445         * elf/tst-auditmod5a.c: Move to ...
49446         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49447         * elf/tst-auditmod5b.c: Move to ...
49448         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49449         * elf/tst-auditmod6a.c: Move to ...
49450         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49451         * elf/tst-auditmod6b.c: Move to ...
49452         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49453         * elf/tst-auditmod6c.c: Move to ...
49454         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49455         * elf/tst-auditmod7a.c: Move to ...
49456         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49457         * elf/tst-auditmod7b.c: Move to ...
49458         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49459
49460 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49461
49462         [BZ #15366]
49463         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49464         define unconditionally.
49465         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49466         define unconditionally.
49467         (INT8_C, INT16_C, etc.): Likewise.
49468
49469 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49470
49471         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49472         __ehdr_start with hidden visibility.
49473
49474         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49475
49476 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49477
49478         * math/libm-test.inc (cos_test): Use accurate hex constants.
49479         (sincost_test): Likewise.
49480
49481 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49482
49483         * math/libm-test.inc (catan_test): Add more tests.
49484         (catanh_test): Likewise.
49485
49486         * math/s_catanf.c (__catanf): Use suffixed floating-point
49487         constants.
49488         * math/s_catanhf.c (__catanhf): Likewise.
49489         * math/s_catanhl.c (__catanhl): Likewise.
49490         * math/s_catanl.c (__catanl): Likewise.
49491
49492         [BZ #15394]
49493         * math/s_catan.c (__catan): Calculate imaginary part of result
49494         with log1p not log unless computing log of number close to 0.
49495         * math/s_catanf.c (__catanf): Likewise.
49496         * math/s_catanl.c (__catanl): Likewise.
49497         * math/s_catanh.c (__catanh): Calculate real part of result with
49498         log1p not log unless computing log of number close to 0.
49499         * math/s_catanhf.c (__catanhf): Likewise.
49500         * math/s_catanhl.c (__catanhl): Likewise.
49501         * math/libm-test.inc (catan_test): Add more tests.
49502         (catanh_test): Likewise.
49503         * sysdeps/i386/fpu/libm-test-ulps: Update.
49504         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49505
49506 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49507
49508         * benchtests/Makefile: Mention files in which fast and slow
49509         paths of math functions are implemented.
49510
49511 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49512
49513         * sysdeps/posix/timespec_get.c: New file.
49514
49515 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49516
49517         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49518         POWER.
49519         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49520         for POWER.
49521         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49522         powerpc/power5/fpu folders.
49523         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49524         * benchtests/Makefile: Add modf testcase.
49525         * benchtests/bench-modf.c: New file: Benchmark test for mo
49526
49527 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49528
49529         [BZ #14888]
49530         * time/Makefile (tests): Add tst-strptime-whitespace.
49531         * time/strptime_l.c (get_number): Use ISSPACE.
49532         (__strptime_internal): Likewise.
49533         * time/tst-strptime-whitespace.c: New test case.
49534
49535 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49536
49537         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49538         member.
49539         (_nss_files_init): Set it here.
49540
49541 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49542
49543         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49544         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49545         unsigned.
49546
49547 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49548
49549         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49550
49551 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49552
49553         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49554         size just once.
49555
49556 2013-04-21  David S. Miller  <davem@davemloft.net>
49557
49558         * po/ru.po: Update Russion translation from translation project.
49559
49560 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49561
49562         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49563         and setfsgid.
49564
49565 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49566
49567         * configure.in: Remove i386 configure warning. Remove i386 case.
49568         * configure: Regenerate.
49569         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49570         Add example to error message.
49571         * sysdeps/i386/configure: Regenerate.
49572
49573 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49574
49575         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49576         slowtan.
49577         * benchtests/cos-inputs: New file.
49578         * benchtests/slowcos-inputs: New file.
49579         * benchtests/slowcos.c: New file.
49580         * benchtests/slowtan-inputs: New file.
49581         * benchtests/slowtan.c: New file.
49582         * benchtests/tan-inputs: New file.
49583
49584 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49585
49586         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49587         considered kosher.
49588
49589 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49590
49591         * benchtests/Makefile: Include cppflags-iterator.mk to add
49592         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49593
49594         * Makefile.in (bench-clean): New target.
49595         * benchtests/Makefile (bench-clean): Likewise.
49596
49597 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49598
49599         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49600
49601 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49602
49603         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49604
49605 2013-04-15  Andreas Schwab  <schwab@suse.de>
49606
49607         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49608         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49609         * nscd/pwdcache.c (cache_addpw): Likewise.
49610         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49611         more than recsize.
49612
49613 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49614
49615         * benchtests/Makefile (bench): Write all output to
49616         bench-out.tmp together.
49617
49618 2013-04-15  Andreas Schwab  <schwab@suse.de>
49619
49620         * nscd/nscd.c (main): Don't fork again after closing files.
49621
49622 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49623
49624         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49625
49626         * benchtests/Rules (bench-deps): Collect dependencies into a
49627         single variable.  Add Makefile to dependencies.
49628         ($(objpfx)bench-%.c): Depend on bench-deps.
49629
49630 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49631             Xavier Roche  <roche+kml2@exalead.com>
49632
49633         [BZ #15361]
49634         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49635         just that it's a file descriptor.
49636         * manual/llio.texi (Synchronizing AIO Operations): Update description
49637         for EBADF error from aio_fsync.
49638
49639 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49640
49641         * Rules (bench): Move target definition...
49642         * benchtests/Makefile: ... here.
49643
49644 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49645
49646         * math/libm-test.inc (cos_test): Fix PI/2 test.
49647         (sincos_test): Likewise.
49648         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49649         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49650
49651 2013-04-11  Andreas Schwab  <schwab@suse.de>
49652
49653         [BZ #13988]
49654         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49655         accept exponent character only when digits were seen.
49656         * stdio-common/Makefile (tests): Add bug26.
49657         * stdio-common/bug26.c: New file.
49658
49659         [BZ #14293]
49660         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49661         non-freeable.
49662
49663 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49664
49665         * Makeconfig (rtld-prefix): Define built linker prefix.
49666         * Rules (run-bench): Use it.
49667         * math/Makefile (run-regen-ulps): Likewise.
49668
49669         * Rules (bench): Remove eval.
49670
49671 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49672             Roland McGrath  <roland@hack.frob.com>
49673             Ondrej Bilka  <neleai@seznam.cz>
49674
49675         [BZ #15346]
49676         * time/getdate.c: Include ctype.h and alloca.h.
49677         (__getdate_r): Trim leading and trailing spaces of input.
49678         * time/tst-getdate.c (tests): Add tests with leading and
49679         trailing spaces.
49680
49681 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49682
49683         [BZ #14280]
49684         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49685         when computing value.
49686
49687 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49688
49689         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49690         Use testrun.sh to run libm tests.
49691
49692         [BZ #15309]
49693         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49694
49695 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49696
49697         [BZ #15264]
49698         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49699
49700 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49701
49702         * Makefile.in (regen-ulps): New target.
49703         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49704         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49705         [ifneq (no,$(PERL)] (regen-ulps): New target.
49706         [ifeq (no,$(PERL)] (regen-ulps): New target.
49707         * math/libm-test.inc (ulps_file_name): Define.
49708         (output_dir): New variable.
49709         (options): Add "output-dir" option.
49710         (parse_opt): Handle 'o' case.
49711         (main): If output_dir is non-NULL use it as a prefix
49712         otherwise use "".
49713         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49714
49715 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49716
49717         [BZ #10060, #10062]
49718         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49719         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49720         fail configure if __sync_val_compare_and_swap is not inlined.
49721         * sysdeps/i386/configure: Regenerate.
49722         * configure.in: Build for i686 when configured for i386.
49723         * configure: Regenerate.
49724         * README: Remove i386 reference.
49725
49726 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49727
49728         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49729         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49730
49731 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49732
49733         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49734         (lmsnanval): New variables.
49735         (F): Add conversion tests.
49736         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49737         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49738
49739         * stdio-common/tstdiomisc.c (F): Properly collect individual
49740         tests' results.
49741
49742         [BZ #14686, #15336]
49743         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49744         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49745         Instead, use input NaN values or generate a qNaN by arithmetic
49746         operation.  Also fix bugs to comply with the standard.
49747         * math/libm-test.inc (remainder_test): Add more tests.
49748
49749         [BZ #15335, #15342]
49750         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49751         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49752         input NaN values or generate a qNaN by arithmetic operation.
49753
49754         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49755         unreachable code.
49756
49757         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49758         definitions.
49759
49760 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49761
49762         [BZ #14478]
49763         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49764         underflowed result.
49765         * math/s_cexpf.c (__cexpf): Likewise.
49766         * math/s_cexpl.c (__cexpl): Likewise.
49767         * math/libm-test.inc (cexp_test): Add more tests.
49768
49769 2013-04-03  Andreas Schwab  <schwab@suse.de>
49770
49771         [BZ #15330]
49772         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49773         order arrays from heap if bigger than alloca cutoff.
49774
49775 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49776
49777         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49778         (SNAN_TESTS_double): Refer to GCC PR56831.
49779         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49780         GCC PR56828.
49781
49782 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49783
49784         * Rules (bench): Move bench.out after the run is complete.
49785
49786         * Rules (bench): Echo currently running benchmark.
49787
49788         * benchtests/Makefile (bench): Add atan and slowatan.
49789         * benchtests/atan-inputs: New file.
49790         * benchtests/slowatan-inputs: New file.
49791         * benchtests/slowatan.c: New file.
49792
49793         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49794         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49795         its value.
49796
49797         [BZ #15305]
49798         * sysdeps/unix/sysv/linux/kernel-features.h
49799         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49800         __ASSUME_XFS_RESTRICTED_CHOWN.
49801         * sysdeps/unix/sysv/linux/pathconf.c
49802         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49803         Save and restore errno.
49804
49805 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49806
49807         [BZ #15327]
49808         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49809         arguments using __kernel_casinh.
49810         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49811         arguments using __kernel_casinhf.
49812         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49813         arguments using __kernel_casinhl.
49814         * math/libm-test.inc (cacosh_test): Add more tests.
49815         * sysdeps/i386/fpu/libm-test-ulps: Update.
49816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49817
49818 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49819
49820         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49821         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49822
49823         * bench/Makefile (bench): Add sin and slowsin.
49824         * benchtests/sin-inputs: New file.
49825         * benchtests/slowsin-inputs: New file.
49826         * benchtests/slowsin.c: New file.
49827
49828         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49829         (bench): Add slowexp and slowpow.
49830         (exp-ITER): Increase iterations.
49831         (pow-ITER): Likewise.
49832         * benchtests/exp-inputs: Change input.
49833         * benchtests/pow-inputs: Likewise.
49834         * benchtests/slowexp-inputs: New file.
49835         * benchtests/slowexp.c: New file.
49836         * benchtests/slowpow-inputs: New file.
49837         * benchtests/slowpow.c: New file.
49838
49839 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49840
49841         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49842         instructions.
49843         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49844         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49845         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49846         * benchtests/Makefile: Add rint benchtest.
49847         * benchtests/rint-inputs: Input for rint benchtest.
49848
49849 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49850
49851         * Versions.def (libm): Add GLIBC_2.18.
49852         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49853         hidden libm prototypes.
49854         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49855         * math/Makefile (libm-calls): Add s_issignaling.
49856         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49857         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49858         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49859         declaration.
49860         * math/math.h [__USE_GNU] (issignaling): New macro.
49861         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49862         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49863         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49864         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49865         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49866         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49867         * manual/arith.texi (issignaling): New section.
49868         * manual/libm-err-tab.pl (@all_functions): Update comment.
49869         * math/gen-libm-test.pl (parse_args): Apply special handling for
49870         issignaling.
49871         * math/libm-test.inc (print_float, issignaling_test): New
49872         functions.
49873         (check_float_internal): Add issignaling checks.
49874         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49875         default definition.
49876         * sysdeps/powerpc/math-tests.h: New file.
49877         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49878         tests.
49879         * math/test-snan.c (TEST_FUNC): Likewise.
49880
49881 2013-03-30  David S. Miller  <davem@davemloft.net>
49882
49883         * po/de.po: Update from translation team.
49884
49885 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49886
49887         [BZ #10357]
49888         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49889         imaginary part less than 1.0 and real part less than 0.5
49890         specially.
49891         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49892         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49893         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49894         (cacos_test): Add more tests.
49895         (casin_test): Likewise.
49896         (casinh_test): Likewise.
49897         * sysdeps/i386/fpu/libm-test-ulps: Update.
49898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49899
49900 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49901
49902         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49903         ONE with its value.
49904
49905         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49906         (__pow_mp): Replace ONE and MONE with their values.
49907         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49908         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49909         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49910         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49911         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49912         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49913
49914         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49915
49916         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49917         (__pow_mp): Replace ZERO and MZERO with their values.
49918         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49919         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49920         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49921         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49922         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49923         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49924         (__sqr): Likewise.
49925
49926         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49927
49928         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49929
49930 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49931
49932         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49933         Declare with __attribute__ ((weak)).
49934         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49935         Call __call_tls_dtors only if it's not NULL.
49936
49937 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49938
49939         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49940         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49941         magic __ehdr_start linker symbol if it's defined.
49942         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49943         them up here if it was already done.
49944
49945         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49946         (_dl_aux_init): Use const in cast when setting it.
49947         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49948         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49949         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49950
49951         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49952         Declare them here.
49953         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49954         * csu/libc-tls.c: Nor here.
49955         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49956
49957         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49958         (__libc_message): Never call vsyslog.
49959
49960 2013-03-28  Alan Modra  <amodra@gmail.com>
49961
49962         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49963         Define as empty.
49964         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49965         Likewise.
49966
49967 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49968
49969         [BZ #15214]
49970         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49971         underflow.
49972         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49973
49974 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49975
49976         [BZ #15304]
49977         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49978         Don't add gid passed as argument.
49979
49980         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49981
49982 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49983
49984         [BZ #15307]
49985         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49986         imaginary part between 1.0 and 1.5 and real part less than 0.5
49987         specially.
49988         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49989         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49990         * math/libm-test.inc (cacos_test): Add more tests.
49991         (casin_test): Likewise.
49992         (casinh_test): Likewise.
49993         * sysdeps/i386/fpu/libm-test-ulps: Update.
49994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49995
49996 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49997
49998         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49999         constants.
50000         (norm): Likewise.
50001         (denorm): Likewise.
50002         (__dbl_mp): Likewise.
50003         (add_magnitudes): Likewise.
50004         (sub_magnitudes): Likewise.
50005         (__add): Likewise.
50006         (__sub): Likewise.
50007         (__mul): Likewise.
50008         (__sqr): Likewise.
50009         (__inv): Likewise.
50010         (__dvd): Likewise.
50011
50012         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
50013         commented code.
50014         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
50015         (__dubcos): Likewise.
50016         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
50017         (__ieee754_acos): Likewise.
50018         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
50019         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
50020         (__exp1): Likewise.
50021         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
50022         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
50023         (log1): Likewise.
50024         (my_log2): Likewise.
50025         (checkint): Likewise.
50026         * sysdeps/ieee754/dbl-64/e_remainder.c
50027         (__ieee754_remainder): Likewise.
50028         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
50029         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
50030         (bsloww): Likewise.
50031         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
50032
50033         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50034         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
50035         MANTISSA_STORE_T to store computations on mantissa.  Use
50036         macros for rounding and division.
50037         (denorm): Likewise.
50038         (__dbl_mp): Likewise.
50039         (add_magnitudes): Likewise.
50040         (sub_magnitudes): Likewise.
50041         (__mul): Likewise.
50042         (__sqr): Likewise.
50043         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50044         powers of two in terms of TWOPOW macro.
50045         (mp_no): Make type of mantissa as MANTISSA_T.
50046         [!RADIXI]: Define RADIXI.
50047         [!TWO52]: Define TWO52.
50048         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50049
50050 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50051
50052         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
50053         llroundl symbol when building for PPC32.
50054
50055 2013-03-24  Mark H Weaver  <mhw@netris.org>
50056
50057         * manual/arith.texi (Normalization Functions): Fix prototypes for
50058         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
50059
50060 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50061
50062         [BZ #13889]
50063         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
50064         high value to check if expl overflow.
50065         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
50066         to check for underflow and overflow.
50067         * math/libm-test.inc: Add exp test.
50068
50069 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
50070
50071         [BZ #11120]
50072         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
50073         with NOT_IN_libc.
50074
50075 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50076
50077         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
50078         symbol.
50079
50080 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
50081
50082         * math/gen-libm-test.pl (parse_args, special_functions): Properly
50083         wrap blocks consisting of several statements.
50084
50085         * sysdeps/generic/math-tests.h: New file.
50086         * sysdeps/i386/fpu/math-tests.h: Likewise.
50087         * math/test-snan.c: Include it.
50088         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
50089
50090 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50091
50092         [BZ #15285]
50093         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
50094         (__ieee754_j0l): Do not improve calculations using cos of twice
50095         input for inputs above LDBL_MAX / 2.0L.
50096         (__ieee754_y0l): Likewise.
50097         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
50098         (__ieee754_j1l): Do not improve calculations using cos of twice
50099         input for inputs above LDBL_MAX / 2.0L.
50100         (__ieee754_y1l): Likewise.
50101         * math/libm-test.inc (j0_test): Add another test.
50102         (j1_test): Likewise.
50103         (y0_test): Likewise.
50104         (y1_test): Likewise.
50105         * sysdeps/i386/fpu/libm-test-ulps: Update.
50106
50107 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50108
50109         * Rules ($(objpfx)bench-%.c): Include code from a C source
50110         file.
50111
50112 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50113
50114         [BZ #15287]
50115         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50116         imaginary part 1.0 and real part less than 0.5 specially.
50117         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50118         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50119         * math/libm-test.inc (cacos_test): Add more tests.
50120         (casin_test): Likewise.
50121         (casinh_test): Likewise.
50122         * sysdeps/i386/fpu/libm-test-ulps: Update.
50123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50124
50125 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50126
50127         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
50128         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
50129
50130 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
50131
50132         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
50133         * config.make.in (config-cflags-sse4): Remove variable.
50134         (config-cflags-avx): Likewise.
50135         (config-cflags-sse2avx): Likewise.
50136         (config-cflags-novzeroupper): Likewise.
50137         (config-asflags-i686): Likewise.
50138         (have-mfma4): Likewise.
50139         (have-as-vis3): Likewise.
50140         (MIG): Likewise.
50141         * configure.in (MIG): Do not AC_SUBST.
50142         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
50143         (libc_cv_cc_sse4): Do not AC_SUBST.
50144         (libc_cv_cc_avx): Likewise.
50145         (libc_cv_cc_sse2avx): Likewise.
50146         (libc_cv_cc_novzeroupper): Likewise.
50147         (libc_cv_cc_fma4): Likewise.
50148         (libc_cv_as_i686): Likewise.
50149         (libc_cv_sparc_as_vis3): Likewise.
50150         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
50151         LIBC_CONFIG_VAR.
50152         (config-asflags-i686): Likewise.
50153         (config-cflags-avx): Likewise.
50154         (config-cflags-sse2avx): Likewise.
50155         (have-mfma4): Likewise.
50156         (config-cflags-novzeroupper): Likewise.
50157         * sysdeps/mach/configure.in (MIG): Likewise.
50158         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
50159         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
50160         LIBC_CONFIG_VAR.
50161         (config-cflags-avx): Likewise.
50162         (config-cflags-sse2avx): Likewise.
50163         (have-mfma4): Likewise.
50164         (config-cflags-novzeroupper): Likewise.
50165         * configure: Regenerated.
50166         * sysdeps/i386/configure: Likewise.
50167         * sysdeps/mach/configure: Likewise.
50168         * sysdeps/sparc/configure: Likewise.
50169         * sysdeps/x86_64/configure: Likewise.
50170
50171 2013-03-20  Roland McGrath  <roland@hack.frob.com>
50172
50173         [BZ #14812]
50174         * locale/programs/localedef.c (options): Put N_ translation marker
50175         on argument names, not just descriptions.
50176
50177 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
50178
50179         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
50180
50181 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
50182
50183         [BZ #14176]
50184         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
50185
50186 2013-03-19  Roland McGrath  <roland@hack.frob.com>
50187
50188         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
50189         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
50190         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
50191         [!BEFORE_ABORT] (before_abort): New function.
50192         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
50193         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
50194         (writev_for_fatal): New function.
50195         (WRITEV_FOR_FATAL): New macro; call that.
50196         (backtrace_and_maps): New function.
50197         (BEFORE_ABORT): New macro; call that.
50198         (struct str_list): Type removed.
50199         (__libc_message, __libc_fatal): Functions removed.
50200         Include <sysdeps/posix/libc_fatal.c> instead.
50201
50202 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
50203
50204         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
50205         constants.
50206         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
50207         double constants.
50208
50209 2013-03-19  Andreas Schwab  <schwab@suse.de>
50210
50211         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
50212         * sysdeps/gnu/configure: Regenerate.
50213
50214         * configure.in: Substitute libc_cv_rtlddir.
50215         * configure: Regenerate.
50216         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
50217         * Makeconfig (rtlddir, inst_rtlddir): New variables.
50218         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
50219         * elf/Makefile (install-others, CFLAGS-interp.c)
50220         (ldso_install, common-ldd-rewrite): Likewise.
50221         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
50222         $(inst_slibdir)/$(rtld-installed-name).
50223         * scripts/rellns-sh: Add -p option.
50224         * Makerules (make-shlib-link): Use rellns-sh to get relative name
50225         for source.
50226
50227 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50228
50229         * manual/nptl.texi: Renamed to ...
50230         * manual/threads.texi: ... this.
50231         * manual/Makefile (chapters): Update.
50232
50233 2013-03-18  Roland McGrath  <roland@hack.frob.com>
50234
50235         [BZ #14812]
50236         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
50237         on argument names, not just descriptions.
50238         * malloc/memusagestat.c (options): Likewise.
50239         * nss/getent.c (options): Likewise.
50240
50241 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
50242
50243         [BZ #14812]
50244         * iconv/iconv_prog.c (options): Put N_ translation marker
50245         on argument names, not just descriptions.
50246         * iconv/iconvconfig.c (options): Likewise.
50247
50248 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
50249
50250         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
50251         implementation which is faster on all x86_64 architectures.
50252         Tested on AMD, Intel Nehalem, SNB, IVB.
50253         * sysdeps/x86_64/strnlen.S: Likewise.
50254
50255         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50256         Remove all multiarch strlen and strnlen versions.
50257         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
50258         Remove strlen and strnlen related parts.
50259
50260         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
50261         Inline strlen part.
50262         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
50263
50264         * sysdeps/x86_64/multiarch/strlen.S: Remove.
50265         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
50266         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
50267         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
50268         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
50269         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
50270
50271 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
50272
50273         * manual/memory.texi (Malloc Tunable Parameters):
50274         Sort parameters alphabetically. Add comments for missing entries.
50275
50276 2013-03-17  David S. Miller  <davem@davemloft.net>
50277
50278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50279
50280 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
50281
50282         [BZ #15283]
50283         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
50284         for arguments at most half maximum finite value.
50285         * math/libm-test.inc (j0_test): Add more tests.
50286         (j1_test): Likewise.
50287         (y0_test): Likewise.
50288         (y1_test): Likewise.
50289         * sysdeps/i386/fpu/libm-test-ulps: Update.
50290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50291
50292         [BZ #14155]
50293         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
50294         1 / x and functions P and Q for arguments above 0x1p256L.
50295         (__ieee754_y0l): Likewise.
50296         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
50297         (__ieee754_y1l): Likewise.
50298         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
50299         (j1_test): Likewise.
50300         (y0_test): Likewise.
50301         (y1_test): Likewise.
50302
50303 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
50304
50305         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
50306         variable.
50307
50308 2013-03-15  Roland McGrath  <roland@hack.frob.com>
50309
50310         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
50311         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
50312         zero since it's initialized to EXEC_PAGESIZE.
50313
50314         * sysdeps/unix/sysv/linux/ldsodefs.h
50315         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
50316         * sysdeps/generic/ldsodefs.h: ... here.
50317
50318 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
50319
50320         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
50321
50322         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
50323         math/test-snan.c.
50324         * math/test-snan.c: Renamed from
50325         sysdeps/powerpc/fpu/test-powerpc-snan.c.
50326         * math/Makefile (tests): Add test-snan.
50327         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
50328         test-powerpc-snan.
50329
50330         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
50331         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
50332         functions.
50333         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
50334         __builtin_nan family of functions.
50335         * math/libm-test.inc (initialize): Initialize qnan_value with
50336         __builtin_nan family of functions.
50337         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
50338         Remove variables.
50339         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
50340         Remove functions.
50341         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
50342         storage class.  Initialize qNaN_var and sNaN_var with
50343         __builtin_nan and __builtin_nans families of functions,
50344         respectively.
50345
50346         * math/libm-test.inc (acosh_test): Also test with qNaN input.
50347         (sqrt_test): Remove duplicate test with qNaN input.
50348         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
50349         (round_test, signbit_test, significand_test): Note missing +/-Inf
50350         as well as qNaN tests.
50351
50352         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
50353         qNaN_var.  Fix a few strings, too.
50354         * math/libm-test.inc (nan_value): Rename to qnan_value.
50355         * math/gen-libm-test.pl (%beautify): Adjust to that.
50356         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
50357         * math/test-misc.c (main): Likewise.
50358         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
50359         to __qnan_bytes, and __qnan_union, respectively.
50360         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
50361         Likewise.
50362         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
50363         and lqnanval, respectively.
50364         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50365         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50366         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50367         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50368
50369         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50370         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50371         doubles.
50372
50373         * math/test-misc.c (main): Fix copy'n'pastos.
50374         * misc/tst-efgcvt.c (special): Likewise.
50375
50376         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50377         Remove declarations.
50378
50379 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50380
50381         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50382         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50383         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50384         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50385
50386 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50387
50388         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50389         macro to return vdso values correctly in IFUNC implementations.
50390         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50391         Optimization by using IFUNC.
50392
50393 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50394             Richard Henderson  <rth@redhat.com>
50395             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50396
50397         * Makefile.in (bench): New target.
50398         * NEWS: Mention the benchmark framework.
50399         * Rules (bench): Likewise.
50400         (binaries-bench): Generate binaries for functions to
50401         benchmark.
50402         * benchtests/Makefile: New makefile for benchmark tests.
50403         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50404         programs.
50405         * benchtests/exp-inputs: New input file for EXP function.
50406         * benchtests/pow-inputs: New input file for POW function.
50407         * scripts/bench.pl: New script to generate source files for
50408         benchmark programs.
50409
50410 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50411
50412         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50413         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50414         computations on mantissa.  Use macros for rounding and
50415         division.
50416         (denorm): Likewise.
50417         (__dbl_mp): Likewise.
50418         (add_magnitudes): Likewise.
50419         (sub_magnitudes): Likewise.
50420         (__mul): Likewise.
50421         (__sqr): Likewise.
50422         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50423         powers of two in terms of TWOPOW macro.
50424         (mp_no): Make type of mantissa as MANTISSA_T.
50425         [!RADIXI]: Define RADIXI.
50426         [!TWO52]: Define TWO52.
50427         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50428
50429         * manual/nptl.texi (cindex): Modify threads to pthreads.
50430
50431 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50432
50433         * sysdeps/x86_64/preconfigure: Regenerated.
50434
50435 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50436
50437         [BZ #14155]
50438         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50439         0x1p28 and above.
50440         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50441         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50442         0x1p28 and above.
50443         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50444         * math/libm-test.inc (j0_test): Do not allow one spurious
50445         underflow exception.
50446         (y1_test): Likewise.
50447
50448 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50449
50450         * manual/Makefile (chapters): Add nptl.
50451         * manual/debug.texi (Debugging Support): Add link to Threads
50452         chapter.
50453         * manual/nptl.texi: New file.
50454
50455         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50456
50457 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50458
50459         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50460         for non-NULL pointer before the memory validity test. Pointed
50461         out by Holger Brunck <holger.brunck@keymile.com>.
50462
50463 2013-03-13  Andreas Schwab  <schwab@suse.de>
50464
50465         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50466         instead of .os.
50467
50468 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50469
50470         * timezone/zic.c: Update from tzcode 2013b.
50471
50472 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50473
50474         * manual/install.texi (Configuring and compiling):
50475         Mention i686 and i586.
50476         * INSTALL: Regenerate.
50477
50478 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50479
50480         * sysdeps/init_array/elf-init.c: New file.
50481         * csu/elf-init.c
50482         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50483         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50484
50485         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50486         __gmon_start__ as global, but as static with a .preinit_array pointer.
50487         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50488         * sysdeps/init_array/crti.S: New file, empty except for comments.
50489         * sysdeps/init_array/crtn.S: Likewise.
50490
50491 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50492
50493         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50494         definining bcopy.
50495         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50496         Remove Prefer_SSE_for_memop.
50497         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50498         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50499         HAS_PREFER_SSE_FOR_MEMOP.
50500         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50501         memset-x86-64.
50502         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50503         Remove bzero, memset ifunc support.
50504         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50505         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50506         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50507         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50508
50509 2013-03-11  Andreas Schwab  <schwab@suse.de>
50510
50511         [BZ #15234]
50512         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50513         by SHLIB_COMPAT.
50514         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50515         (GLIBC_2.16): Remove pthread_atfork.
50516
50517 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50518
50519         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50520         (ptestcases.h): Likewise.
50521
50522 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50523
50524         * Makeconfig ($(common-objpfx)config.status): Depend on
50525         sysdeps/*/preconfigure{,.in} too.
50526
50527 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50528
50529         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50530         (__free_hook): Use void * instead of __malloc_ptr_t.
50531         (__malloc_hook): Likewise.
50532         (__realloc_hook): Likewise.
50533         (__memalign_hook): Likewise.
50534         (__after_morecore_hook): Likewise.
50535         * malloc/arena.c (save_malloc_hook): Likewise.
50536         (save_free_hook): Likewise.
50537         * malloc/hooks.c (malloc_hook_ini): Likewise.
50538         (realloc_hook_ini): Likewise.
50539         (memalign_hook_ini): Likewise.
50540         * malloc/malloc.c (malloc_hook_ini): Likewise.
50541         (realloc_hook_ini): Likewise.
50542         (memalign_hook_ini): Likewise.
50543         (__free_hook): Likewise.
50544         (__malloc_hook): Likewise.
50545         (__realloc_hook): Likewise.
50546         (__memalign_hook): Likewise.
50547         (__libc_malloc): Likewise.
50548         (__libc_free): Likewise.
50549         (__libc_realloc): Likewise.
50550         (__libc_memalign): Likewise.
50551         (__libc_valloc): Likewise.
50552         (__libc_pvalloc): Likewise.
50553         (__libc_calloc): Likewise.
50554         (__posix_memalign): Likewise.
50555         * malloc/morecore.c (__sbrk): Likewise.
50556         (__default_morecore): Likewise.
50557
50558         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50559
50560         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50561         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50562         __malloc_ptrdiff_t.
50563
50564         * malloc/malloc.h (__malloc_size_t): Remove macro.
50565         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50566         __malloc_size_t.
50567         (old_memalign_hook): Likewise.
50568         (old_realloc_hook): Likewise.
50569         (struct hdr): Likewise.
50570         (flood): Likewise.
50571         (mallochook): Likewise.
50572         (memalignhook): Likewise.
50573         (reallochook): Likewise.
50574         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50575         (tr_old_realloc_hook): Likewise.
50576         (tr_old_memalign_hook): Likewise.
50577         (tr_mallochook): Likewise.
50578         (tr_reallochook): Likewise.
50579         (tr_memalignhook): Likewise.
50580
50581 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50582
50583         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50584         default_ldbl_pack and using as default implementation.
50585         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50586         implementation.
50587         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50588         redundant definition.
50589         (ldbl_insert_mantissa): Likewise.
50590         (ldbl_canonicalize): Likewise.
50591         (ldbl_nearbyint): Likewise.
50592         (ldbl_pack): Rename to ldbl_pack_ppc.
50593         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50594         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50595         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50596
50597 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50598
50599         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50600         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50601         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50602         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50603         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50604         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50605         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50606         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50607
50608 2013-03-07  Andreas Jaeger  <aj@suse.de>
50609
50610         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50611         bits/mman-linux.h.
50612
50613 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50614
50615         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50616         Include mpa.h and declare __MPEXP.
50617         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50618         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50619         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50620         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50621         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50622         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50623         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50624
50625         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50626         (__slowpow): Use long double EXPL and LOGL functions to
50627         compute POW.
50628         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50629         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50630         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50631         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50632         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50633         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50634
50635         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50636         intermediate variable to calculate exponent.
50637         (__sqr): Likewise.
50638         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50639         Likewise.
50640         (__sqr): Likewise.
50641
50642         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50643         [!NO__SQR]: Define __sqr.
50644         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50645         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50646         sysdeps/ieee754/dbl-64/mpa.c.
50647         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50648
50649         [BZ #12723]
50650         * posix/Makefile (tests): Add tst-pathconf.
50651         * posix/tst-pathconf.c: New test case.
50652         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50653         _PC_PIPE_BUF.
50654         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50655
50656 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50657
50658         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50659
50660 2013-03-06  Andreas Jaeger  <aj@suse.de>
50661
50662         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50663         definition via __MAP_ANONYMOUS.
50664
50665         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50666         it's not part of Linux headers.
50667
50668         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50669         (MAP_HUGE_MASK): Define.
50670
50671         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50672         Define.
50673         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50674         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50675         Define.
50676         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50677         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50678         Define.
50679         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50680         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50681         Define.
50682         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50683
50684         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50685         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50686         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50687         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50688         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50689         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50690
50691         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50692         Handle f2fs.
50693
50694         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50695         Handle f2fs and efivarfs.
50696
50697         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50698         f2fs.
50699
50700         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50701         (EFIVARFS_MAGIC): Add.
50702         (F2FS_LINK_MAX): Add.
50703
50704 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50705
50706         * stdio-common/vfprintf.c: Replace __builtin_expect with
50707         __glibc_unlikely.
50708
50709 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50710
50711         [BZ #13550]
50712         * sysdeps/generic/bp-sym.h: Remove file.
50713         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50714         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50715         <bp-sym.h> and <bp-asm.h>.
50716         (__longjmp): Don't use BP_SYM.
50717         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50718         and <bp-asm.h>.
50719         (memcpy): Don't use BP_SYM.
50720         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50721         <bp-sym.h> and <bp-asm.h>.
50722         (memcpy): Don't use BP_SYM.
50723         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50724         <bp-asm.h>.
50725         (memcpy): Don't use BP_SYM.
50726         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50727         <bp-asm.h>.
50728         (memset): Don't use BP_SYM.
50729         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50730         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50731         (__bzero): Don't use BP_SYM.
50732         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50733         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50734         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50735         <bp-sym.h> and <bp-asm.h>.
50736         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50737         pointers.
50738         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50739         <bp-sym.h> and <bp-asm.h>.
50740         (memcpy): Don't use BP_SYM.
50741         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50742         <bp-sym.h> and <bp-asm.h>.
50743         (memset): Don't use BP_SYM.
50744         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50745         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50746         (__bzero): Don't use BP_SYM.
50747         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50748         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50749         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50750         <bp-sym.h> and <bp-asm.h>.
50751         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50752         pointers.
50753         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50754         <bp-sym.h> and <bp-asm.h>.
50755         (memcpy): Don't use BP_SYM.
50756         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50757         <bp-sym.h> and <bp-asm.h>.
50758         (memset): Don't use BP_SYM.
50759         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50760         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50761         (__bzero): Don't use BP_SYM.
50762         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50763         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50764         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50765         <bp-sym.h> and <bp-asm.h>.
50766         (__memchr): Don't use BP_SYM.
50767         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50768         <bp-sym.h> and <bp-asm.h>.
50769         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50770         pointers.
50771         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50772         <bp-sym.h> and <bp-asm.h>.
50773         (memcpy): Don't use BP_SYM.
50774         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50775         <bp-sym.h> and <bp-asm.h>.
50776         (__mempcpy): Don't use BP_SYM.
50777         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50778         <bp-sym.h> and <bp-asm.h>.
50779         (__memrchr): Don't use BP_SYM.
50780         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50781         <bp-sym.h> and <bp-asm.h>.
50782         (memset): Don't use BP_SYM.
50783         (__bzero): Likewise.
50784         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50785         <bp-sym.h> and <bp-asm.h>.
50786         (__rawmemchr): Don't use BP_SYM.
50787         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50788         <bp-sym.h> and <bp-asm.h>.
50789         (__STRCMP): Don't use BP_SYM.
50790         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50791         <bp-sym.h> and <bp-asm.h>.
50792         (strchr): Don't use BP_SYM.
50793         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50794         <bp-sym.h> and <bp-asm.h>.
50795         (__strchrnul): Don't use BP_SYM.
50796         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50797         <bp-sym.h> and <bp-asm.h>.
50798         (strlen): Don't use BP_SYM.
50799         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50800         <bp-sym.h> and <bp-asm.h>.
50801         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50802         pointers.
50803         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50804         <bp-sym.h> and <bp-asm.h>.
50805         (__strnlen): Don't use BP_SYM.
50806         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50807         <bp-sym.h> and <bp-asm.h>.
50808         (__GI__setjmp): Don't use BP_SYM.
50809         (_setjmp): Likewise.
50810         (__sigsetjmp): Likewise.
50811         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50812         (L(start_addresses)): Don't use BP_SYM.
50813         (_start): Likewise.
50814         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50815         <bp-asm.h>.
50816         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50817         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50818         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50819         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50820         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50821         <bp-asm.h>.
50822         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50823         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50824         about bounded pointers.
50825         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50826         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50827         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50828         <bp-asm.h>.
50829         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50830         about bounded pointers.  Remove GKM FIXME comments.
50831         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50832         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50833         <bp-asm.h>.
50834         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50835         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50836         Remove GKM FIXME comments.
50837         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50838         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50839         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50840         <bp-asm.h>.
50841         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50842         about bounded pointers.  Remove GKM FIXME comment.
50843         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50844         and <bp-asm.h>.
50845         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50846         pointers.
50847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50848         <bp-sym.h> and <bp-asm.h>.
50849         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50851         <bp-sym.h> and <bp-asm.h>.
50852         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50853         comment.
50854
50855 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50856
50857         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50858         call free(NULL).
50859
50860 2013-03-05  David S. Miller  <davem@davemloft.net>
50861
50862         * po/es.po: Update from translation team.
50863
50864 2013-03-05  Andreas Jaeger  <aj@suse.de>
50865
50866         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50867         <bits/mman-linux.h>.
50868         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50869         is fine.
50870         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50871         <bits/mman-linux.h> to end of file.
50872         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50873         is fine.
50874         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50875         <bits/mman-linux.h> to end of file.
50876         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50877         is fine.
50878         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50879         <bits/mman-linux.h> to end of file.
50880
50881         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50882         (MCL_CURRENT, MCL_FUTURE): Define here.
50883
50884 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50885
50886         [BZ #15232]
50887         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50888         attribute_hidden.
50889         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50890
50891 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50892
50893         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50894         fourth parameter needed for rt_sigprocmask syscall.
50895         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50896         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50897         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50898         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50899         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50900         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50901
50902 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50903
50904         [BZ #13550]
50905         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50906         comment about bounded pointers.
50907         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50908         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50909
50910 2013-03-04  Andreas Jaeger  <aj@suse.de>
50911
50912         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50913         common definitions.
50914
50915         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50916         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50917         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50918         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50919         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50920         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50921
50922 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50923
50924         [BZ #15055]
50925         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50926         __ieee754_sqrl instead of __sqrl.
50927
50928 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50929
50930         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50931         * sysdeps/powerpc/fpu_control.h: ... here.
50932         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50933         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50934         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50935         * sysdeps/powerpc/bits/mathinline.h: ... here.
50936
50937 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50938
50939         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50940         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50941         to just [NEED_DL_SYSINFO_DSO].
50942         * elf/dl-support.c: Likewise.
50943         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50944         * elf/rtld.c (dl_main): Likewise.
50945         * elf/setup-vdso.h (setup_vdso): Likewise.
50946         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50947         * sysdeps/unix/sysv/linux/dl-sysdep.c
50948         (_dl_discover_osversion): Likewise.
50949
50950 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50951
50952         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50953         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50954
50955 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50956
50957         * NEWS: Mention libm performance improvements and non-x86 PI
50958         futex support.
50959
50960         * csu/libc-start.c (__pthread_initialize_minimal): Change
50961         function arguments.
50962         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50963
50964 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50965
50966         [BZ #13550]
50967         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50968         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50969         <bp-sym.h> and <bp-asm.h>.
50970         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50971         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50972         and <bp-asm.h>.
50973         (memcpy): Don't use BP_SYM.
50974         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50975         <bp-asm.h>.
50976         (__mpn_add_n): Don't use BP_SYM.
50977         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50978         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50979         and <bp-asm.h>.
50980         (__mpn_addmul_1): Don't use BP_SYM.
50981         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50982         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50983         <bp-sym.h>.
50984         (_setjmp): Don't use BP_SYM.
50985         (__novmx_setjmp): Likewise.
50986         (__GI__setjmp): Likewise.
50987         (__vmx_setjmp): Likewise.
50988         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50989         <bp-sym.h>.
50990         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50991         (__bzero): Don't use BP_SYM.
50992         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50993         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50994         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50995         <bp-sym.h> and <bp-asm.h>.
50996         (memcpy): Don't use BP_SYM.
50997         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50998         <bp-sym.h> and <bp-asm.h>.
50999         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51000         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
51001         <bp-sym.h> and <bp-asm.h>.
51002         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51003         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
51004         <bp-asm.h>.
51005         (__mpn_lshift): Don't use BP_SYM.
51006         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51007         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
51008         <bp-asm.h>.
51009         (memset): Don't use BP_SYM.
51010         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
51011         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
51012         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
51013         <bp-asm.h>.
51014         (__mpn_mul_1): Don't use BP_SYM.
51015         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51016         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
51017         <bp-sym.h> and <bp-asm.h>.
51018         (memcmp): Don't use BP_SYM.
51019         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
51020         <bp-sym.h> and <bp-asm.h>.
51021         (memcpy): Don't use BP_SYM.
51022         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
51023         <bp-sym.h> and <bp-asm.h>.
51024         (memset): Don't use BP_SYM.
51025         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
51026         <bp-sym.h> and <bp-asm.h>.
51027         (strncmp): Don't use BP_SYM.
51028         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
51029         <bp-sym.h> and <bp-asm.h>.
51030         (memcpy): Don't use BP_SYM.
51031         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
51032         <bp-sym.h> and <bp-asm.h>.
51033         (memset): Don't use BP_SYM.
51034         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
51035         <bp-sym.h> and <bp-asm.h>.
51036         (__memchr): Don't use BP_SYM.
51037         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
51038         <bp-sym.h> and <bp-asm.h>.
51039         (memcmp): Don't use BP_SYM.
51040         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
51041         <bp-sym.h> and <bp-asm.h>.
51042         (memcpy): Don't use BP_SYM.
51043         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
51044         <bp-sym.h> and <bp-asm.h>.
51045         (__mempcpy): Don't use BP_SYM.
51046         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
51047         <bp-sym.h> and <bp-asm.h>.
51048         (__memrchr): Don't use BP_SYM.
51049         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
51050         <bp-sym.h> and <bp-asm.h>.
51051         (memset): Don't use BP_SYM.
51052         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
51053         <bp-sym.h> and <bp-asm.h>.
51054         (__rawmemchr): Don't use BP_SYM.
51055         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
51056         <bp-sym.h> and <bp-asm.h>.
51057         (__STRCMP): Don't use BP_SYM.
51058         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
51059         <bp-sym.h> and <bp-asm.h>.
51060         (strchr): Don't use BP_SYM.
51061         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
51062         <bp-sym.h> and <bp-asm.h>.
51063         (__strchrnul): Don't use BP_SYM.
51064         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
51065         <bp-sym.h> and <bp-asm.h>.
51066         (strlen): Don't use BP_SYM.
51067         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
51068         <bp-sym.h> and <bp-asm.h>.
51069         (strncmp): Don't use BP_SYM.
51070         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
51071         <bp-sym.h> and <bp-asm.h>.
51072         (__strnlen): Don't use BP_SYM.
51073         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
51074         <bp-asm.h>.
51075         (__mpn_rshift): Don't use BP_SYM.
51076         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51077         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
51078         <bp-sym.h> and <bp-asm.h>.
51079         (__sigsetjmp): Don't use BP_SYM.
51080         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
51081         (L(start_addresses)): Don't use BP_SYM.
51082         (_start): Likewise.
51083         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
51084         <bp-asm.h>.
51085         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
51086         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51087         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51088         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
51089         <bp-asm.h>.
51090         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
51091         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51092         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51093         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
51094         <bp-asm.h>.
51095         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51096         comments.
51097         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51098         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
51099         <bp-asm.h>.
51100         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
51101         FIXME comments.
51102         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51103         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51104         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
51105         <bp-asm.h>.
51106         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51107         comment.
51108         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
51109         and <bp-asm.h>.
51110         (strncmp): Don't use BP_SYM,
51111         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
51112         <bp-asm.h>.
51113         (__mpn_sub_n): Don't use BP_SYM.
51114         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51115         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
51116         and <bp-asm.h>.
51117         (__mpn_submul_1): Don't use BP_SYM.
51118         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
51120         <bp-sym.h> and <bp-asm.h>.
51121         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
51122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
51123         <bp-sym.h> and <bp-asm.h>.
51124         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
51125         comment.
51126
51127 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51128
51129         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
51130         Use ZK to minimize writes to Z.
51131         (sub_magnitudes): Simplify code a bit.
51132         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
51133         Use ZK to minimize writes to Z.
51134         (sub_magnitudes): Simplify code a bit.
51135
51136 2013-02-27  Roland McGrath  <roland@hack.frob.com>
51137
51138         * csu/gmon-start.c: Add special exception to license text.
51139
51140 2013-02-27  Richard Henderson  <rth@redhat.com>
51141
51142         * scripts/config.guess: Update from config.git.
51143         * scripts/config.sub: Likewise.
51144
51145 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51146
51147         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
51148
51149         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
51150
51151         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
51152
51153         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
51154
51155         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
51156
51157 2013-02-26  Roland McGrath  <roland@hack.frob.com>
51158
51159         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
51160         [$(build-shared = yes].
51161
51162 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51163
51164         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
51165         (__mul): Reduce iterations for calculating mantissa.
51166
51167         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
51168         MPTWO.
51169         (__mpranred): Likewise.
51170
51171         [BZ #15160]
51172         * malloc/memusagestat.c (main): Draw graphs for heap and stack
51173         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
51174
51175 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51176
51177         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
51178         Define __attribute__.
51179
51180 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51181
51182         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
51183         unused.
51184         * posix/regex_internal.h (__attribute): Remove.
51185         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
51186         (re_string_context_at): Likewise.
51187         (bitset_not): Use __attribute__ and mark function as possibly
51188         unused.
51189         (bitset_merge): Likewise.
51190         (bitset_mask): Likewise.
51191         (re_string_char_size_at): Likewise.
51192         (re_string_wchar_at): Likewise.
51193         (re_string_elem_size_at): Likewise.
51194
51195 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
51196
51197         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
51198         code.
51199         (cc32): Likewise.
51200
51201         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
51202         (__acr): Likewise.
51203         (__cpy): Likewise.
51204         (norm): Likewise.
51205         (denorm): Likewise.
51206         (__dbl_mp): Likewise.
51207         (add_magnitudes): Likewise.
51208         (sub_magnitudes): Likewise.
51209         (__mul): Likewise.
51210         (__inv): Likewise.
51211
51212         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
51213         style.
51214
51215         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
51216         style.
51217
51218         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
51219         code.
51220
51221         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
51222         up changes with default code.
51223         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
51224         Likewise.
51225
51226 2013-02-24  Allan McRae  <allan@archlinux.org>
51227
51228         * manual/socket.texi (The Internet Namespace): Order menu items
51229         to match that in the file.
51230
51231         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
51232         node listing of the info page menu.
51233
51234 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
51235
51236         [BZ #13550]
51237         * sysdeps/i386/bp-asm.h: Remove file.
51238         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51239         (PARMS): Do not use macros from bp-asm.h.
51240         (S1): Likewise.
51241         (S2): Likewise.
51242         (SIZE): Likewise.
51243         (__mpn_add_n): Do not use BP_SYM
51244         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
51245         "bp-asm.h".
51246         (PARMS): Do not use macros from bp-asm.h.
51247         (S1): Likewise.
51248         (SIZE): Likewise.
51249         (__mpn_addmul_1): Do not use BP_SYM
51250         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
51251         "bp-asm.h".
51252         (PARMS): Do not use macros from bp-asm.h.
51253         (SIGMSK): Likewise.
51254         (_setjmp): Likewise.  Do not use BP_SYM.
51255         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
51256         "bp-asm.h".
51257         (PARMS): Do not use macros from bp-asm.h.
51258         (SIGMSK): Likewise.
51259         (setjmp): Likewise.  Do not use BP_SYM.
51260         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
51261         "bp-asm.h".
51262         (PARMS): Do not use macros from bp-asm.h.
51263         (__frexp): Do not use BP_SYM.
51264         (frexp): Likewise.
51265         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
51266         "bp-asm.h".
51267         (PARMS): Do not use macros from bp-asm.h.
51268         (__frexpf): Do not use BP_SYM.
51269         (frexpf): Likewise.
51270         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
51271         "bp-asm.h".
51272         (PARMS): Do not use macros from bp-asm.h.
51273         (__frexpl): Do not use BP_SYM.
51274         (frexpl): Likewise.
51275         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
51276         "bp-asm.h".
51277         (PARMS): Do not use macros from bp-asm.h.
51278         (__remquo): Do not use BP_SYM.
51279         (remquo): Likewise.
51280         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
51281         "bp-asm.h".
51282         (PARMS): Do not use macros from bp-asm.h.
51283         (__remquof): Do not use BP_SYM.
51284         (remquof): Likewise.
51285         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
51286         "bp-asm.h".
51287         (PARMS): Do not use macros from bp-asm.h.
51288         (__remquol): Do not use BP_SYM.
51289         (remquol): Likewise.
51290         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
51291         "bp-asm.h".
51292         (PARMS): Do not use macros from bp-asm.h.
51293         (DEST): Likewise.
51294         (SRC): Likewise.
51295         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
51296         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
51297         "bp-asm.h".
51298         (PARMS): Do not use macros from bp-asm.h.
51299         (strlen): Do not use BP_SYM.
51300         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
51301         "bp-asm.h".
51302         (PARMS): Do not use macros from bp-asm.h.
51303         (S1): Likewise.
51304         (S2): Likewise.
51305         (SIZE): Likewise.
51306         (__mpn_add_n): Do not use BP_SYM.
51307         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
51308         "bp-asm.h".
51309         (PARMS): Do not use macros from bp-asm.h.
51310         (S1): Likewise.
51311         (SIZE): Likewise.
51312         (__mpn_addmul_1): Do not use BP_SYM.
51313         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
51314         weak_alias.
51315         (bzero): Likewise.
51316         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
51317         "bp-asm.h".
51318         (PARMS): Do not use macros from bp-asm.h.
51319         (S): Likewise.
51320         (SIZE): Likewise.
51321         (__mpn_lshift): Do not use BP_SYM.
51322         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
51323         "bp-asm.h".
51324         (PARMS): Do not use macros from bp-asm.h.
51325         (DEST): Likewise.
51326         (SRC): Likewise.
51327         (LEN): Likewise.
51328         (memcpy): Likewise.  Do not use BP_SYM.
51329         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
51330         libc_hidden_def and weak_alias.
51331         (mempcpy): Do not use BP_SYM in weak_alias.
51332         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
51333         "bp-asm.h".
51334         (PARMS): Do not use macros from bp-asm.h.
51335         (DEST): Likewise.
51336         (LEN): Likewise.
51337         [!BZERO_P] (CHR): Likewise.
51338         (memset): Likewise.  Do not use BP_SYM.
51339         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
51340         "bp-asm.h".
51341         (PARMS): Do not use macros from bp-asm.h.
51342         (S1): Likewise.
51343         (SIZE): Likewise.
51344         (__mpn_mul_1): Do not use BP_SYM.
51345         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
51346         "bp-asm.h".
51347         (PARMS): Do not use macros from bp-asm.h.
51348         (S): Likewise.
51349         (SIZE): Likewise.
51350         (__mpn_rshift): Do not use BP_SYM.
51351         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
51352         "bp-asm.h".
51353         (PARMS): Do not use macros from bp-asm.h.
51354         (STR): Likewise.
51355         (CHR): Likewise.
51356         (strchr): Likewise.  Do not use BP_SYM.
51357         (index): Do not use BP_SYM in weak_alias.
51358         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
51359         "bp-asm.h".
51360         (PARMS): Do not use macros from bp-asm.h.
51361         (DEST): Likewise.
51362         (SRC): Likewise.
51363         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51364         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51365         "bp-asm.h".
51366         (PARMS): Do not use macros from bp-asm.h.
51367         (strlen): Do not use BP_SYM.
51368         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51369         "bp-asm.h".
51370         (PARMS): Do not use macros from bp-asm.h.
51371         (S1): Likewise.
51372         (S2): Likewise.
51373         (SIZE): Likewise.
51374         (__mpn_sub_n): Do not use BP_SYM.
51375         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51376         "bp-asm.h".
51377         (PARMS): Do not use macros from bp-asm.h.
51378         (S1): Likewise.
51379         (SIZE): Likewise.
51380         (__mpn_submul_1): Do not use BP_SYM.
51381         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51382         "bp-asm.h".
51383         (PARMS): Do not use macros from bp-asm.h.
51384         (S1): Likewise.
51385         (S2): Likewise.
51386         (SIZE): Likewise.
51387         (__mpn_add_n): Do not use BP_SYM.
51388         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51389         weak_alias.
51390         (bzero): Likewise.
51391         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51392         "bp-asm.h".
51393         (PARMS): Do not use macros from bp-asm.h.
51394         (BLK2): Likewise.
51395         (LEN): Likewise.
51396         (memcmp): Do not use BP_SYM.
51397         (bcmp): Do not use BP_SYM in weak_alias.
51398         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51399         "bp-asm.h".
51400         (PARMS): Do not use macros from bp-asm.h.
51401         (DEST): Likewise.
51402         (SRC): Likewise.
51403         (LEN): Likewise.
51404         (memcpy): Likewise.  Do not use BP_SYM.
51405         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51406         "bp-asm.h".
51407         (PARMS): Do not use macros from bp-asm.h.
51408         (DEST): Likewise.
51409         (SRC): Likewise.
51410         (LEN): Likewise.
51411         (memmove): Likewise.  Do not use BP_SYM.
51412         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
51413         "bp-asm.h".
51414         (PARMS): Do not use macros from bp-asm.h.
51415         (DEST): Likewise.
51416         (SRC): Likewise.
51417         (LEN): Likewise.
51418         (__mempcpy): Likewise.  Do not use BP_SYM.
51419         (mempcpy): Do not use BP_SYM in weak_alias.
51420         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51421         "bp-asm.h".
51422         (PARMS): Do not use macros from bp-asm.h.
51423         (DEST): Likewise.
51424         (LEN): Likewise.
51425         [!BZERO_P] (CHR): Likewise.
51426         (memset): Likewise.  Do not use BP_SYM.
51427         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51428         "bp-asm.h".
51429         (PARMS): Do not use macros from bp-asm.h.
51430         (STR2): Likewise.
51431         (strcmp): Do not use BP_SYM.
51432         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51433         "bp-asm.h".
51434         (PARMS): Do not use macros from bp-asm.h.
51435         (STR): Likewise.
51436         (DELIM): Likewise.
51437         [USE_AS_STRTOK_R] (SAVE): Likewise.
51438         (FUNCTION): Likewise.  Do not use BP_SYM.
51439         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51440         aliases.
51441         (strtok_r): Likewise.
51442         (__GI___strtok_r): Likewise.
51443         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51444         (PARMS): Do not use macros from bp-asm.h.
51445         (S): Likewise.
51446         (SIZE): Likewise.
51447         (__mpn_lshift): Do not use BP_SYM.
51448         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51449         (PARMS): Do not use macros from bp-asm.h.
51450         (STR): Likewise.
51451         (CHR): Likewise.
51452         (__memchr): Do not use BP_SYM.
51453         (memchr): Do not use BP_SYM in weak_alias.
51454         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51455         (PARMS): Do not use macros from bp-asm.h.
51456         (BLK2): Likewise.
51457         (LEN): Likewise.
51458         (memcmp): Do not use BP_SYM.
51459         (bcmp): Do not use BP_SYM in weak_alias.
51460         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51461         (PARMS): Do not use macros from bp-asm.h.
51462         (S1): Likewise.
51463         (SIZE): Likewise.
51464         (__mpn_mul_1): Do not use BP_SYM.
51465         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51466         "bp-asm.h".
51467         (PARMS): Do not use macros from bp-asm.h.
51468         (STR): Likewise.
51469         (CHR): Likewise.
51470         (__rawmemchr): Do not use BP_SYM.
51471         (rawmemchr): Do not use BP_SYM in weak_alias.
51472         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51473         (PARMS): Do not use macros from bp-asm.h.
51474         (S): Likewise.
51475         (SIZE): Likewise.
51476         (__mpn_rshift): Do not use BP_SYM.
51477         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51478         (PARMS): Do not use macros from bp-asm.h.
51479         (SIGMSK): Likewise.
51480         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51481         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51482         (_start): Do not use BP_SYM.
51483         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51484         (PARMS): Do not use macros from bp-asm.h.
51485         (DEST): Likewise.
51486         (SRC): Likewise.
51487         (__stpcpy): Likewise.  Do not use BP_SYM.
51488         (stpcpy): Do not use BP_SYM in weak_alias.
51489         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51490         "bp-asm.h".
51491         (PARMS): Do not use macros from bp-asm.h.
51492         (DEST): Likewise.
51493         (SRC): Likewise.
51494         (LEN): Likewise.
51495         (__stpncpy): Likewise.  Do not use BP_SYM.
51496         (stpncpy): Do not use BP_SYM in weak_alias.
51497         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51498         (PARMS): Do not use macros from bp-asm.h.
51499         (STR): Likewise.
51500         (CHR): Likewise.
51501         (strchr): Likewise.  Do not use BP_SYM.
51502         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51503         "bp-asm.h".
51504         (PARMS): Do not use macros from bp-asm.h.
51505         (STR): Likewise.
51506         (CHR): Likewise.
51507         (__strchrnul): Likewise.  Do not use BP_SYM.
51508         (strchrnul): Do not use BP_SYM in weak_alias.
51509         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51510         "bp-asm.h".
51511         (PARMS): Do not use macros from bp-asm.h.
51512         (STOP): Likewise.
51513         (strcspn): Do not use BP_SYM.
51514         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51515         "bp-asm.h".
51516         (PARMS): Do not use macros from bp-asm.h.
51517         (STR): Likewise.
51518         (STOP): Likewise.
51519         (strpbrk): Likewise.  Do not use BP_SYM.
51520         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51521         "bp-asm.h".
51522         (PARMS): Do not use macros from bp-asm.h.
51523         (STR): Likewise.
51524         (CHR): Likewise.
51525         (strrchr): Likewise.  Do not use BP_SYM.
51526         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51527         (PARMS): Do not use macros from bp-asm.h.
51528         (SKIP): Likewise.
51529         (strspn): Do not use BP_SYM.
51530         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51531         (PARMS): Do not use macros from bp-asm.h.
51532         (STR): Likewise.
51533         (DELIM): Likewise.
51534         (SAVE): Likewise.
51535         (FUNCTION): Likewise.  Do not use BP_SYM.
51536         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51537         aliases.
51538         (strtok_r): Likewise.
51539         (__GI___strtok_r): Likewise.
51540         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51541         (PARMS): Do not use macros from bp-asm.h.
51542         (S1): Likewise.
51543         (S2): Likewise.
51544         (SIZE): Likewise.
51545         (__mpn_sub_n): Do not use BP_SYM.
51546         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51547         "bp-asm.h".
51548         (PARMS): Do not use macros from bp-asm.h.
51549         (S1): Likewise.
51550         (SIZE): Likewise.
51551         (__mpn_submul_1): Do not use BP_SYM.
51552         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51553         <bp-sym.h>.
51554         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51555         and <bp-asm.h>.
51556         (PARMS): Do not use macros from bp-asm.h.
51557         (FLAGS): Likewise.
51558         (PTID): Likewise.
51559         (TLS): Likewise.
51560         (CTID): Likewise.
51561         (__clone): Do not use BP_SYM.
51562         (clone): Do not use BP_SYM in weak_alias.
51563         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51564         and <bp-asm.h>.
51565         (PARMS): Do not use macros from bp-asm.h.
51566         (LEN): Likewise.
51567         (__mmap64): Do not use BP_SYM.
51568         (mmap64): Do not use BP_SYM in weak_alias.
51569         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51570         <bp-sym.h> and <bp-asm.h>.
51571         (PARMS): Do not use macros from bp-asm.h.
51572         (__posix_fadvise64_l64): Do not use BP_SYM.
51573         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51574         (PARMS): Do not use macros from bp-asm.h.
51575         (NSOPS): Likewise.
51576         (semtimedop): Do not use BP_SYM.
51577         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51578         and <bp-asm.h>.
51579
51580 2013-02-21  Allan McRae  <allan@archlinux.org>
51581
51582         * manual/message.texi (Charset conversion in gettext):
51583         Move @end statement to beginning of line.
51584
51585 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51586
51587         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51588         static.
51589         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51590         Likewise.
51591
51592         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51593         (denorm): Likewise.
51594         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51595         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51596
51597 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51598
51599         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51600         tail-call to the resolved function if pltexit isn't needed.
51601
51602 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51603
51604         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51605         or Y being zero as being unlikely.
51606         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51607         Likewise.
51608
51609 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51610
51611         * manual/nss.texi (System Databases and Name Service Switch):
51612         Remove frobnicate @pxref.
51613
51614 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51615
51616         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51617         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51618
51619 2013-02-20  Petr Machata  <pmachata@redhat.com>
51620
51621         * elf/elf.h (R_ARM_TARGET1): New macro.
51622         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51623         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51624         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51625         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51626         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51627         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51628         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51629         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51630         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51631         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51632         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51633         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51634         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51635         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51636         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51637         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51638         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51639         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51640         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51641         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51642         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51643         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51644         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51645         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51646         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51647         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51648         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51649         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51650         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51651         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51652         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51653         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51654         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51655         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51656         (R_ARM_THM_GOT_BREL12): Likewise.
51657         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51658         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51659         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51660         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51661         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51662         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51663         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51664         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51665         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51666
51667 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51668
51669         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51670         __attribute_used__ to __attribute__ ((unused)).
51671
51672 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51673
51674         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51675         powerpc mpa.c.
51676         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51677         comment formatting.
51678         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51679
51680 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51681
51682         [BZ #13550]
51683         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51684         Remove macro.
51685         (ENTER): Remove both macro definitions.
51686         (LEAVE): Likewise.
51687         (CHECK_BOUNDS_LOW): Likewise.
51688         (CHECK_BOUNDS_HIGH): Likewise.
51689         (CHECK_BOUNDS_BOTH): Likewise.
51690         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51691         (RETURN_BOUNDED_POINTER): Likewise.
51692         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51693         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51694         (POP_ERRNO_LOCATION_RETURN): Likewise.
51695         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51696         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51697         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51698         macros.
51699         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51700         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51701         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51702         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51703         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51704         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51705         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51706         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51707         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51708         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51709         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51710         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51711         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51712         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51713         removed macros.
51714         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51715         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51716         macros.
51717         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51718         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51719         * sysdeps/i386/i586/memset.S (memset): Likewise.
51720         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51721         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51722         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51723         macros.
51724         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51725         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51726         Change uses of L(2) to L(out).
51727         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51728         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51729         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51730         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51731         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51732         removed macros.
51733         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51734         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51735         macros.
51736         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51737         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51738         (RETURN): Do not use macro LEAVE.
51739         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51740         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51741         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51742         * sysdeps/i386/i686/memset.S (memset): Likewise.
51743         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51744         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51745         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51746         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51747         Likewise.
51748         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51749         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51750         L(1_2) and L(1_3) into L(1).
51751         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51752         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51753         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51754         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51755         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51756         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51757         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51758         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51759         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51760         macros.
51761         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51762         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51763         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51764         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51765         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51766         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51767         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51768         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51769         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51770         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51771         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51772         * sysdeps/i386/strspn.S (strspn): Likewise.
51773         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51774         conditional code.
51775         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51776         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51777         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51778         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51779         L(1_3) into L(1_1).
51780         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51781         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51782         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51783         macros.
51784         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51785
51786 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51787
51788         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51789         macro.
51790
51791 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51792
51793         * math/atest-exp.c (exp_mpn): Remove ROUND.
51794         * math/atest-exp2.c (exp_mpn): Likewise.
51795         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51796
51797         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51798         * stdlib/tst-tls-atexit-lib.c: Likewise.
51799         * stdlib/tst-tls-atexit.c: Likewise.
51800
51801 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51802
51803         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51804         and __attribute_alloc_size__.
51805
51806 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51807
51808         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51809         __attribute_alloc_size__.
51810         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51811         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51812
51813 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51814
51815         * include/programs/xmalloc.h: New file.
51816         * catgets/gencat.c: Include it.
51817         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51818         * elf/pldd.c: Likewise.
51819         * iconv/iconv_charmap.c: Likewise.
51820         * iconv/iconvconfig.c: Likewise.
51821         * iconv/strtab.c: Likewise.
51822         * locale/programs/locale.c: Likewise.
51823         * locale/programs/localedef.h: Likewise.
51824         * locale/programs/simple-hash.c: Likewise.
51825         * nscd/nscd.h: Likewise.
51826         * nss/makedb.c: Likewise.
51827         * sysdeps/generic/ldconfig.h: Likewise.
51828
51829 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51830
51831         * Versions.def: Add GLIBC_2.18.
51832         * include/link.h (struct link_map): New member l_tls_dtor_count.
51833         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51834         (__call_tls_dtors): Likewise.
51835         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51836         __cxa_thread_atexit_impl.
51837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51838         Likewise.
51839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51840         Likewise.
51841         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51842         Likewise.
51843         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51844         Likewise.
51845         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51846         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51847         Likewise.
51848         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51849         Likewise.
51850         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51851         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51852         Likewise.
51853         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51854         (tests): Add test case tst-tls-atexit.
51855         (modules-names): Add shared library for tst-tls-atexit.
51856         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51857         (GLIBC_PRIVATE): Add __call_tls_dtors.
51858         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51859         for libstdc++.
51860         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51861         * stdlib/tst-tls-atexit.c: New test case.
51862         * stdlib/tst-tls-atexit-lib.c: New test case.
51863
51864         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51865
51866         * elf/Versions (ld): Add _dl_find_dso_for_object.
51867         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51868         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51869         (dl_open_worker): Use _dl_find_dso_for_object.
51870         * elf/dl-sym.c (do_sym): Likewise.
51871         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51872
51873 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51874
51875         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51876         Syntactic changes only.
51877         (_dl_runtime_profile): Do a tail-call to the resolved function.
51878
51879 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51880
51881         [BZ #13550]
51882         * sysdeps/x86_64/bp-asm.h: Remove file.
51883         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51884         <bp-sym.h> and <bp-asm.h>.
51885         (__clone): Do not use BP_SYM.
51886         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51887         <bp-sym.h> and <bp-asm.h>.
51888         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51889         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51890         "bp-asm.h".
51891         (_setjmp): Do not use BP_SYM.
51892         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51893         "bp-asm.h".
51894         (setjmp): Do not use BP_SYM.
51895         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51896         libc_hidden_def.
51897         (mempcpy): Do not use BP_SYM in weak_alias.
51898         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51899         "bp-asm.h".
51900         (strchr): Do not use BP_SYM.
51901         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51902         "bp-asm.h".
51903         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51904         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51905         (_start): Do not use BP_SYM.
51906         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51907         "bp-asm.h".
51908         (strcat): Do not use BP_SYM.
51909         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51910         "bp-asm.h".
51911         (STRCMP): Do not use BP_SYM.
51912         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51913         "bp-asm.h".
51914         (STRCPY): Do not use BP_SYM.
51915         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51916         "bp-asm.h".
51917         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51918         "bp-asm.h".
51919         (FUNCTION): Do not use BP_SYM.
51920         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51921         weak_alias.
51922         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51923
51924 2013-02-17  Andreas Jaeger  <aj@suse.de>
51925
51926         * time/Versions: Sort entries.
51927         * string/Versions: Likewise.
51928         * resolv/Versions: Likewise.
51929         * posix/Versions: Likewise.
51930         * iconv/Versions: Likewise.
51931         * elf/Versions: Likewise.
51932         * wcsmbs/Versions: Likewise.
51933
51934 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51935
51936         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51937         loop termination condition.
51938
51939         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51940         variable to calculate EZ.
51941         (__sqr): Likewise.
51942
51943         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51944         the lower precision input.
51945
51946 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51947
51948         [BZ #13550]
51949         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51950         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51951         (run-via-rtld-prefix): Do not handle %-bp tests.
51952         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51953         (all-object-suffixes): Remove .ob.
51954         (bppfx): Remove variable.
51955         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51956         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51957         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51958         [$(build-bounded) = yes] (libtype.ob): Likewise.
51959         * Makerules (elide-routines.ob): Remove variable.
51960         (do-tests-clean): Do not handle *-bp.out.
51961         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51962         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51963         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51964         (tests): Do not include $(tests-bp.out).
51965         (xtests): Do not include $(xtests-bp.out).
51966         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51967         [$(build-bounded) = yes] ($(addprefix
51968         $(objpfx),$(binaries-bounded))): Remove rule.
51969         ($(objpfx)%-bp.out): Remove rule.
51970         * config.make.in (build-bounded): Remove variable.
51971         * crypt/Makefile [$(build-bounded) = yes]
51972         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51973         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51974         append to variable.
51975         [$(build-bounded) = yes] (install-lib): Likewise.
51976         [$(build-bounded) = yes] (generated): Likewise.
51977         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51978         Remove rule.
51979         * intl/Makefile [$(build-bounded) = yes]
51980         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51981         * math/Makefile [$(build-bounded) = yes]
51982         ($(tests:%=$(objpfx)%-bp): Likewise.
51983         * misc/Makefile [$(build-bounded) = yes]
51984         ($(objpfx)tst-tsearch-bp): Likewise.
51985         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51986         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51987         Remove dependency.
51988         * string/Makefile (o-objects.ob): Remove variable.
51989         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51990         (CFLAGS-.ob): Remove variable.
51991         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51992         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51993         both definitions of variable.
51994         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51995         (ASFLAGS-.ob): Remove variable.
51996
51997 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51998
51999         [BZ #13550]
52000         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
52001         Remove __BOUNDED_POINTERS__ from condition.
52002         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
52003         * string/bits/string2.h [!__NO_STRING_INLINES &&
52004         !__BOUNDED_POINTERS__]: Likewise.
52005         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
52006         Likewise.
52007         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
52008         Remove conditional code.
52009         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
52010         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
52011         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
52012         condition.
52013
52014         [BZ #13550]
52015         * csu/libc-start.c: Do not include <bp-sym.h>.
52016         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
52017         * elf/dl-open.c: Do not include <bp-sym.h>.
52018         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
52019         * math/fegetenv.c: Do not include <bp-sym.h>.
52020         (fegetenv): Do not use BP_SYM in versioned symbols.
52021         * nptl/sysdeps/pthread/bits/libc-lockP.h
52022         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
52023         <bp-sym.h>.
52024         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52025         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
52026         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52027         (__pthread_mutex_destroy): Likewise.
52028         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52029         (__pthread_mutex_lock): Likewise.
52030         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52031         (__pthread_mutex_trylock): Likewise.
52032         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52033         (__pthread_mutex_unlock): Likewise.
52034         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52035         (__pthread_mutexattr_init): Likewise.
52036         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52037         (__pthread_mutexattr_destroy): Likewise.
52038         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52039         (__pthread_mutexattr_settype): Likewise.
52040         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52041         (__pthread_rwlock_init): Likewise.
52042         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52043         (__pthread_rwlock_destroy): Likewise.
52044         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52045         (__pthread_rwlock_rdlock): Likewise.
52046         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52047         (__pthread_rwlock_tryrdlock): Likewise.
52048         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52049         (__pthread_rwlock_wrlock): Likewise.
52050         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52051         (__pthread_rwlock_trywrlock): Likewise.
52052         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52053         (__pthread_rwlock_unlock): Likewise.
52054         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52055         (__pthread_key_create): Likewise.
52056         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52057         (__pthread_setspecific): Likewise.
52058         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52059         (__pthread_getspecific): Likewise.
52060         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
52061         Likewise.
52062         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52063         (_pthread_cleanup_push_defer): Likewise.
52064         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52065         (_pthread_cleanup_pop_restore): Likewise.
52066         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52067         (pthread_setcancelstate): Likewise.
52068         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
52069         <bp-sym.h>.
52070         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
52071         (memchr): Do not use BP_SYM in weak_alias.
52072         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
52073         (fegetenv): Do not use BP_SYM in versioned symbols.
52074         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
52075         (fesetenv): Do not use BP_SYM in versioned symbols.
52076         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52077         (feupdateenv): Do not use BP_SYM in versioned symbols.
52078         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52079         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52080         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
52081         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
52082         (open64): Do not use BP_SYM in weak_alias.
52083         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
52084         (fegetenv): Do not use BP_SYM in versioned symbols.
52085         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
52086         (fesetenv): Do not use BP_SYM in versioned symbols.
52087         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52088         (feupdateenv): Do not use BP_SYM in versioned symbols.
52089         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
52090         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
52091         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
52092         (feraiseexcept): Do not use BP_SYM in versioned symbols.
52093         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52094         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52095         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
52096         <bp-sym.h>.
52097         (__libc_start_main): Do not use BP_SYM.
52098
52099 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52100
52101         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
52102         redundant return line.
52103         (norm): Likewise.
52104         (denorm): Likewise.
52105         (dbl_mp): Likewise.
52106         (sub_magnitudes): Likewise.
52107         (__add): Likewise.
52108         (__sub): Likewise.
52109         (__mul): Likewise.
52110         (__inv): Likewise.
52111         (__dvd): Likewise.
52112         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
52113         (norm): Likewise.
52114         (denorm): Likewise.
52115         (dbl_mp): Likewise.
52116         (sub_magnitudes): Likewise.
52117         (__add): Likewise.
52118         (__sub): Likewise.
52119         (__mul): Likewise.
52120         (__inv): Likewise.
52121         (__dvd): Likewise.
52122
52123         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
52124         instead of __mul.
52125         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
52126         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
52127         (cc32): Likewise.
52128
52129         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
52130         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
52131         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
52132         of __mul for squares.
52133         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
52134         function
52135         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
52136         Likewise.
52137         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
52138         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
52139
52140 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
52141
52142         [BZ #13550]
52143         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
52144         code.
52145         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
52146         prototype or function definition.  Rename ubp_* variables and
52147         parameters.  Remove argv definitions conditional on
52148         [__BOUNDED_POINTERS__].
52149         * debug/backtrace.c (__backtrace): Do not use __unbounded.
52150         * elf/dl-runtime.c (_dl_fixup): Likewise.
52151         * include/set-hooks.h (RUN_HOOK): Likewise.
52152         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
52153         definition.
52154         * string/strcpy.c (strcpy): Do not use __unbounded.
52155         * sysdeps/generic/frame.h (struct layout): Likewise.
52156         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
52157         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
52158         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
52159         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
52160         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
52161         (__backtrace): Likewise.
52162         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
52163         use __ptrvalue.
52164         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
52165         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52166         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
52167         Likewise.
52168         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
52169         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
52170         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52171         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52172         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
52173         Do not use __unbounded.
52174         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
52175         Rename __unboundedrlimits parameter to rlimits in prototype.
52176         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
52177         Do not use __unbounded.
52178         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
52179         not use __ptrvalue.
52180         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52181         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
52182         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52183         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
52184         __ptrvalue or __unbounded.
52185         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
52186         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
52187         use __unbounded.
52188         (__new_msgctl): Do not use __ptrvalue.
52189         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
52190         __unbounded.
52191         (__libc_msgrcv): Do not use __ptrvalue.
52192         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
52193         startup_info): Do not use __unbounded.
52194         (__libc_start_main): Likewise.  Rename ubp_* variables and
52195         parameters.  Remove argv definitions conditional on
52196         [__BOUNDED_POINTERS__].
52197         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
52198         __ptrvalue.
52199         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
52200         use __unbounded.
52201         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
52202         or __ptrvalue.
52203         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
52204         use __unbounded.
52205         (__new_shmctl): Do not use __ptrvalue.
52206         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
52207         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
52208         Likewise.
52209         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
52210         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
52211         (__libc_sigaction): Likewise.
52212         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
52213         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
52214         Likewise.
52215         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52216
52217 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
52218
52219         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
52220
52221         * string/mempcpy.c: Implement by calling memcpy.
52222
52223 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52224
52225         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
52226
52227         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
52228         evaluation.
52229
52230         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
52231         values in the mantissa.
52232
52233         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
52234         minimize writes to Z.
52235         (sub_magnitudes): Simplify code a bit.
52236
52237 2013-02-12  Roland McGrath  <roland@hack.frob.com>
52238
52239         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
52240         from the message.  The linker prefixes all warnings with that already.
52241
52242 2013-02-12  Andreas Schwab  <schwab@suse.de>
52243
52244         [BZ #15078]
52245         * posix/regexec.c (extend_buffers): Add parameter min_len.
52246         (check_matching): Pass minimum needed length.
52247         (clean_state_log_if_needed): Likewise.
52248         (get_subexp): Likewise.
52249         * posix/Makefile (tests): Add bug-regex34.
52250         (bug-regex34-ENV): Define.
52251         * posix/bug-regex34.c: New file.
52252
52253         [BZ #11561]
52254         * posix/regcomp.c (parse_bracket_exp): When looking up collating
52255         elements compare against the byte sequence of it, not its name.
52256         * posix/Makefile (tests): Add bug-regex35.
52257         (bug-regex35-ENV): Define.
52258         * posix/bug-regex35.c: New file.
52259
52260 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52261
52262         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
52263         comment.
52264         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
52265         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
52266         (CHECK_EOL): Add undef.
52267
52268 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
52269
52270         * bits/stdlib-bsearch.h: New file.
52271         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
52272         * stdlib/stdlib.h: Likewise.
52273
52274 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52275
52276         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
52277         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
52278         declaration.
52279         * manual/search.texi (Array Search Function): Add missing const in
52280         lfind prototype.
52281         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
52282         declaration to use rlim_t.
52283         (Basic Scheduling Functions): Remove erroneous const from
52284         sched_getparam prototype.  Remove erroneous * from
52285         sched_get_priority_max and sched_get_priority_min prototypes.
52286         (Resource Usage): Fix summary @comment on vtimes to refer to
52287         sys/vtimes.h rather than vtimes.h.
52288         Add missing *s in vtimes prototype.
52289         (Limits on Resources): Fix ulimit prototype to return long int.
52290         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
52291         prototypes to use long int rather than double.
52292         (BSD Random): Fix initstate and setstate to use char *, not void *.
52293         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
52294         prototype to make second argument 'struct aiocb64 *const[]'.
52295         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
52296         (Status of AIO Operations): Remove erroneous const in aio_return and
52297         aio_return64 prototypes.
52298         (Synchronizing I/O): Fix sync prototype to return void.
52299         * manual/startup.texi (Suboptions): Remove an erroneous const in
52300         getsubopt prototype.
52301         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
52302         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
52303         use size_t rather than int.
52304         (Scanning All Users): Likewise for getpwent_r.
52305         (Setting Groups): Add missing const to setgroups prototype.
52306         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
52307         * manual/socket.texi (Host Names): Fix gethostbyaddr and
52308         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
52309         'const void *' rather than 'const char *'.
52310         (Host Address Functions): Likewise for inet_ntop.
52311         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
52312         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
52313         ssize_t for return value.
52314         (Sending Data): Likewise for send, sendto, sendmsg.
52315         (Socket Option Functions): Add a missing const in setsockopt prototype.
52316         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
52317         use wchar_t for the argument.
52318         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
52319         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
52320         take no arguments.
52321         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
52322         double/float/long double for second argument.
52323         Fix return types of significand, significandf, significandl.
52324         * manual/filesys.texi (Setting Permissions): Use mode_t for second
52325         argument in fchmod prototype.
52326         (File Owner): Use uid_t and gid_t in fchown prototype.
52327         (File Times): Add const to utimes, futimes, and lutimes prototypes.
52328         (Making Special Files): Use mode_t and dev_t in mknod prototype.
52329         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
52330         use 'const struct dirent **' as argument types to CMP function pointer
52331         argument.
52332         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
52333         (File Times): Fix summary magic @comment for struct utimbuf and utime
52334         to refer to utime.h, not time.h.
52335         * manual/string.texi (Argz Functions): Add missing const in
52336         argz_extract and argz_next prototypes.
52337         (Finding Tokens in a String): Likewise for basename.
52338         (String/Array Comparison): Fix typo in wcscasecmp prototype.
52339         (Copying and Concatenation): Fix typo in wmemmove prototype.
52340         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
52341         (Signal Stack): Remove erroneous const in sigstack prototype.
52342         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
52343         prototype.
52344         (Simple Calendar Time): Likewise for stime.
52345         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
52346         prototype.
52347         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
52348         say sys/sysctl.h instead.
52349         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
52350         and vsyslog prototypes.
52351
52352 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52353
52354         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
52355         Remove.
52356
52357 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52358
52359         * misc/sys/mman.h: Fix typo in mremap comment.
52360
52361 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52362
52363         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52364         the '\0' terminator.
52365
52366 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52367
52368         [BZ #13550]
52369         * debug/segfault.c: Don't include <bp-checks.h>.
52370         * sysdeps/generic/bp-checks.h: Remove file.
52371         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52372         (__GETDENTS): Don't use CHECK_N.
52373         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52374         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52375         (__getgroups): Don't use CHECK_N.
52376         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52377         (setgroups): Don't use CHECK_N.
52378         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52379         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52380         (__libc_msgrcv): Don't use CHECK_N.
52381         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52382         (__libc_msgsnd): Don't use CHECK_N.
52383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52384         <bp-checks.h>.
52385         (__libc_pread): Don't use CHECK_N.
52386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52387         include <bp-checks.h>.
52388         (__libc_pread64): Don't use CHECK_N.
52389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52390         include <bp-checks.h>.
52391         (__libc_pwrite): Don't use CHECK_N.
52392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52393         include <bp-checks.h>.
52394         (__libc_pwrite64): Don't use CHECK_N.
52395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52396         <bp-checks.h>.
52397         (__libc_pread): Don't use CHECK_N.
52398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52399         include <bp-checks.h>.
52400         (__libc_pread64): Don't use CHECK_N.
52401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52402         include <bp-checks.h>.
52403         (__libc_pwrite): Don't use CHECK_N.
52404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52405         include <bp-checks.h>.
52406         (__libc_pwrite64): Don't use CHECK_N.
52407         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52408         (do_pread): Don't use CHECK_N.
52409         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52410         (do_pread64): Don't use CHECK_N.
52411         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52412         (do_pwrite): Don't use CHECK_N.
52413         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52414         (do_pwrite64): Don't use CHECK_N.
52415         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52416         (__libc_readv): Don't use CHECK_N.
52417         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52418         (semop): Don't use CHECK_N.
52419         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52420         <bp-checks.h>.
52421         (semtimedop): Don't use CHECK_N.
52422         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52423         (__libc_pread): Don't use CHECK_N.
52424         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52425         <bp-checks.h>.
52426         (__libc_pread64): Don't use CHECK_N.
52427         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52428         <bp-checks.h>.
52429         (__libc_pwrite): Don't use CHECK_N.
52430         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52431         <bp-checks.h>.
52432         (__libc_pwrite64): Don't use CHECK_N.
52433         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52434         <bp-checks.h>.
52435         (__libc_msgrcv): Don't use CHECK_N.
52436         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52437         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52438         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52439         (__libc_writev): Don't use CHECK_N.
52440
52441 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52442
52443         * string/strcpy.c: Removed unused variable.
52444
52445         * Makeconfig (+sysdep-includes): Define with := rather than =.
52446         Use an existing include/ subdir of each sysdeps dir before it.
52447
52448 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52449
52450         * nscd/connection.c (register_traced_file): Comment function.
52451         [HAVE_INOTIFY] (union __inev): Define.
52452         [HAVE_INOTIFY] (inotify_check_files): New function.
52453         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52454         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52455         clear_db_cache.
52456         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52457
52458 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52459
52460         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52461         loaded if not already and that a failure is permanent.
52462
52463 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52464
52465         [BZ #15006]
52466         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52467         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52468
52469 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52470
52471         [BZ #13550]
52472         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52473         (CHECK_1_NULL_OK): Likewise.
52474         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52475         (__fxstat): Do not use CHECK_1.
52476         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52477         <bp-checks.h>.
52478         (___fxstat64): Do not use CHECK_1.
52479         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52480         <bp-checks.h>.
52481         (__fxstatat): Do not use CHECK_1.
52482         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52483         <bp-checks.h>.
52484         (__fxstatat64): Do not use CHECK_1.
52485         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52486         <bp-checks.h>.
52487         (__fxstat): Do not use CHECK_1.
52488         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52489         <bp-checks.h>.
52490         (__fxstatat): Do not use CHECK_1.
52491         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52492         <bp-checks.h>.
52493         (__getresgid): Do not use CHECK_1.
52494         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52495         <bp-checks.h>.
52496         (__getresuid): Do not use CHECK_1.
52497         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52498         <bp-checks.h>.
52499         (__lxstat): Do not use CHECK_1.
52500         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52501         <bp-checks.h>.
52502         (__old_msgctl): Do not use CHECK_1.
52503         (__new_msgctl): Likewise.
52504         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52505         <bp-checks.h>.
52506         (__new_setrlimit): Do not use CHECK_1.
52507         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52508         <bp-checks.h>.
52509         (__old_shmctl): Do not use CHECK_1.
52510         (__new_shmctl): Likewise.
52511         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52512         <bp-checks.h>.
52513         (__xstat): Do not use CHECK_1.
52514         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52515         (__lxstat): Do not use CHECK_1.
52516         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52517         <bp-checks.h>.
52518         (___lxstat64): Do not use CHECK_1.
52519         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52520         (__old_msgctl): Do not use CHECK_1.
52521         (__new_msgctl): Likewise.
52522         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52523         <bp-checks.h>.
52524         (__gettimeofday): Do not use CHECK_1.
52525         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52526         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52527         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52528         <bp-checks.h>.
52529         (__gettimeofday): Do not use CHECK_1.
52530         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52531         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52532         (__new_shmctl): Do not use CHECK_1.
52533         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52534         <bp-checks.h>.
52535         (do_sigtimedwait): Do not use CHECK_1.
52536         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52537         <bp-checks.h>.
52538         (do_sigwaitinfo): Do not use CHECK_1.
52539         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52540         <bp-checks.h>.
52541         (msgctl): Do not use CHECK_1.
52542         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52543         <bp-checks.h>.
52544         (shmctl): Do not use CHECK_1.
52545         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52546         (ustat): Do not use CHECK_1.
52547         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52548         <bp-checks.h>.
52549         (__fxstat): Do not use CHECK_1.
52550         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52551         <bp-checks.h>.
52552         (__fxstatat): Do not use CHECK_1.
52553         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52554         <bp-checks.h>.
52555         (__lxstat): Do not use CHECK_1.
52556         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52557         <bp-checks.h>.
52558         (__xstat): Do not use CHECK_1.
52559         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52560         (__xstat): Do not use CHECK_1.
52561         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52562         (___xstat64): Do not use CHECK_1.
52563
52564         [BZ #13550]
52565         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52566         definitions.
52567         (CHECK_BOUNDS_HIGH): Likewise.
52568         * string/strcpy.c: Do not include <bp-checks.h>.
52569         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52570
52571 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52572
52573         * nscd/nscd-client.h (__nscd_drop_map_ref):
52574         Add __attribute__ ((unused)).
52575         * nis/nss-nisplus.h (niserr2nss): Likewise.
52576
52577         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52578         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52579
52580         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52581         Remove inline keyword.
52582         * include/rounding-mode.h (round_away): Likewise.
52583         * libio/wfileops.c (adjust_wide_data): Likewise.
52584         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52585         (__m128i_strloadu_tolower): Likewise.
52586         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52587         (__m128i_strloadu_tolower): Likewise.
52588         * time/mktime.c (ydhms_diff): Likewise.
52589         * locale/elem-hash.h (elem_hash): Likewise.
52590         * locale/setlocale.c (setdata): Likewise.
52591         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52592         (re_string_wchar_at): Likewise.
52593         (bitset_not, bitset_merge, bitset_mask): Likewise.
52594         [!(__GNUC__ > 3)] (inline): Remove macro.
52595         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52596         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52597         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52598         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52599         * string/memcmp.c (memcmp_bytes): Likewise.
52600         * locale/programs/locarchive.c (compute_hashval): Likewise.
52601         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52602         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52603         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52604         * nss/getent.c (print_rpc, print_protocols): Likewise.
52605         (print_passwd, print_group, print_aliases): Likewise.
52606         * nis/nss-nisplus.h (niserr2nss): Likewise.
52607         * nscd/connections.c (restart_p): Likewise.
52608         Change return type to bool.
52609
52610 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52611
52612         * Makeconfig (all-Depend-files): Add existing
52613         $(sorted-subdirs:=/Depend) files.
52614         (all-subdirs): Remove nss.
52615         * sysdeps/unix/inet/Subdirs: Add it here instead.
52616         * hesiod/Depend: New file.
52617
52618         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52619         instead of calling alloca.
52620
52621         * io/lseek.c (__lseek): Rename to __libc_lseek.
52622         Define __lseek as an alias.
52623
52624         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52625
52626 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52627
52628         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52629         else clause and remove check for non-standard endianness.
52630
52631 2013-02-04  David S. Miller  <davem@davemloft.net>
52632
52633         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52634
52635 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52636
52637         [BZ #13550]
52638         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52639         (__ubp_memchr): Remove prototype.
52640         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52641         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52642         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52643         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52644         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52645         Remove alias.
52646         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52647         (__ubp_memchr): Likewise.
52648         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52649         (__ubp_memchr): Likewise.
52650         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52651         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52652         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52653         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52654         CHECK_STRING.
52655         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52656         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52657         (__getcwd): Do not use CHECK_STRING.
52658         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52659         <bp-checks.h>.
52660         (__real_chown): Do not use CHECK_STRING.
52661         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52662         <bp-checks.h>.
52663         (fchownat): Do not use CHECK_STRING.
52664         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52665         CHECK_STRING.
52666         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52667         <bp-checks.h>.
52668         (__lchown): Do not use CHECK_STRING.
52669         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52670         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52671         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52672         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52674         include <bp-checks.h>.
52675         (truncate64): Do not use CHECK_STRING.
52676         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52677         <bp-checks.h>.
52678         (__real_chown): Do not use CHECK_STRING.
52679         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52680         <bp-checks.h>.
52681         (__lchown): Do not use CHECK_STRING.
52682         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52683         <bp-checks.h>.
52684         (__chown): Do not use CHECK_STRING.
52685         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52686         <bp-checks.h>.
52687         (truncate64): Do not use CHECK_STRING.
52688         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52689         Likewise.
52690         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52691         (__xmknod): Do not use CHECK_STRING.
52692         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52693         <bp-checks.h>.
52694         (__xmknodat): Do not use CHECK_STRING.
52695         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52696         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52697
52698 2013-02-04  Andreas Schwab  <schwab@suse.de>
52699
52700         [BZ #14142]
52701         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52702         * include/netdb.h: Likewise for h_errno.
52703         * elf/tst-stackguard1.c: Include <tls.h>.
52704
52705 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52706
52707         * elf/link.h (struct link_map): Extend the l_addr comment.
52708         * include/link.h (struct link_map): Likewise.
52709
52710 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52711
52712         [BZ #13550]
52713         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52714         (BOUNDED_1): Remove macro.
52715         * debug/backtrace.c: Don't include <bp-checks.h>.
52716         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52717         (__backtrace): Likewise.
52718         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52719         <bp-checks.h>.
52720         (__backtrace): Don't use BOUNDED_1.
52721         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52722         <bp-checks.h>.
52723         (__backtrace): Don't use BOUNDED_1.
52724         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52725         (__backtrace): Don't use BOUNDED_1.
52726         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52727         (shmat): Don't use BOUNDED_N.
52728
52729 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52730
52731         [BZ #13550]
52732         * sysdeps/generic/bp-start.h: Remove file.
52733         * csu/libc-start.c: Don't include <bp-start.h>.
52734         (LIBC_START_MAIN): Set up __environ directly instead of using
52735         INIT_ARGV_and_ENVIRON.
52736         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52737         <bp-start.h>.
52738
52739         [BZ #13550]
52740         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52741         definitions.
52742         (CHECK_FCNTL): Likewise.
52743         (CHECK_N_PAGES): Likewise.
52744
52745         [BZ #13550]
52746         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52747         definitions.
52748         (CHECK_SIGSET_NULL_OK): Likewise.
52749         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52750         <bp-checks.h>.
52751         (sigpending): Don't use CHECK_SIGSET.
52752         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52753         <bp-checks.h>.
52754         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52755         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52756         <bp-checks.h>.
52757         (do_sigsuspend): Don't use CHECK_SIGSET.
52758         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52759         use CHECK_SIGSET.
52760         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52761         (do_sigwait): Don't use CHECK_SIGSET.
52762         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52763         use CHECK_SIGSET.
52764         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52765         include <bp-checks.h>.
52766         (sigpending): Don't use CHECK_SIGSET.
52767         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52768         include <bp-checks.h>.
52769         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52770         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52771         <bp-checks.h>.
52772         (sigpending): Don't use CHECK_SIGSET.
52773         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52774         <bp-checks.h>.
52775         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52776
52777         [BZ #13550]
52778         * sysdeps/generic/bp-semctl.h: Remove file.
52779         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52780         <bp-checks.h> and <bp-semctl.h>.
52781         (__old_semctl): Don't use CHECK_SEMCTL.
52782         (__new_semctl): Likewise.
52783         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52784         and <bp-semctl.h>.
52785         (__old_semctl): Don't use CHECK_SEMCTL.
52786         (__new_semctl): Likewise.
52787         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52788         <bp-checks.h> and <bp-semctl.h>.
52789         (__old_semctl): Don't use CHECK_SEMCTL.
52790         (__new_semctl): Likewise.
52791         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52792         <bp-checks.h> and <bp-semctl.h>.
52793         (semctl): Don't use CHECK_SEMCTL.
52794
52795         [BZ #13550]
52796         * Makerules (elide-bp-thunks): Remove variable.
52797         (elide-routines.oS): Don't use $(elide-bp-thunks).
52798         (elide-routines.os): Likewise.
52799         (elide-routines.o): Likewise.
52800         (elide-routines.op): Likewise.
52801         (elide-routines.og): Likewise.
52802         (objects): Don't use $(bp-thunks).
52803         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52804         include.
52805         (common-generated): Do not add s-proto-bp.d.
52806         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52807         (int): Likewise.
52808         (typ): Likewise.
52809         Do not generate makefile rules for bounded-pointer thunks.
52810         * sysdeps/generic/bp-thunks.h: Remove file.
52811         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52812         * sysdeps/unix/s-proto-bp.S: Likewise.
52813
52814         [BZ #15062]
52815         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52816         parts of result separately when argument is not close to line from
52817         -i to i and one part of argument is small.
52818         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52819         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52820         * math/libm-test.inc (cacos_test): Add more tests.
52821         (casin_test): Likewise.
52822         (casinh_test): Likewise.
52823         * sysdeps/i386/fpu/libm-test-ulps: Update.
52824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52825
52826 2013-01-31  David S. Miller  <davem@davemloft.net>
52827
52828         * po/de.po: Update from translation team.
52829
52830 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52831
52832         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52833
52834 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52835
52836         * configure.in (_AC_PROG_CC_C89): New definition.
52837         * configure: Regenerate.
52838
52839         * configure.in (AC_PROG_CPP): New definition.
52840         * configure: Regenerate.
52841
52842 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52843
52844         * debug/tst-backtrace.h: New file.
52845         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52846         (ret): Remove variable.
52847         (x): Likewise.
52848         (FAIL): Remove macro.
52849         (NO_INLINE): Likewise.
52850         (fn1): Use match function instead of strstr.
52851         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52852         (ret): Remove variable.
52853         (x): Likewise.
52854         (FAIL): Remove macro.
52855         (NO_INLINE): Likewise.
52856         (fn): Use match function instead of strstr.
52857         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52858         (ret): Remove variable.
52859         (x): Likewise.
52860         (FAIL): Remove macro.
52861         (NO_INLINE): Likewise.
52862         (handle_signal): Use match function instead of strstr.
52863         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52864         (ret): Remove variable.
52865         (x): Likewise.
52866         (FAIL): Remove macro.
52867         (NO_INLINE): Likewise.
52868         (handle_signal): Use match function instead of strstr.
52869
52870 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52871
52872         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52873
52874 2013-01-23  David S. Miller  <davem@davemloft.net>
52875
52876         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52877         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52878         argument of CAS if possible.
52879         * sysdeps/sparc/sparc64/bits/atomic.h
52880         (__arch_compare_and_exchange_val_32_acq): Likewise.
52881         (__arch_compare_and_exchange_val_64_acq): Likewise.
52882
52883 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52884
52885         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52886         * sysdeps/posix/ulimit.c: ... this.
52887         Include <limits.h>.
52888         * sysdeps/unix/bsd/ulimit.c: Remove file.
52889
52890 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52891
52892         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52893         (LDFLAGS-tst-array5): Likewise.
52894
52895 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52896
52897         [BZ #15036]
52898         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52899         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52900         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52901         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52902
52903 2013-01-21  David S. Miller  <davem@davemloft.net>
52904
52905         * sysdeps/sparc/backtrace.c: New file.
52906         * sysdeps/sparc/sparc32/backtrace.h: New file.
52907         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52908         * sysdeps/sparc/sparc64/backtrace.h: New file.
52909         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52910         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52911         -funwind-tables.
52912
52913 2013-01-21  Andreas Schwab  <schwab@suse.de>
52914
52915         [BZ #15020]
52916         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52917         closed its stdout.
52918
52919 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52920
52921         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52922         "mpa2.h".
52923         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52924
52925 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52926             Mark Mitchell  <mark@codesourcery.com>
52927             Tom de Vries  <tom@codesourcery.com>
52928             Paul Pluzhnikov  <ppluzhnikov@google.com>
52929
52930         * debug/tst-backtrace2.c: New file.
52931         * debug/tst-backtrace3.c: Likewise.
52932         * debug/tst-backtrace4.c: Likewise.
52933         * debug/tst-backtrace5.c: Likewise.
52934         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52935         (CFLAGS-tst-backtrace3.c): Likewise.
52936         (CFLAGS-tst-backtrace4.c): Likewise.
52937         (CFLAGS-tst-backtrace5.c): Likewise.
52938         (LDFLAGS-tst-backtrace2): Likewise.
52939         (LDFLAGS-tst-backtrace3): Likewise.
52940         (LDFLAGS-tst-backtrace4): Likewise.
52941         (LDFLAGS-tst-backtrace5): Likewise.
52942         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52943         tst-backtrace4 and tst-backtrace5.
52944
52945 2013-01-18  Anton Blanchard  <anton@samba.org>
52946             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52947
52948         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52949         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52950         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52951         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52953         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52954         "+r" and remove output regs list as redundant.  Add explicit inline
52955         asm to specify register of return val to work around compiler codegen
52956         bug.  Remove (int) cast on return value.  Add return type parameter to
52957         use in macro so that this macro does not truncate return value for
52958         64-bit values.
52959         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52960         pass to INTERNAL_VSYSCALL_NCS.
52961         (INLINE_VSYSCALL): Add 'long int' as return type to
52962         INTERNAL_VSYSCALL_NCS macro invocation.
52963         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52964         INTERNAL_VSYSCALL_NCS macro invocation.
52965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52966
52967 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52968
52969         [BZ #14496]
52970         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52971         Fix application of SIMD FP exception mask.
52972
52973         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52974         mp_no from a power of two.
52975         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52976         __mpexp_twomm1.  Use __pow_mp.
52977
52978         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52979         multiplication.
52980
52981 2013-01-17  David S. Miller  <davem@davemloft.net>
52982
52983         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52984
52985 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52986
52987         [BZ #15023]
52988         * include/complex.h: Condition contents on [!_COMPLEX_H].
52989         (__kernel_casinhf): New prototype.
52990         (__kernel_casinh): Likewise.
52991         (__kernel_casinhl): Likewise.
52992         * math/Makefile (libm_calls): Add k_casinh.
52993         * math/k_casinh.c: New file.
52994         * math/k_casinhf.c: Likewise.
52995         * math/k_casinhl.c: Likewise.
52996         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52997         finite nonzero arguments.
52998         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52999         finite nonzero arguments.
53000         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
53001         finite nonzero arguments.
53002         * math/s_casinh.c: Do not include <float.h>.
53003         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
53004         * math/s_casinhf.c: Do not include <float.h>.
53005         (__casinhf): Move code for finite nonzero arguments to
53006         k_casinhf.c.
53007         * math/s_casinhl.c: Do not include <float.h>.
53008         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
53009         redefine.
53010         (__casinhl): Move code for finite nonzero arguments to
53011         k_casinhl.c.
53012         * math/libm-test.inc (cacos_test): Add more tests.
53013         * sysdeps/i386/fpu/libm-test-ulps: Update.
53014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53015
53016 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
53017
53018         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
53019         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
53020         [!HAVE_MREMAP]: Remove [defined linux] case.
53021         * malloc/arena.c: Do not include <malloc-sysdep.h>.
53022
53023 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53024
53025         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
53026
53027 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
53028
53029         * elf/elf.h (R_386_SIZE32): New relocation.
53030         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
53031         R_386_SIZE32.
53032         (elf_machine_rela): Likewise.
53033         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
53034         R_X86_64_SIZE64 and R_X86_64_SIZE32.
53035
53036 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53037
53038         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
53039         (FP_FAST_FMA): Do not define.
53040         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
53041         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
53042         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
53043         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
53044         !_SOFT_FLOAT]: Likewise.
53045         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
53046         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
53047         value.
53048         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
53049         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
53050         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
53051         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
53052         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
53053         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
53054         file.
53055
53056 2013-01-16  Andreas Schwab  <schwab@suse.de>
53057
53058         [BZ #14327]
53059         * include/stdlib.h (__mktemp): Add declaration.
53060         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
53061         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
53062
53063 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53064
53065         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
53066         definitions.
53067         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53068         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
53069         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
53070         definitions here.
53071         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
53072         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
53073         definitions.
53074         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
53075         and ONE.
53076         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
53077         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
53078         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
53079         definitions.
53080         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
53081         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
53082         definitions.
53083         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53084
53085         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
53086
53087 2013-01-15  David S. Miller  <davem@davemloft.net>
53088
53089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53090         trunc{,f} to libm-sysdep_routes.
53091         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
53093         file.
53094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
53095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
53096         file.
53097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
53098         file.
53099         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
53100         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
53101         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
53102         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
53103         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
53104         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
53105         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
53106         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
53107
53108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53109         nearbyint{,f} to libm-sysdep_routes.
53110         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
53112         New file.
53113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
53114         file.
53115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
53116         New file.
53117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
53118         file.
53119         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
53120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
53121         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
53122         file.
53123         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
53124         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
53125         file.
53126         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
53127         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
53128         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
53129
53130         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53131         libc_feholdexcept and libc_fesetenv.
53132
53133 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
53134
53135         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
53136
53137 2013-01-14  David S. Miller  <davem@davemloft.net>
53138
53139         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
53140         (SPARC_ASM_VIS2_IFUNC): Likewise.
53141         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
53142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
53143         use of 'siam' instruction.
53144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
53145         Likewise.
53146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
53147         Likewise.
53148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
53149         Likewise.
53150         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
53151         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
53152         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
53153         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
53154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
53155         file.
53156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
53157         file.
53158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
53159         file.
53160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
53161         file.
53162         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
53163         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
53164         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
53165         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
53166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
53167         new VIS2 routines.
53168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
53169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
53170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
53171         Likewise.
53172         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
53173         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
53174         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
53175         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
53176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
53177         routines to libm-sysdep_routines.
53178         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53179
53180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53181         fdim/fdimf to libm-sysdep_routines.
53182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
53183         file.
53184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
53185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
53186         file.
53187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
53188         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
53189         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
53190         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
53191         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
53192         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
53193         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
53194
53195 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53196
53197         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
53198         to optimize copies.
53199
53200         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
53201         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53202         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53203
53204         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
53205         local variable MPTWO.
53206         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
53207         Likewise.
53208
53209 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53210
53211         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
53212         GLOB_NOESCAPE.
53213
53214 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53215
53216         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
53217
53218 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53219
53220         * manual/pattern.texi (glob_t): Document gl_flags.
53221         (glob64_t): Likewise.
53222
53223 2013-01-11  David S. Miller  <davem@davemloft.net>
53224
53225         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
53226         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
53227         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
53228         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
53229         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53230         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
53231         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
53232         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
53233         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
53234         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
53235         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
53236         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
53237         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
53238
53239         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53240         sparc V9 rather than using V8 code.
53241         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53242         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53243
53244         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
53245         Move to...
53246         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
53247         Here.
53248
53249 2013-01-11  Roland McGrath  <roland@hack.frob.com>
53250
53251         [BZ #14941]
53252         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
53253         not in the main loop.
53254         * configure: Regenerated.
53255
53256 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
53257
53258         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
53259         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
53260         to just #else.
53261         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
53262         [!__GLIBC_HAVE_LONG_LONG] case.
53263         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
53264         condition to just #else.
53265         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
53266         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
53267         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
53268         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
53269         unconditional.
53270         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
53271         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53272         #elif condition to just #else.
53273         * sysdeps/unix/sysv/linux/sys/sysmacros.h
53274         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
53275         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53276         #elif condition to just #else.
53277
53278 2013-01-11  Steve Ellcey  <sellcey@mips.com>
53279
53280         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
53281         (EF_MIPS_ARCH_64): Fix value.
53282         (EF_MIPS_ARCH_32R2): New.
53283         (EF_MIPS_ARCH_64R2): New.
53284
53285 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53286
53287         * Makeconfig (+link-pie-before-libc): New.
53288         (+link-pie-after-libc): Likewise.
53289         (+link-pie-tests): Likewise.
53290         (+link-pie): Rewritten.
53291         (link-before-libc): Remove $(config-LDFLAGS).
53292         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
53293         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
53294         (config-LDFLAGS): Renamed to ...
53295         (rtld-LDFLAGS): This.
53296         (rtld-tests-LDFLAGS): New macro.
53297         (link-libc-rpath-link): Likewise.
53298         (link-libc-tests-rpath-link): Likewise.
53299         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
53300         (link-libc): Prepand $(link-libc-rpath-link).
53301         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
53302         (test-program-prefix): New macro.
53303         (test-via-rtld-prefix): Likewise.
53304         (test-program-cmd): Likewise.
53305         (host-test-program-cmd): Likewise.
53306         * Makefile ($(common-objpfx)testrun.sh): Replace
53307         $(run-program-prefix) with $(test-program-prefix).
53308         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
53309         $(rtld-LDFLAGS).
53310         ($(common-objpfx)shlib.lds): Likewise.
53311         (build-module-helper): Likewise.
53312         ($(common-objpfx)format.lds): Likewise.
53313         * Rules (binaries-pie-tests): New.
53314         (binaries-pie-notests): Likewise.
53315         (binaries-pie): Rewritten.
53316         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
53317         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
53318         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
53319         (make-test-out): Replace $(host-built-program-cmd) with
53320         $(host-test-program-cmd).
53321         * config.make.in (build-hardcoded-path-in-tests): New variable.
53322         * configure.in (--enable-hardcoded-path-in-tests): New configure
53323         option.
53324         (hardcoded_path_in_tests): New AC_SUBST.
53325         * configure: Regenerated.
53326         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
53327         $(built-program-cmd) with $(test-program-cmd).
53328         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
53329         (test_program_cmd): This.
53330         * elf/Makefile ($(objpfx)order.out): Run test with
53331         $(test-program-prefix).
53332         ($(objpfx)order2.out): Likewise.
53333         ($(objpfx)tst-initorder.out): Likewise.
53334         ($(objpfx)tst-initorder2.out): Likewise.
53335         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
53336         $(test-program-cmd).
53337         ($(objpfx)tst-array1-static.out): Likewise.
53338         ($(objpfx)tst-array2.out): Likewise.
53339         ($(objpfx)tst-array3.out): Likewise.
53340         ($(objpfx)tst-array4.out): Likewise.
53341         ($(objpfx)tst-array5.out): Likewise.
53342         ($(objpfx)tst-array5-static.out): Likewise.
53343         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
53344         $(test-program-cmd).
53345         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
53346         $(run-program-prefix) with $(test-program-prefix).
53347         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
53348         (test_program_prefix): This.
53349         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
53350         $(run-program-prefix) with $(test-program-prefix).
53351         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
53352         (test_program_prefix): This.
53353         * iconvdata/tst-tables.sh: Likewise.
53354         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
53355         $(run-program-prefix) with $(test-program-prefix).
53356         ($(objpfx)tst-translit.out): Likewise.
53357         ($(objpfx)tst-gettext2.out): Likewise.
53358         ($(objpfx)tst-gettext4.out): Likewise.
53359         ($(objpfx)tst-gettext6.out): Likewise.
53360         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
53361         (test_program_prefix): This.
53362         * intl/tst-gettext2.sh: Likewise.
53363         * intl/tst-gettext4.sh  Likewise.
53364         * intl/tst-gettext6.sh: Likewise.
53365         * intl/tst-translit.sh: Likewise.
53366         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53367         with $(test-program-cmd).
53368         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53369         $(run-program-prefix) with $(test-program-prefix).
53370         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53371         (test_program_prefix): This.
53372         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53373         $(run-program-prefix) with $(test-program-prefix).
53374         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53375         (test_program_prefix): This.
53376         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53377         * posix/Makefile ($(objpfx)globtest.out): Replace
53378         $(run-via-rtld-prefix) and $(test-wrapper) with
53379         $(test-program-prefix) and $(test-via-rtld-prefix).
53380         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53381         $(test-program-prefix).
53382         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53383         $(host-test-program-cmd).
53384         (tst-spawn-ARGS): Likewise.
53385         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53386         $(test-program-prefix).
53387         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53388         (test_via_rtld_prefix): This.
53389         (test_wrapper): Renamed to ...
53390         (test_program_prefix): This.
53391         (run_program_prefix): Replaced by test_program_prefix.
53392         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53393         (test_program_prefix): This.
53394         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53395         with $(host-test-program-cmd).
53396         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53397         $(run-program-prefix) with $(test-program-prefix).
53398         ($(objpfx)tst-printf.out): Likewise.
53399         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53400         $(test-program-cmd).
53401         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53402         (test_program_prefix): This.
53403         * stdio-common/tst-unbputc.sh: Likewise.
53404         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53405         $(run-program-prefix) with $(test-program-prefix).
53406         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53407         (test_program_prefix): This.
53408         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53409         $(built-program-cmd) with $(test-program-cmd).
53410
53411 2013-01-11  Andreas Jaeger  <aj@suse.de>
53412
53413         [BZ #15003]
53414         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53415         value. Sync with Linux 3.7.
53416
53417 2013-01-10  David S. Miller  <davem@davemloft.net>
53418
53419         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53420         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53421         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53422
53423 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53424
53425         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53426         never set.
53427         * configure: Regenerated.
53428
53429 2013-01-10  David S. Miller  <davem@davemloft.net>
53430
53431         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53432         sparc V9 rather than using V8 code.
53433         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53434         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53435
53436 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53437
53438         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53439         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53440         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53441         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53442         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53443         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53444         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53445         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53446         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53447         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53448         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53449         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53450         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53451         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53452         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53453         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53454         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53455         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53456         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53457         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53458         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53459         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53460         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53461         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53462         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53463         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53464         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53465
53466 2013-01-10  David S. Miller  <davem@davemloft.net>
53467
53468         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53469
53470 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53471
53472         * posix/Makefile (tests-static): New variable.
53473         (tests): Add $(tests-static).
53474         (tst-exec-static-ARGS): New variable.
53475         (tst-spawn-static-ARGS): Likewise.
53476         * posix/tst-exec-static.c: New file.
53477         * posix/tst-spawn-static.c: Likewise.
53478         * posix/tst-exec.c: Support run directly.
53479         * posix/tst-spawn.c: Likewise.
53480
53481 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53482
53483         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53484         long.
53485         * math/bits/mathcalls.h (llrint): Likewise.
53486         (llround): Likewise.
53487         * stdlib/stdlib.h (struct drand48_data): Likewise.
53488         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53489         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53490         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53491         Likewise.
53492         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53493         Likewise.
53494         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53495         (elf_greg_t): Likewise.
53496         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53497         (__jmp_buf): Likewise.
53498         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53499         definitions.
53500         (llrint): Likewise, for all definitions.
53501         (llrintl): Likewise.
53502
53503         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53504         Remove [__GNUC__] condition.
53505         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53506         condition to just [__USE_ISOC99].
53507         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53508
53509 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53510
53511         [BZ #14200]
53512         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53513         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53514         defined.
53515         (_POSIX_V6_ILP32_OFF32): Likewise.
53516         (_XBS5_ILP32_OFF32): Likewise.
53517         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53518         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53519
53520 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53521
53522         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53523
53524         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53525         doubles __mpexp_twomm1.  Adjust usage.
53526         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53527         Remove.
53528
53529 2013-01-10  Andreas Schwab  <schwab@suse.de>
53530
53531         [BZ #14964]
53532         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53533         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53534
53535 2013-01-09  David S. Miller  <davem@davemloft.net>
53536
53537         [BZ #15003]
53538         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53539         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53540         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53541         (TCP_FASTOPEN): Define.
53542         (tcp_repair_opt): New structure.
53543         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53544         enum values.
53545         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53546         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53547         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53548         (tcp_cookie_transactions): New structure.
53549
53550 2013-01-09  Anton Blanchard  <anton@samba.org>
53551
53552         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53553         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53554         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53555         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53556
53557 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53558
53559         * include/features.h (__USE_ANSI): Remove.
53560
53561 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53562
53563         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53564
53565         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53566
53567 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53568
53569         * sysdeps/s390/fpu/libm-test-ulps: Update.
53570
53571         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53572
53573         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53574         (__acr): Likewise.
53575         (__cpy): Likewise.
53576         (norm): Likewise.
53577         (denorm): Likewise.
53578         (__mp_dbl): Likewise.
53579         (__dbl_mp): Likewise.
53580         (add_magnitudes): Likewise.
53581         (sub_magnitudes): Likewise.
53582         (__add): Likewise.
53583         (__sub): Likewise.
53584         (__mul): Likewise.
53585         (__inv): Likewise.
53586         (__dvd): Likewise.
53587         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53588         (__acr): Likewise.
53589         (__cpy): Likewise.
53590         (norm): Likewise.
53591         (denorm): Likewise.
53592         (__mp_dbl): Likewise.
53593         (__dbl_mp): Likewise.
53594         (add_magnitudes): Likewise.
53595         (sub_magnitudes): Likewise.
53596         (__add): Likewise.
53597         (__sub): Likewise.
53598         (__mul): Likewise.
53599         (__inv): Likewise.
53600         (__dvd): Likewise.
53601         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53602         (__acr): Likewise.
53603         (__cpy): Likewise.
53604         (norm): Likewise.
53605         (denorm): Likewise.
53606         (__mp_dbl): Likewise.
53607         (__dbl_mp): Likewise.
53608         (add_magnitudes): Likewise.
53609         (sub_magnitudes): Likewise.
53610         (__add): Likewise.
53611         (__sub): Likewise.
53612         (__mul): Likewise.
53613         (__inv): Likewise.
53614         (__dvd): Likewise.
53615
53616 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53617
53618         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53619         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53620         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53621         2 && __USE_EXTERN_INLINES]: Likewise.
53622
53623 2013-01-08  Andreas Jaeger  <aj@suse.de>
53624
53625         [BZ# 14985]
53626         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53627         Remove.
53628         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53629         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53630
53631 2013-01-07  Anton Blanchard  <anton@samba.org>
53632
53633         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53634         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53635         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53636         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53637         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53638         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53639         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53640         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53641         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53642         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53643         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53644         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53645         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53646         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53647         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53648         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53649         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53650         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53651         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53652         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53653         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53654         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53655         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53656         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53657         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53658         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53659         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53660         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53661         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53662         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53663         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53664         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53665         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53666         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53667         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53668         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53669         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53670         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53671         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53672         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53673         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53674         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53675         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53676
53677 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53678
53679         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53680         (__MALLOC_PMT): Likewise.
53681         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53682         [__GNUC__], only on [_LIBC].
53683         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53684         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53685         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53686         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53687         forward declaration.
53688         (realloc_hook_ini): Likewise.
53689         (memalign_hook_ini): Likewise.
53690         (__libc_memalign): Do not use __MALLOC_PMT in variable
53691         declaration.
53692         (__libc_valloc): Likewise.
53693         (__libc_pvalloc): Likewise.
53694         (__libc_calloc): Likewise.
53695         (__posix_memalign): Likewise.
53696
53697         [BZ #14996]
53698         * math/s_casinh.c: Include <float.h>.
53699         (__casinh): Do not do computation with squaring and square root
53700         for large arguments.
53701         * math/s_casinhf.c: Include <float.h>.
53702         (__casinhf): Do not do computation with squaring and square root
53703         for large arguments.
53704         * math/s_casinhl.c: Include <float.h>.
53705         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53706         (__casinhl): Do not do computation with squaring and square root
53707         for large arguments.
53708         * math/libm-test.inc (casin_test): Add more tests.
53709         (casinh_test): Likewise.
53710         * sysdeps/i386/fpu/libm-test-ulps: Update.
53711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53712
53713 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53714
53715         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53716         (__x86_64_raw_data_cache_size): Likewise.
53717         (__x86_64_data_cache_size_half): Likewise.
53718         (__x86_64_raw_data_cache_size_half): Likewise.
53719         (__x86_64_shared_cache_size): Likewise.
53720         (__x86_64_raw_shared_cache_size): Likewise.
53721         (__x86_64_shared_cache_size_half): Likewise.
53722         (__x86_64_raw_shared_cache_size_half): Likewise.
53723         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53724         to ...
53725         (__x86_data_cache_size): This.
53726         (__x86_64_raw_data_cache_size): Renamed to ...
53727         (__x86_raw_data_cache_size): This.
53728         (__x86_64_data_cache_size_half): Renamed to ...
53729         (__x86_data_cache_size_half): This.
53730         (__x86_64_raw_data_cache_size_half): Renamed to ...
53731         (__x86_raw_data_cache_size_half): This.
53732         (__x86_64_shared_cache_size): Renamed to ...
53733         (__x86_shared_cache_size): This.
53734         (__x86_64_raw_shared_cache_size): Renamed to ...
53735         (__x86_raw_shared_cache_size): This.
53736         (__x86_64_shared_cache_size_half): Renamed to ...
53737         (__x86_shared_cache_size_half): This.
53738         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53739         (__x86_raw_shared_cache_size_half): This.
53740         * sysdeps/x86_64/memcpy.S: Updated.
53741         * sysdeps/x86_64/memset.S: Likewise.
53742         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53743         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53744         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53745
53746 2013-01-04  David S. Miller  <davem@davemloft.net>
53747
53748         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53749
53750 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53751
53752         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53753         1 to avoid redefinition warning.
53754         (__USE_GNU): Don't define.
53755         (init_signaling_nan): Protoize.
53756
53757         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53758
53759 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53760
53761         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53762         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53763         (__cpymn): Likewise.
53764         (norm): Remove commented code.
53765         (denorm): Likewise.
53766         (__mp_dbl): Likewise.
53767         (__inv): Likewise.
53768         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53769         (__cpymn): Likewise.
53770         (norm): Remove commented code.
53771         (denorm): Likewise.
53772         (__mp_dbl): Likewise.
53773         (__inv): Likewise.
53774
53775         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53776         mp_no value for 1.0 and 2.0.
53777         (norm): Use RADIXI instead of radixi.d.
53778         (denorm): Likewise.
53779         (__mul): Use 0.0 instead of zero.d.
53780         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53781         mp_no value for 1.0 and 2.0.
53782         (norm): Use RADIXI instead of radixi.d.
53783         (denorm): Likewise.
53784         (__mul): Use 0.0 instead of zero.d.
53785
53786 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53787
53788         [BZ #14994]
53789         * math/s_casinh.c (__casinh): Reduce finite argument to first
53790         quadrant then set signs of results at the end.
53791         * math/s_casinhf.c (__casinhf): Likewise.
53792         * math/s_casinhl.c (__casinhl): Likewise.
53793         * math/libm-test.inc (casin_test): Add more tests.
53794         (casinh_test): Likewise.
53795         * sysdeps/i386/fpu/libm-test-ulps: Update.
53796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53797
53798 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53799
53800         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53801
53802         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53803
53804         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53805         declarations.
53806         (denorm): Likewise.
53807         (__mp_dbl): Likewise.
53808         (__inv): Likewise.
53809
53810         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53811         and adjust the header comment.
53812
53813         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53814         variable name from declaration.
53815
53816 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53817
53818         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53819         Initialize COMMON_CPUID_INDEX_7 element.
53820         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53821         (CPUID_RTM): Likewise.
53822         (HAS_RTM): Likewise.
53823         (COMMON_CPUID_INDEX_7): New enum.
53824
53825 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53826
53827         [BZ #14981]
53828         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53829         size is zero, record memory as freed.
53830
53831 2013-01-03  Andreas Jaeger  <aj@suse.de>
53832
53833         * po/ia.po: Add new Interlingua translation.
53834
53835 2012-01-03  Allan McRae  <allan@archlinux.org>
53836
53837         * locale/programs/localedef.c: Fix description of '--posix' flag.
53838
53839 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53840
53841         * NEWS: Update dates in second copyright notice.
53842         * README: Update copyright dates in example.
53843         * manual/libc.texinfo: Update copyright dates.
53844         * scripts/test-installation.pl: Update copyright date in --version
53845         output.
53846
53847         * hurd/ctty-input.c: Fix copyright notice formatting.
53848         * hurd/ctty-output.c: Likewise.
53849         * hurd/dtable.c: Likewise.
53850         * hurd/hurd-raise.c: Likewise.
53851         * hurd/hurdprio.c: Likewise.
53852         * hurd/msgportdemux.c: Likewise.
53853         * misc/sys/file.h: Likewise.
53854         * misc/sys/ioctl.h: Likewise.
53855         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53856         * sysdeps/mach/hurd/chdir.c: Likewise.
53857         * sysdeps/mach/hurd/fchdir.c: Likewise.
53858         * sysdeps/mach/hurd/rename.c: Likewise.
53859         * sysdeps/mach/hurd/rmdir.c: Likewise.
53860         * sysdeps/mach/hurd/seekdir.c: Likewise.
53861         * sysdeps/mach/hurd/setsid.c: Likewise.
53862         * sysdeps/posix/wait3.c: Likewise.
53863
53864         * All files with FSF copyright notices: Update copyright dates
53865         using scripts/update-copyrights.
53866         * intl/plural.c: Regenerated.
53867         * locale/programs/charmap-kw.h: Likewise.
53868         * locale/programs/locfile-kw.h: Likewise.
53869
53870 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53871
53872         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53873         four values.
53874
53875         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53876         calculation loop and add branch prediction.
53877
53878         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53879         check access beyond bounds of m1np.
53880
53881         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53882         MPTWO.
53883         (__inv): Remove local variable MPTWO to use the global
53884         constant.
53885         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53886         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53887         variable MPTWO.
53888         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53889         MP3HALFS static const.
53890
53891 2013-01-01  David S. Miller  <davem@davemloft.net>
53892
53893         * po/ca.po: Update from translation team.
53894
53895 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53896
53897         * scripts/update-copyrights: New file.
53898         * Makeconfig: Reformat copyright notice.
53899         * ctype/ctype.h: Likewise.
53900         * debug/swprintf_chk.c: Likewise.
53901         * elf/dl-cache.c: Likewise.
53902         * elf/dl-debug.c: Likewise.
53903         * elf/dl-object.c: Likewise.
53904         * grp/initgroups.c: Likewise.
53905         * hurd/Makefile: Likewise.
53906         * hurd/hurd/signal.h: Likewise.
53907         * hurd/hurdfault.c: Likewise.
53908         * hurd/hurdioctl.c: Likewise.
53909         * hurd/hurdlookup.c: Likewise.
53910         * hurd/intr-msg.c: Likewise.
53911         * iconv/gconv_open.c: Likewise.
53912         * libio/swprintf.c: Likewise.
53913         * locale/lc-ctype.c: Likewise.
53914         * locale/nl_langinfo.c: Likewise.
53915         * mach/Machrules: Likewise.
53916         * mach/Makefile: Likewise.
53917         * malloc/obstack.h: Likewise.
53918         * manual/Makefile: Likewise.
53919         * manual/tsort.awk: Likewise.
53920         * misc/bits/stab.def: Likewise.
53921         * nis/nis_print_group_entry.c: Likewise.
53922         * nis/nis_table.c: Likewise.
53923         * nis/nss_compat/compat-pwd.c: Likewise.
53924         * nis/nss_compat/compat-spwd.c: Likewise.
53925         * po/Makefile: Likewise.
53926         * posix/fnmatch.c: Likewise.
53927         * posix/regex.h: Likewise.
53928         * resolv/Makefile: Likewise.
53929         * resolv/nss_dns/dns-network.c: Likewise.
53930         * resolv/res_hconf.c: Likewise.
53931         * scripts/gen-sorted.awk: Likewise.
53932         * soft-fp/soft-fp.h: Likewise.
53933         * stdio-common/printf.h: Likewise.
53934         * stdlib/monetary.h: Likewise.
53935         * stdlib/random.c: Likewise.
53936         * stdlib/random_r.c: Likewise.
53937         * sysdeps/generic/Makefile: Likewise.
53938         * sysdeps/gnu/Makefile: Likewise.
53939         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53940         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53941         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53942         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53943         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53944         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53945         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53946         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53947         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53948         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53949         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53950         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53951         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53952         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53953         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53954         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53955         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53956         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53957         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53958         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53959         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53960         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53961         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53962         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53963         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53964         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53965         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53966         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53967         * sysdeps/mach/hurd/errnos.awk: Likewise.
53968         * sysdeps/mach/hurd/fork.c: Likewise.
53969         * sysdeps/mach/hurd/getcwd.c: Likewise.
53970         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53971         * sysdeps/mach/hurd/mmap.c: Likewise.
53972         * sysdeps/mach/hurd/utimes.c: Likewise.
53973         * sysdeps/mach/hurd/xmknod.c: Likewise.
53974         * sysdeps/posix/profil.c: Likewise.
53975         * sysdeps/posix/readdir_r.c: Likewise.
53976         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53977         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53978         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53979         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53980         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53981         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53982         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53983         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53984         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53985         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53986         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53987         * sysdeps/pthread/lio_listio.c: Likewise.
53988         * sysdeps/sparc/dl-procinfo.h: Likewise.
53989         * sysdeps/unix/i386/sysdep.S: Likewise.
53990         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53991         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53992         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53993         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53995         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53996         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53997         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53998         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53999         * sysdeps/wordsize-32/divdi3.c: Likewise.
54000         * time/sys/time.h: Likewise.
54001         * wcsmbs/Makefile: Likewise.
54002
54003 2013-01-01  David S. Miller  <davem@davemloft.net>
54004
54005         * po/fr.po: Update from translation team.
54006
54007         * catgets/gencat.c: Update copyright year.
54008         * csu/version.c: Likewise.
54009         * debug/catchsegv.sh: Likewise.
54010         * debug/pcprofiledump.c: Likewise.
54011         * debug/xtrace.sh: Likewise.
54012         * elf/ldconfig.c: Likewise.
54013         * elf/ldd.bash.in: Likewise.
54014         * elf/pldd.c: Likewise.
54015         * elf/sotruss.ksh: Likewise.
54016         * elf/sprof.c: Likewise.
54017         * iconv/iconv_prog.c: Likewise.
54018         * iconv/iconvconfig.c: Likewise.
54019         * locale/programs/locale.c: Likewise.
54020         * locale/programs/localedef.c: Likewise.
54021         * login/programs/pt_chown.c: Likewise.
54022         * malloc/memusage.sh: Likewise.
54023         * malloc/memusagestat.c: Likewise.
54024         * malloc/mtrace.pl: Likewise.
54025         * nscd/nscd.c: Likewise.
54026         * nss/getent.c: Likewise.
54027         * nss/makedb.c: Likewise.
54028         * posix/getconf.c: Likewise.
54029
54030 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
54031
54032         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
54033         numbers.
54034
54035 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
54036
54037         * math/bits/mathcalls.h (modf): Use __nonnull.
54038
54039 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
54040
54041         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
54042         (split): Use macro CN instead of the bare value.
54043         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
54044         could be used.
54045         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
54046         instead of the bare value.
54047         (power1): Likewise.
54048
54049 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54050
54051         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
54052         __ATAN_TWOM.
54053         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54054
54055         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
54056         their values.
54057         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
54058         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
54059         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
54060         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
54061
54062 2012-12-28  Andreas Jaeger  <aj@suse.de>
54063
54064         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
54065         values are from Linux 3.7.
54066
54067         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
54068         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
54069
54070 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54071
54072         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
54073         TRUE case.
54074
54075         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
54076         (norm): Likewise.
54077         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
54078         variables with preprocessor constants.
54079         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54080         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
54081         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
54082
54083 2012-12-27  Bruno Haible  <bruno@clisp.org>
54084
54085         [BZ #14317]
54086         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
54087         only if needed.
54088
54089 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54090
54091         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
54092         and use variable directly.
54093         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
54094
54095         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
54096         MPONE.
54097         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
54098         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
54099         variable MPONE.
54100         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
54101         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
54102         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
54103         include directive.  Remove local variable MPONE.
54104         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
54105         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
54106         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
54107
54108 2012-12-25  David S. Miller  <davem@davemloft.net>
54109
54110         * version.h (RELEASE): Set to "development".
54111         (VERSION): Set to "2.17.90".
54112         * NEWS: Add 2.18 section.
54113
54114 2012-12-21  David S. Miller  <davem@davemloft.net>
54115
54116         * po/hr.po: Update from translation team.
54117
54118 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54119
54120         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
54121
54122 2012-12-19  Steve Ellcey  <sellcey@mips.com>
54123
54124         * NEWS:  Mention new memcpy for MIPS.
54125
54126 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54127
54128         * manual/contrib.texi (Contributors): Spelling correction.
54129
54130 2012-12-15  David S. Miller  <davem@davemloft.net>
54131
54132         * po/ru.po: Update from translation team.
54133
54134 2012-12-13  David S. Miller  <davem@davemloft.net>
54135
54136         * NEWS: Mention IFUNC testsuite enhancements.
54137
54138         * po/pl.po: Update from translation team.
54139         * po/bg.po: Likewise.
54140
54141         * manual/contrib.texi (Contributors): Update entries for Hongjiu
54142         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
54143
54144 2012-12-11  David S. Miller  <davem@davemloft.net>
54145
54146         * po/sv.po: Update from translation team.
54147
54148         * po/vi.po: Update from translation team.
54149
54150         * po/cs.po: Update from translation team.
54151
54152         * po/de.po: Update from translation team.
54153         * po/eo.po: Likewise.
54154         * po/nl.po: Likewise.
54155
54156 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54157
54158         [BZ #14246]
54159         * manual/argp.texi (Argp Helper Functions): Move node to follow
54160         Argp Parsing State.
54161
54162         [BZ #14872]
54163         * manual/conf.texi (Limits on File System Capacity): Mention if
54164         terminating null is included in the max size.
54165
54166 2012-12-10  Andreas Jaeger  <aj@suse.de>
54167
54168         * po/cs.po: Update from translation team.
54169
54170 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
54171
54172         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
54173         void pointer and cast to uintptr_t.
54174         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
54175         path.
54176         * sysdeps/s390/s390-64/memcpy.S: Likewise.
54177         * sysdeps/s390/s390-64/memset.S: Likewise.
54178
54179 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
54180
54181         [BZ #14833]
54182         * menual/message.texi (Message Translation): Fix typos.
54183         (Helper programs for gettext): Likewise.
54184
54185 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
54186
54187         [BZ #14898]
54188         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
54189         Change to -1.
54190
54191 2012-12-07  David S. Miller  <davem@davemloft.net>
54192
54193         * po/libc.pot: Update.
54194
54195 2012-12-07  Richard Henderson  <rth@redhat.com>
54196
54197         [BZ #10114]
54198         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
54199         normal/normal case to before the switch.
54200         (_FP_DIV): Likewise.
54201
54202 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
54203             Mike Frysinger  <vapier@gentoo.org>
54204
54205         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
54206         check for __NR_fadvise64_64.
54207
54208 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
54209
54210         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
54211         0, not just to plain "0" as a statement.
54212         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
54213         with cw.
54214
54215 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
54216
54217         * NEWS: Use sourceware.org in Bugzilla URL.
54218
54219 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54220
54221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
54222         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54223
54224         * stdio-common/tst-put-error.c (do_test): Add newline to the
54225         padded test to ensure flush.
54226
54227 2012-12-05  Jeff Law  <law@redhat.com>
54228
54229         * sunrpc/etc.rpc (fedfs_admin): Add entry.
54230
54231 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
54232
54233         * README: Don't refer to ports add-on as distributed separately.
54234         Mention AArch64 in list of systems supported in the ports add-on.
54235
54236         * LICENSES: Add more non-FSF copyright and license notices.
54237
54238         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
54239         ((unused)).
54240
54241         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
54242
54243         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
54244         10000 as width of padded output.
54245
54246 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54247
54248         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
54249
54250         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
54251         variable LX with __attribute__ ((unused)).
54252         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
54253         Likewise.
54254         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
54255         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
54256         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
54257         with __attribute__ ((unused)).
54258
54259 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
54260
54261         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
54262
54263 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54264
54265         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
54266         (CFLAGS-nldbl-acos.c): New variable.
54267         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54268         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
54269         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
54270         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
54271         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
54272         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
54273         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
54274         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
54275         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
54276         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
54277         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
54278         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
54279         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
54280         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
54281         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
54282         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
54283         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
54284         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
54285         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
54286         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
54287         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
54288         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
54289         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
54290         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
54291         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
54292         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
54293         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
54294         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
54295         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
54296         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
54297         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
54298         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
54299         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
54300         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
54301         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
54302         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
54303         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
54304         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
54305         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
54306         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
54307         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
54308         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
54309         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
54310         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
54311         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
54312         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
54313         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
54314         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
54315         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
54316         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
54317         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
54318         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
54319         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
54320         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
54321         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
54322         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
54323         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
54324         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
54325         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
54326         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
54327         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
54328         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
54329         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
54330         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
54331         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
54332         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
54333         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
54334         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
54335         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
54336         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
54337         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
54338         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
54339         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
54340         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
54341         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
54342         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
54343         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
54344         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
54345         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
54346         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
54347         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
54348         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
54349         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
54350         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
54351         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
54352         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
54353         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
54354         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
54355         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
54356         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
54357         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
54358         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
54359         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
54360         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
54361         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
54362         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
54363         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54364
54365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54366         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54367
54368         [BZ #14914]
54369         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54370         whole low double instead of just low 47 bits when splitting values
54371         into two parts.
54372
54373 2012-12-03  Allan McRae  <allan@archlinux.org>
54374
54375         * manual/stdio.texi (Predefined Printf Handlers): Remove
54376         @hsep and @vsep usage.
54377
54378 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54379
54380         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54381         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54382
54383 2012-12-03  Jeff Law  <law@redhat.com>
54384
54385         * time/sys/time.h (settimeofday): Do not mark TV argument
54386         as __nonnull.
54387
54388 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54389
54390         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54391         when currently writing and seek to current position when not.
54392         * libio/Makefile (tests): Remove bug-fclose1.
54393         * libio/bug-fclose1.c: Delete.
54394
54395 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54396
54397         * manual/arith.texi (feenableexcept): Fix typo.
54398         (fedisableexcept): Likewise.
54399
54400 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54401
54402         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54403         second, differently-typed declaration, rather than a cast.
54404
54405 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54406
54407         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54408         * include/rpc/svc.h: ... here.
54409
54410 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54411
54412         [BZ #13013]
54413         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54414         depending n and resplen2 to catch cases where answer
54415         equals answerp2.
54416
54417 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54418
54419         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54420         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54421
54422 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54423
54424         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54425
54426 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54427
54428         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54429
54430 2012-11-28  Jeff Law  <law@redhat.com>
54431
54432         [BZ #13761]
54433         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54434         dataset_temporary.  Track alloca usage into alloca_used.
54435         If dataset is large allocate and release it via malloc/free.
54436
54437 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54438
54439         [BZ #14197]
54440         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54441
54442 2012-11-28  David S. Miller  <davem@davemloft.net>
54443
54444         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54445
54446 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54447
54448         [BZ #14803]
54449         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54450         of pi/2 rounded to nearest to 64 bits.
54451         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54452         nearest to 64 bits.
54453         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54454         bits.
54455
54456 2012-11-28  Jeff Law <law@redhat.com>
54457             Martin Osvald <mosvald@redhat.com>
54458
54459         [BZ #14889]
54460         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54461         * sunrpc/svc.c: Include time.h.
54462         (__svc_accept_failed): New function.
54463         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54464         any reason other than EINTR, call __svc_accept_failed.
54465         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54466         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54467
54468 2012-11-28  Andreas Schwab  <schwab@suse.de>
54469
54470         * scripts/abilist.awk: Also handle indirect functions in .opd
54471         section.
54472
54473 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54474
54475         [BZ #13881]
54476         * sysdeps/x86/fpu/powl_helper.c: New file.
54477         * sysdeps/x86/fpu/Makefile: Likewise.
54478         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54479         (p3): New object.
54480         (__ieee754_powl): Use __powl_helper for finite arguments except
54481         integer exponents below 8.
54482         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54483         (p3): New object.
54484         (__ieee754_powl): Use __powl_helper for finite arguments except
54485         integer exponents below 8.
54486         * math/libm-test.inc (pow_test): Add more tests and enable some
54487         previously disabled tests.
54488         * sysdeps/i386/fpu/libm-test-ulps: Update.
54489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54490
54491 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54492             Carlos O'Donell  <carlos_odonell@mentor.com>
54493
54494         * nss/makedb.c (is_prime): Assert that input is odd and greater
54495         than 4.  Note that fact in a comment too.
54496         (next_prime): Add 4 to input.
54497
54498 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54499
54500         [BZ #11741]
54501         * libio/Makefile (tests): Add test case tst-fwrite-error.
54502         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54503         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54504         * libio/tst-fwrite-error.c: New test case.
54505
54506 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54507
54508         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54509         before casting to void *.
54510         * include/libc-internal.h (__pointer_type): New macro.
54511         (__integer_if_pointer_type_sub): Likewise.
54512         (__integer_if_pointer_type): Likewise.
54513         (cast_to_integer): Likewise.
54514         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54515         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54516         before casting to atomic64_t.
54517         (atomic_exchange_acq): Likewise.
54518         (__arch_exchange_and_add_body): Likewise.
54519         (__arch_add_body): Likewise.
54520         (atomic_add_negative): Likewise.
54521         (atomic_add_zero): Likewise.
54522
54523 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54524
54525         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54526         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54527         (add_fdes): Likewise.
54528         (linear_search_fdes): Likewise.
54529         (binary_search_unencoded_fdes): Likewise.
54530
54531 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54532
54533         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54534
54535 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54536
54537         * configure.in: Autodetect C++ header directories.
54538         * configure: Regenerated.
54539
54540 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54541
54542         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54543
54544 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54545
54546         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54547
54548 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54549
54550         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54551         LDBL_MANT_DIG == 106]: Disable some tests.
54552         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54553         Likewise.
54554         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54555         Likewise.
54556
54557         [BZ #14871]
54558         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54559         input for small inputs.  Return +/- pi/2 for large inputs.
54560         * math/libm-test.inc (atan_test): Add more tests.
54561
54562         * sysdeps/generic/unwind-dw2-fde-glibc.c
54563         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54564         __attribute__ ((unused)).
54565
54566         [BZ #14645]
54567         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54568         x * y if x and y are nonzero and z is zero.
54569
54570         [BZ #14811]
54571         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54572         nonzero exponents with absolute value below 0x1p-117 to +/-
54573         0x1p-117.
54574
54575         [BZ #14869]
54576         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54577         up arguments below 2**-450, not just those below 2**-500.
54578         * math/libm-test.inc (hypot_test): Add another test.
54579
54580         [BZ #14868]
54581         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54582         Return a+b for ratio over 2**120, not 2**60.
54583         * math/libm-test.inc (hypot_test): Add another test.
54584
54585         * math/libm-test.inc (clog_test): Use
54586         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54587         (clog10_test): Likewise.
54588
54589         [BZ #6778]
54590         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54591
54592 2012-11-22  Andreas Schwab  <schwab@suse.de>
54593
54594         * sysdeps/i386/fpu/libm-test-ulps: Update.
54595
54596 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54597
54598         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54599         printf output with newline.
54600
54601 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54602
54603         [BZ #14865]
54604         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54605         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54606         -z nodlopen, -z initfirst and -z execstack support.
54607         * configure: Regenerated.
54608
54609         * elf/elf.h (DF_1_NODIRECT): New macro.
54610         (DF_1_IGNMULDEF): Likewise.
54611         (DF_1_NOKSYMS): Likewise.
54612         (DF_1_NOHDR): Likewise.
54613         (DF_1_EDITED): Likewise.
54614         (DF_1_NORELOC): Likewise.
54615         (DF_1_SYMINTPOSE): Likewise.
54616         (DF_1_GLOBAUDIT): Likewise.
54617         (DF_1_SINGLETON): Likewise.
54618         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54619         DT_1_SUPPORTED_MASK bits.
54620         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54621
54622 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54623
54624         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54625
54626 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54627
54628         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54629         macro.
54630
54631         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54632         (sendmmsg): Move declarations...
54633         * socket/sys/socket.h: ... here.
54634         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54635         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54636         include it from...
54637         * socket/recvmmsg.c: ... this new file.
54638         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54639         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54640         definition of __sendmmsg hidden.
54641         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54642         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54643         Move ENOSYS stub into and include it from...
54644         * socket/sendmmsg.c: ... this new file.
54645         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54646         (sysdep_routines): Move recvmmsg and sendmmsg...
54647         * socket/Makefile (routines): ... here.
54648         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54649         (GLIBC_PRIVATE): Add __sendmmsg.
54650         * include/sys/socket.h (__sendmmsg): Add declarations.
54651         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54652         sendmmsg.
54653
54654 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54655
54656         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54657         variable I1 with __attribute__ ((unused)).
54658         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54659
54660 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54661
54662         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54663         DUMMY variables with __attribute__ ((unused)).
54664
54665         * bits/byteswap.h: Include <bits/types.h>.
54666         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54667
54668 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54669
54670         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54671         string_t.  Do not manually set errno.
54672         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54673         length with __strnlen.  Make sure to both set errno and return it on
54674         failure.
54675
54676 2012-11-19  David S. Miller  <davem@davemloft.net>
54677
54678         With help from Joseph Myers.
54679         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54680         very large arguments properly.
54681         * math/libm-test.inc (atan_test): New tests.
54682         (atan2_test): New tests.
54683         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54684         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54685
54686 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54687
54688         [BZ #14856]
54689         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54690         Define to 3.
54691
54692         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54693         [POSIX] (EADDRNOTAVAIL): Likewise.
54694         [POSIX] (EAFNOSUPPORT): Likewise.
54695         [POSIX] (EALREADY): Likewise.
54696         [POSIX] (ECONNABORTED): Likewise.
54697         [POSIX] (ECONNREFUSED): Likewise.
54698         [POSIX] (ECONNRESET): Likewise.
54699         [POSIX] (EDESTADDRREQ): Likewise.
54700         [POSIX] (EDQUOT): Likewise.
54701         [POSIX] (EHOSTUNREACH): Likewise.
54702         [POSIX] (EIDRM): Likewise.
54703         [POSIX] (EISCONN): Likewise.
54704         [POSIX] (ELOOP): Likewise.
54705         [POSIX] (EMULTIHOP): Likewise.
54706         [POSIX] (ENETDOWN): Likewise.
54707         [POSIX] (ENETUNREACH): Likewise.
54708         [POSIX] (ENOBUFS): Likewise.
54709         [POSIX] (ENODATA): Likewise.
54710         [POSIX] (ENOLINK): Likewise.
54711         [POSIX] (ENOMSG): Likewise.
54712         [POSIX] (ENOPROTOOPT): Likewise.
54713         [POSIX] (ENOSR): Likewise.
54714         [POSIX] (ENOSTR): Likewise.
54715         [POSIX] (ENOTCONN): Likewise.
54716         [POSIX] (ENOTSOCK): Likewise.
54717         [POSIX] (EOPNOTSUPP): Likewise.
54718         [POSIX] (EOVERFLOW): Likewise.
54719         [POSIX] (EPROTO): Likewise.
54720         [POSIX] (EPROTONOSUPPORT): Likewise.
54721         [POSIX] (EPROTOTYPE): Likewise.
54722         [POSIX] (ESTALE): Likewise.
54723         [POSIX] (ETIME): Likewise.
54724         [POSIX] (ETXTBSY): Likewise.
54725         [POSIX] (EWOULDBLOCK): Likewise.
54726         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54727         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54728         [POSIX] (SEEK_CUR): Likewise.
54729         [POSIX] (SEEK_END): Likewise.
54730         [POSIX || UNIX98] (mode_t): Do not require.
54731         [POSIX] (off_t): Likewise.
54732         [POSIX] (pid_t): Likewise.
54733         [POSIX] (sys/stat.h): Do not allow header.
54734         [POSIX] (unistd.h): Likewise.
54735         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54736         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54737         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54738         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54739         require.
54740         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54741         sigevent): Specify elements.
54742         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54743         entry.
54744         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54745         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54746
54747         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54748         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54749         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54750         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54751         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54752         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54753         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54754         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54755         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54756         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54757         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54758         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54759         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54760         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54761         Likewise.
54762         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54763         Likewise.
54764         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54765         Likewise.
54766         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54767         Likewise.
54768         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54769         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54770         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54771         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54772         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54773         Specify lower bound on value.
54774         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54775         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54776         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54777         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54778         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54779         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54780         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54781         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54782         value.
54783         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54784         as optional.
54785         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54786         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54787         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54788         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54789         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54790         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54791         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54792         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54793         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54794         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54795         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54796         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54797         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54798         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54799         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54800         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54801         entry.
54802         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54803         optional.
54804         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54805         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54806         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54807         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54808         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54809         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54810         Likewise.
54811         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54812         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54813         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54814         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54815         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54816         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54817         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54818         as optional.
54819         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54820         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54821         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54822         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54823         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54824         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54825         specify as optional.
54826         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54827         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54828         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54829         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54830         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54831         [XPG3] (NL_LANGMAX): Likewise.
54832         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54833         [POSIX || XPG3] (NL_NMAX): Likewise.
54834         [POSIX || XPG3] (NL_SETMAX): Likewise.
54835         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54836         [XPG3] (NZERO): Likewise.
54837         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54838         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54839         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54840         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54841         (REG_ERANGE): Expect.
54842         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54843         optional-constant.
54844         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54845         Use (void) in prototype.
54846         [POSIX] (*_t): Allow.
54847         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54848         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54849         (WRDE_BADVAL): Expect.
54850
54851         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54852         expect.
54853         [XPG3 || XPG4] (O_RSYNC): Likewise.
54854         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54855         Likewise.
54856         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54857         [XPG3 || XPG4] (sigqueue): Likewise.
54858         [XPG3 || XPG4] (sigtimedwait): Likewise.
54859         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54860         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54861         [XPG3 || XPG4] (vsnprintf): Likewise.
54862         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54863         Likewise.
54864         [XPG3 || XPG4] (blksize_t): Likewise.
54865         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54866         Likewise.
54867         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54868         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54869         [XPG3 || XPG4] (struct itimerspec): Likewise.
54870         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54871         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54872         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54873         [XPG3 || XPG4] (clockid_t): Likewise.
54874         [XPG3 || XPG4] (timer_t): Likewise.
54875         [XPG3 || XPG4] (clock_getres): Likewise.
54876         [XPG3 || XPG4] (clock_gettime): Likewise.
54877         [XPG3 || XPG4] (clock_settime): Likewise.
54878         [XPG3 || XPG4] (nanosleep): Likewise.
54879         [XPG3 || XPG4] (timer_create): Likewise.
54880         [XPG3 || XPG4] (timer_delete): Likewise.
54881         [XPG3 || XPG4] (timer_gettime): Likewise.
54882         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54883         [XPG3 || XPG4] (timer_settime): Likewise.
54884         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54885         [XPG3 || XPG4] (getlogin_r): Likewise.
54886         [XPG3 || XPG4] (pread): Likewise.
54887         [XPG3 || XPG4] (pthread_atfork): Likewise.
54888         [XPG3 || XPG4] (pwrite): Likewise.
54889
54890         [BZ #14835]
54891         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54892         <bits/siginfo.h>.
54893
54894 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54895
54896         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54897         finalizing MALLSTREAM.
54898
54899         * sysdeps/mach/hurd/syncfs.c: New file.
54900
54901 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54902
54903         [BZ #14719]
54904         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54905         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54906         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54907         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54908         (_nss_dns_gethostbyname4_r): Likewise.
54909         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54910         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54911
54912 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54913
54914         [BZ #13763]
54915         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54916
54917 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54918
54919         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54920         * elf/cache.c (print_entry): Print ",AArch64" for
54921         FLAG_AARCH64_LIB64
54922
54923         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54924         * elf/cache.c (print_entry): Print ",hard-float" for
54925         FLAG_ARM_LIBHF.
54926
54927 2012-11-18  David S. Miller  <davem@davemloft.net>
54928
54929         With help from Joseph Myers.
54930         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54931         cutoff to 2**-13.
54932         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54933         cutoff to 2**-25.
54934         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54935         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54936         small.
54937         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54938         * math/libm-test.inc (y0_test): New tests.
54939         (y1_test): New tests.
54940         * sysdeps/i386/fpu/libm-test-ulps: Update.
54941         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54942         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54943
54944 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54945
54946         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54947         64-bit targets.
54948         * configure: Regenerated.
54949
54950 2012-11-17  David S. Miller  <davem@davemloft.net>
54951
54952         [BZ #14811]
54953         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54954         nonzero exponents with absolute value below 0x1p-128 to +/-
54955         0x1p-128.
54956
54957 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54958
54959         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54960
54961         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54962
54963         * posix/getconf-speclist.c: New file.
54964         * posix/posix-envs.def: Likewise.
54965         * posix/confstr.c (START_ENV_GROUP): New macro.
54966         (END_ENV_GROUP): Likewise.
54967         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54968         (KNOWN_PRESENT_ENV_STRING): Likewise.
54969         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54970         (UNKNOWN_ENVIRONMENT): Likewise.
54971         (confstr): Include posix-envs.def instead of handling
54972         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54973         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54974         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54975         (END_ENV_GROUP): Likewise.
54976         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54977         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54978         (UNKNOWN_ENVIRONMENT): Likewise.
54979         (__sysconf): Include posix-envs.def instead of handling associated
54980         cases directly here.
54981         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54982         preprocessing getconf-speclist.c rather than running getconf or
54983         generating empty file.
54984
54985 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54986
54987         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54988
54989 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54990
54991         [BZ #14672]
54992         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54993
54994 2012-11-16  David S. Miller  <davem@davemloft.net>
54995
54996         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54997         smaller than LDBL_EPSILON/2.0L, just return xm1.
54998
54999 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
55000
55001         * elf/tst-array1.c (init): Set constructor priority to 1000.
55002         (fini): Set destructor priority to 1000.
55003         * elf/tst-array2dep.c: Likewise.
55004
55005 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55006
55007         [BZ #11741]
55008         * libio/fileops.c (_IO_new_file_write): Correctly return error.
55009         (_IO_new_file_xsputn): Also return EOF if none of the input
55010         data was written when overflow failed.
55011         * libio/iopadn.c (_IO_padn): Likewise.
55012         * libio/iowpadn.c (_IO_wpadn): Likewise.
55013         * stdio-common/tst-put-error.c: Add copyright notice.
55014         (do_test): Add case for printing padded string.
55015         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
55016         _IO_padn returned error.
55017         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
55018         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
55019         return EOF.
55020
55021 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55022
55023         * libio/libioP.h: Add comment note that the references to C++
55024         bits are now obsolete.
55025
55026 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55027
55028         * math/libm-test.inc (check_complex): Use asprintf.
55029
55030 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
55031
55032         * debug/pcprofiledump.c (print_version): Update copyright year.
55033         * malloc/memusagestat.c (print_version): Likewise.
55034
55035 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
55036
55037         [BZ #14831]
55038         * elf/Makefile (tests): Add tst-audit8.
55039         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
55040         ($(objpfx)tst-audit8.out): New target.
55041         (tst-audit8-ENV): New variable.
55042         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
55043         audit if l_reloc_result is NULL.
55044         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
55045         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
55046         * elf/tst-audit8.c: New file.
55047
55048 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55049
55050         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
55051         * misc/Makefile (CFLAGS-select.c): Define.
55052         * posix/Makefile (CFLAGS-pause.c): Define.
55053
55054 2012-11-13  David S. Miller  <davem@davemloft.net>
55055
55056         * crypt/Makefile: Move test targets after toplevel Rules
55057         inclusion.  Grab any necessary sysdep routines when linking.
55058         * crypt/md5.c (md5_process_block): Remove define, we will always
55059         name it __md5_process_block.
55060         (md5_finish_ctx): Update md5_process_block call.
55061         (md5_stream): Likewise.
55062         (md5_process_bytes): Likewise.
55063         (md5_process_block): Rename to __md5_process_block and move to ...
55064         * crypt/md5-block.c: ... here.
55065         * crypt/sha256.c (sha256_process_block): Move to ...
55066         * crypt/sha256-block.c: ... here.
55067         * crypt/sha512.c (sha512_process_block): Move to ...
55068         * crypt/sha512-block.c: ... here.
55069         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
55070         path.
55071         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
55072         * sysdeps/sparc/sparc64/multiarch/Makefile
55073         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
55074         crypt subdir.
55075         (localedef-aux): Add md5 crypto assembler when in locale subdir.
55076         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
55077         multiarch changes.
55078         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
55079         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
55080         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
55081         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
55082         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
55083         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
55084         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
55085         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
55086         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
55087         file.
55088         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
55089         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
55090         file.
55091         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
55092
55093 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
55094
55095         * timezone/tzselect.ksh: Update from tzcode git revision
55096         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
55097         * timezone/zdump.c: Likewise.
55098         * timezone/zic.c: Likewise.
55099         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
55100         in TZVERSION setting, not $(PKGVERSION).
55101         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
55102         REPORT_BUGS_TO settings.
55103
55104         [BZ #14838]
55105         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
55106         macro.
55107
55108 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55109
55110         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
55111         detection to immediately after _FP_ROUND().
55112         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
55113         bits are 0.
55114
55115 2012-11-11  David S. Miller  <davem@davemloft.net>
55116
55117         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
55118         inttypes.h
55119         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
55120         __close rather than their public counterparts.
55121
55122 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
55123
55124         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
55125         file.
55126         [UNIX98] (sem_timedwait): Do not expect.
55127         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
55128         [XPG4 || UNIX98] (sockatmark): Do not expect.
55129         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
55130         (clock_getcpuclockid): Do not expect.
55131         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
55132         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
55133         Do not expect.
55134         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
55135         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
55136         [UNIX98] (vwscanf): Likewise.
55137         [UNIX98] (vswscanf): Likewise.
55138
55139 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
55140
55141         * timezone/version.h: Remove file.
55142         * timezone/README: Do not refer to version.h.
55143         * timezone/Makefile ($(objpfx)zic.o): New dependency on
55144         $(objpfx)version.h.
55145         ($(objpfx)zdump.o): Likewise.
55146         ($(objpfx)version.h): New target.
55147
55148         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
55149         2012i.
55150         * timezone/README: Don't mention modification to tzselect.ksh.
55151         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
55152         work on unmodified tzselect.ksh.  Substitute version numbers in
55153         tzselect.ksh.
55154
55155         * Makefile (format-me): Remove.
55156         (INSTALL): Adjust indentation.  Use commands directly instead of
55157         using $(format-me).
55158
55159         * aclocal.m4 (ACX_PKGVERSION): New macro.
55160         (ACX_BUGURL): Likewise.
55161         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
55162         (PKGVERSION): New AC_DEFINE_UNQUOTED.
55163         (REPORT_BUGS_TO): Likewise.
55164         * configure: Regenerated.
55165         * config.h.in (PKGVERSION): New macro.
55166         (REPORT_BUGS_TO): Likewise.
55167         * config.make.in (PKGVERSION): New variable.
55168         (PKGVERSION_TEXI): Likewise.
55169         (REPORT_BUGS_TO): Likewise.
55170         (REPORT_BUGS_TEXI): Likewise.
55171         * Makefile (format-me): Use -I$(common-objpfx)manual.
55172         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
55173         ($(common-objpfx)manual/%): New target.
55174         (manual/%): Remove target.
55175         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
55176         (print_version): Use PKGVERSION.
55177         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
55178         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
55179         and REPORT_BUGS_TO.
55180         ($(objpfx)xtrace): Likewise.
55181         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
55182         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
55183         (print_version): Use PKGVERSION.
55184         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
55185         (do_version): Use PKGVERSION.
55186         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
55187         REPORT_BUGS_TO.
55188         (common-ldd-rewrite): Likewise.
55189         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
55190         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
55191         (print_version): Use PKGVERSION.
55192         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55193         * elf/pldd.c (argp_program_bug_address): Remove variable.
55194         (more_help): New function.
55195         (argp): Use more_help.
55196         (print_version): Use PKGVERSION.
55197         * elf/sln.c (main): Use PKGVERSION.
55198         (usage): Use REPORT_BUGS_TO.
55199         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
55200         (top level): Use PKGVERSION.
55201         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
55202         (print_version): Use PKGVERSION.
55203         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
55204         (print_version): Use PKGVERSION.
55205         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
55206         (print_version): Use PKGVERSION.
55207         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
55208         (print_version): Use PKGVERSION.
55209         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
55210         (print_version): Use PKGVERSION.
55211         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
55212         (print_version): Use PKGVERSION.
55213         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
55214         and BUGURL.
55215         ($(objpfx)memusage): Likewise.
55216         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
55217         (do_version): Use PKGVERSION.
55218         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
55219         (print_version): Use PKGVERSION.
55220         * malloc/mtrace.pl ($PACKAGE): Remove variable.
55221         ($PKGVERSION): New variable.
55222         ($REPORT_BUGS_TO): Likewise.
55223         (usage): Use $REPORT_BUGS_TO.
55224         (top level): Use $PKGVERSION.
55225         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
55226         ($(objpfx)pkgvers.texi): New rule.
55227         ($(objpfx)stamp-pkgvers): Likewise.
55228         * manual/install.texi: Include pkgvers.texi.
55229         (--with-pkgversion): Document new configure option.
55230         (--with-bugurl): Likewise.
55231         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
55232         than necessarily for this particular distribution.  Use
55233         REPORT_BUGS_TO for where to report bugs.
55234         * INSTALL: Regenerated.
55235         * manual/libc.texinfo: Include pkgvers.texi.
55236         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
55237         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
55238         (print_version): Use PKGVERSION.
55239         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
55240         (print_version): Use PKGVERSION.
55241         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
55242         (print_version): Use PKGVERSION.
55243         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
55244         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
55245         macro.
55246         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
55247         (print_version): Use PKGVERSION.
55248         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
55249         (print_version): Use PKGVERSION.
55250         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
55251         and PKGVERSION.
55252
55253         * timezone/checktab.awk: Update from tzcode 2012i.
55254         * timezone/ialloc.c: Likewise.
55255         * timezone/private.h: Likewise.
55256         * timezone/scheck.c: Likewise.
55257         * timezone/tzfile.h: Likewise.
55258         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
55259         (TZVERSION): Hardcode tzcode version number.
55260         * timezone/zdump.c: Update from tzcode 2012i.
55261         * timezone/zic.c: Likewise.
55262         * timezone/version.h: New file.
55263         * timezone/README: Describe version.h.  Update upstream location.
55264
55265         [BZ #14824]
55266         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
55267         (mktemp): Enable declaration.
55268         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
55269         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
55270         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
55271         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
55272         Likewise.
55273         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
55274         Likewise.
55275         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
55276         Likewise.
55277         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
55278         Likewise.
55279         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
55280         Likewise.
55281         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
55282         Likewise.
55283
55284         [BZ #14821]
55285         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
55286         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
55287         for copies of such integer values.
55288         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
55289         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
55290
55291 2012-11-09  Andreas Jaeger  <aj@suse.de>
55292
55293         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
55294         definitions and declarations that are provided by
55295         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
55296
55297 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55298
55299         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
55300         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
55301         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
55302         definition.
55303
55304 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55305
55306         * elf/elf.h: Update comment before AArch64 relocations.
55307
55308 2012-11-07  David S. Miller  <davem@davemloft.net>
55309
55310         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
55311         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
55312         (__start_context): Declare.
55313         (__makecontext_ret): Delete.
55314         (__makecontext): Hook up __start_context instead of
55315         __makecontext_ret.
55316         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55317         (sysdep_routines): Add __start_context when in stdlib.
55318
55319 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55320
55321         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
55322         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
55323         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
55324         hardcoded "nm".
55325         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
55326         (READELF): New variable.  Use it instead of hardcoded "readelf".
55327
55328 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
55329
55330         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
55331         * sysdeps/x86/Makefile: Here.
55332         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
55333         * sysdeps/x86/tst-xmmymm.sh: This.
55334
55335 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55336
55337         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
55338         expectations.
55339         [UNIX98] (pthread_barrier_t): Do not expect.
55340         [UNIX98] (pthread_barrierattr_t): Likewise.
55341         [UNIX98] (pthread_spinlock_t): Likewise.
55342         [UNIX98] (pthread_barrier_destroy): Likewise.
55343         [UNIX98] (pthread_barrier_init): Likewise.
55344         [UNIX98] (pthread_barrier_wait): Likewise.
55345         [UNIX98] (pthread_barrierattr_destroy): Likewise.
55346         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
55347         [UNIX98] (pthread_barrierattr_init): Likewise.
55348         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
55349         [UNIX98] (pthread_getcpuclockid): Likewise.
55350         [UNIX98] (pthread_mutex_timedlock): Likewise.
55351         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
55352         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
55353         [UNIX98] (pthread_sigmask): Likewise.
55354         [UNIX98] (pthread_spin_destroy): Likewise.
55355         [UNIX98] (pthread_spin_init): Likewise.
55356         [UNIX98] (pthread_spin_lock): Likewise.
55357         [UNIX98] (pthread_spin_trylock): Likewise.
55358         [UNIX98] (pthread_spin_unlock): Likewise.
55359         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
55360         Do not expect.
55361         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
55362         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
55363         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55364         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55365         [XPG3 || XPG4] (pthread_key_t): Likewise.
55366         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55367         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55368         [XPG3 || XPG4] (pthread_once_t): Likewise.
55369         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55370         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55371         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55372         [XPG3 || XPG4] (pthread_t): Likewise.
55373
55374         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55375         not expect.
55376         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55377
55378         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55379         Change function return type to int.
55380
55381         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55382         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55383         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55384         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55385         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55386         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55387         [!POSIX] (posix_madvise): Likewise.
55388         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55389         && !UNIX98].
55390         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55391         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55392         (mode_t): Likewise.
55393         (posix_mem_offset): Likewise.
55394         (posix_typed_mem_get_info): Likewise.
55395         (posix_typed_mem_open): Likewise.
55396
55397         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55398         Change condition to [XOPEN2K8].
55399
55400         * conform/conformtest.pl: Preprocess allow-header data with -x c
55401         instead of from stdin.
55402         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55403         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55404         [C99-based standards] (cerfc): Likewise.
55405         [C99-based standards] (cexp2): Likewise.
55406         [C99-based standards] (cexpm1): Likewise.
55407         [C99-based standards] (clog10): Likewise.
55408         [C99-based standards] (clog1p): Likewise.
55409         [C99-based standards] (clog2): Likewise.
55410         [C99-based standards] (clgamma): Likewise.
55411         [C99-based standards] (ctgamma): Likewise.
55412         [C99-based standards] (cerff): Likewise.
55413         [C99-based standards] (cerfcf): Likewise.
55414         [C99-based standards] (cexp2f): Likewise.
55415         [C99-based standards] (cexpm1f): Likewise.
55416         [C99-based standards] (clog10f): Likewise.
55417         [C99-based standards] (clog1pf): Likewise.
55418         [C99-based standards] (clog2f): Likewise.
55419         [C99-based standards] (clgammaf): Likewise.
55420         [C99-based standards] (ctgammaf): Likewise.
55421         [C99-based standards] (cerfl): Likewise.
55422         [C99-based standards] (cerfcl): Likewise.
55423         [C99-based standards] (cexp2l): Likewise.
55424         [C99-based standards] (cexpm1l): Likewise.
55425         [C99-based standards] (clog10l): Likewise.
55426         [C99-based standards] (clog1pl): Likewise.
55427         [C99-based standards] (clog2l): Likewise.
55428         [C99-based standards] (clgammal): Likewise.
55429         [C99-based standards] (ctgammal): Likewise.
55430         * conform/data/inttypes.h-data [C99-based standards]: Include
55431         stdint.h-data.  Remove all expectations for stdint.h contents.
55432         [C99-based standards] (PRI*): Do not allow.
55433         [C99-based standards] (SCN*): Likewise.
55434         [C99-based standards] (*_t): Likewise.
55435         [C99-based-standards] (PRId8): Expect macro.
55436         [C99-based-standards] (PRIi8): Likewise.
55437         [C99-based-standards] (PRIo8): Likewise.
55438         [C99-based-standards] (PRIu8): Likewise.
55439         [C99-based-standards] (PRIx8): Likewise.
55440         [C99-based-standards] (PRIX8): Likewise.
55441         [C99-based-standards] (SCNd8): Likewise.
55442         [C99-based-standards] (SCNi8): Likewise.
55443         [C99-based-standards] (SCNo8): Likewise.
55444         [C99-based-standards] (SCNu8): Likewise.
55445         [C99-based-standards] (SCNx8): Likewise.
55446         [C99-based-standards] (PRIdLEAST8): Likewise.
55447         [C99-based-standards] (PRIiLEAST8): Likewise.
55448         [C99-based-standards] (PRIoLEAST8): Likewise.
55449         [C99-based-standards] (PRIuLEAST8): Likewise.
55450         [C99-based-standards] (PRIxLEAST8): Likewise.
55451         [C99-based-standards] (PRIXLEAST8): Likewise.
55452         [C99-based-standards] (SCNdLEAST8): Likewise.
55453         [C99-based-standards] (SCNiLEAST8): Likewise.
55454         [C99-based-standards] (SCNoLEAST8): Likewise.
55455         [C99-based-standards] (SCNuLEAST8): Likewise.
55456         [C99-based-standards] (SCNxLEAST8): Likewise.
55457         [C99-based-standards] (PRIdFAST8): Likewise.
55458         [C99-based-standards] (PRIiFAST8): Likewise.
55459         [C99-based-standards] (PRIoFAST8): Likewise.
55460         [C99-based-standards] (PRIuFAST8): Likewise.
55461         [C99-based-standards] (PRIxFAST8): Likewise.
55462         [C99-based-standards] (PRIXFAST8): Likewise.
55463         [C99-based-standards] (SCNdFAST8): Likewise.
55464         [C99-based-standards] (SCNiFAST8): Likewise.
55465         [C99-based-standards] (SCNoFAST8): Likewise.
55466         [C99-based-standards] (SCNuFAST8): Likewise.
55467         [C99-based-standards] (SCNxFAST8): Likewise.
55468         [C99-based-standards] (PRId16): Likewise.
55469         [C99-based-standards] (PRIi16): Likewise.
55470         [C99-based-standards] (PRIo16): Likewise.
55471         [C99-based-standards] (PRIu16): Likewise.
55472         [C99-based-standards] (PRIx16): Likewise.
55473         [C99-based-standards] (PRIX16): Likewise.
55474         [C99-based-standards] (SCNd16): Likewise.
55475         [C99-based-standards] (SCNi16): Likewise.
55476         [C99-based-standards] (SCNo16): Likewise.
55477         [C99-based-standards] (SCNu16): Likewise.
55478         [C99-based-standards] (SCNx16): Likewise.
55479         [C99-based-standards] (PRIdLEAST16): Likewise.
55480         [C99-based-standards] (PRIiLEAST16): Likewise.
55481         [C99-based-standards] (PRIoLEAST16): Likewise.
55482         [C99-based-standards] (PRIuLEAST16): Likewise.
55483         [C99-based-standards] (PRIxLEAST16): Likewise.
55484         [C99-based-standards] (PRIXLEAST16): Likewise.
55485         [C99-based-standards] (SCNdLEAST16): Likewise.
55486         [C99-based-standards] (SCNiLEAST16): Likewise.
55487         [C99-based-standards] (SCNoLEAST16): Likewise.
55488         [C99-based-standards] (SCNuLEAST16): Likewise.
55489         [C99-based-standards] (SCNxLEAST16): Likewise.
55490         [C99-based-standards] (PRIdFAST16): Likewise.
55491         [C99-based-standards] (PRIiFAST16): Likewise.
55492         [C99-based-standards] (PRIoFAST16): Likewise.
55493         [C99-based-standards] (PRIuFAST16): Likewise.
55494         [C99-based-standards] (PRIxFAST16): Likewise.
55495         [C99-based-standards] (PRIXFAST16): Likewise.
55496         [C99-based-standards] (SCNdFAST16): Likewise.
55497         [C99-based-standards] (SCNiFAST16): Likewise.
55498         [C99-based-standards] (SCNoFAST16): Likewise.
55499         [C99-based-standards] (SCNuFAST16): Likewise.
55500         [C99-based-standards] (SCNxFAST16): Likewise.
55501         [C99-based-standards] (PRId32): Likewise.
55502         [C99-based-standards] (PRIi32): Likewise.
55503         [C99-based-standards] (PRIo32): Likewise.
55504         [C99-based-standards] (PRIu32): Likewise.
55505         [C99-based-standards] (PRIx32): Likewise.
55506         [C99-based-standards] (PRIX32): Likewise.
55507         [C99-based-standards] (SCNd32): Likewise.
55508         [C99-based-standards] (SCNi32): Likewise.
55509         [C99-based-standards] (SCNo32): Likewise.
55510         [C99-based-standards] (SCNu32): Likewise.
55511         [C99-based-standards] (SCNx32): Likewise.
55512         [C99-based-standards] (PRIdLEAST32): Likewise.
55513         [C99-based-standards] (PRIiLEAST32): Likewise.
55514         [C99-based-standards] (PRIoLEAST32): Likewise.
55515         [C99-based-standards] (PRIuLEAST32): Likewise.
55516         [C99-based-standards] (PRIxLEAST32): Likewise.
55517         [C99-based-standards] (PRIXLEAST32): Likewise.
55518         [C99-based-standards] (SCNdLEAST32): Likewise.
55519         [C99-based-standards] (SCNiLEAST32): Likewise.
55520         [C99-based-standards] (SCNoLEAST32): Likewise.
55521         [C99-based-standards] (SCNuLEAST32): Likewise.
55522         [C99-based-standards] (SCNxLEAST32): Likewise.
55523         [C99-based-standards] (PRIdFAST32): Likewise.
55524         [C99-based-standards] (PRIiFAST32): Likewise.
55525         [C99-based-standards] (PRIoFAST32): Likewise.
55526         [C99-based-standards] (PRIuFAST32): Likewise.
55527         [C99-based-standards] (PRIxFAST32): Likewise.
55528         [C99-based-standards] (PRIXFAST32): Likewise.
55529         [C99-based-standards] (SCNdFAST32): Likewise.
55530         [C99-based-standards] (SCNiFAST32): Likewise.
55531         [C99-based-standards] (SCNoFAST32): Likewise.
55532         [C99-based-standards] (SCNuFAST32): Likewise.
55533         [C99-based-standards] (SCNxFAST32): Likewise.
55534         [C99-based-standards] (PRId64): Likewise.
55535         [C99-based-standards] (PRIi64): Likewise.
55536         [C99-based-standards] (PRIo64): Likewise.
55537         [C99-based-standards] (PRIu64): Likewise.
55538         [C99-based-standards] (PRIx64): Likewise.
55539         [C99-based-standards] (PRIX64): Likewise.
55540         [C99-based-standards] (SCNd64): Likewise.
55541         [C99-based-standards] (SCNi64): Likewise.
55542         [C99-based-standards] (SCNo64): Likewise.
55543         [C99-based-standards] (SCNu64): Likewise.
55544         [C99-based-standards] (SCNx64): Likewise.
55545         [C99-based-standards] (PRIdLEAST64): Likewise.
55546         [C99-based-standards] (PRIiLEAST64): Likewise.
55547         [C99-based-standards] (PRIoLEAST64): Likewise.
55548         [C99-based-standards] (PRIuLEAST64): Likewise.
55549         [C99-based-standards] (PRIxLEAST64): Likewise.
55550         [C99-based-standards] (PRIXLEAST64): Likewise.
55551         [C99-based-standards] (SCNdLEAST64): Likewise.
55552         [C99-based-standards] (SCNiLEAST64): Likewise.
55553         [C99-based-standards] (SCNoLEAST64): Likewise.
55554         [C99-based-standards] (SCNuLEAST64): Likewise.
55555         [C99-based-standards] (SCNxLEAST64): Likewise.
55556         [C99-based-standards] (PRIdFAST64): Likewise.
55557         [C99-based-standards] (PRIiFAST64): Likewise.
55558         [C99-based-standards] (PRIoFAST64): Likewise.
55559         [C99-based-standards] (PRIuFAST64): Likewise.
55560         [C99-based-standards] (PRIxFAST64): Likewise.
55561         [C99-based-standards] (PRIXFAST64): Likewise.
55562         [C99-based-standards] (SCNdFAST64): Likewise.
55563         [C99-based-standards] (SCNiFAST64): Likewise.
55564         [C99-based-standards] (SCNoFAST64): Likewise.
55565         [C99-based-standards] (SCNuFAST64): Likewise.
55566         [C99-based-standards] (SCNxFAST64): Likewise.
55567         [C99-based-standards] (PRIdMAX): Likewise.
55568         [C99-based-standards] (PRIiMAX): Likewise.
55569         [C99-based-standards] (PRIoMAX): Likewise.
55570         [C99-based-standards] (PRIuMAX): Likewise.
55571         [C99-based-standards] (PRIxMAX): Likewise.
55572         [C99-based-standards] (PRIXMAX): Likewise.
55573         [C99-based-standards] (SCNdMAX): Likewise.
55574         [C99-based-standards] (SCNiMAX): Likewise.
55575         [C99-based-standards] (SCNoMAX): Likewise.
55576         [C99-based-standards] (SCNuMAX): Likewise.
55577         [C99-based-standards] (SCNxMAX): Likewise.
55578         [C99-based-standards] (PRIdPTR): Likewise.
55579         [C99-based-standards] (PRIiPTR): Likewise.
55580         [C99-based-standards] (PRIoPTR): Likewise.
55581         [C99-based-standards] (PRIuPTR): Likewise.
55582         [C99-based-standards] (PRIxPTR): Likewise.
55583         [C99-based-standards] (PRIXPTR): Likewise.
55584         [C99-based-standards] (SCNdPTR): Likewise.
55585         [C99-based-standards] (SCNiPTR): Likewise.
55586         [C99-based-standards] (SCNoPTR): Likewise.
55587         [C99-based-standards] (SCNuPTR): Likewise.
55588         [C99-based-standards] (SCNxPTR): Likewise.
55589         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55590         allow.
55591         * conform/data/stdint.h-data: Update comments to clarify
55592         requirements.
55593         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55594         type.
55595         [C99-based standards] (INT8_MAX): Likewise.
55596         [C99-based standards] (INT16_MIN): Likewise.
55597         [C99-based standards] (INT16_MAX): Likewise.
55598         [C99-based standards] (INT32_MIN): Likewise.
55599         [C99-based standards] (INT32_MAX): Likewise.
55600         [C99-based standards] (INT64_MIN): Likewise.
55601         [C99-based standards] (INT64_MAX): Likewise.
55602         [C99-based standards] (UINT8_MAX): Likewise.
55603         [C99-based standards] (UINT16_MAX): Likewise.
55604         [C99-based standards] (UINT32_MAX): Likewise.
55605         [C99-based standards] (UINT64_MAX): Likewise.
55606         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55607         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55608         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55609         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55610         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55611         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55612         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55613         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55614         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55615         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55616         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55617         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55618         [C99-based standards] (INT_FAST8_MIN): Likewise.
55619         [C99-based standards] (INT_FAST8_MAX): Likewise.
55620         [C99-based standards] (INT_FAST16_MIN): Likewise.
55621         [C99-based standards] (INT_FAST16_MAX): Likewise.
55622         [C99-based standards] (INT_FAST32_MIN): Likewise.
55623         [C99-based standards] (INT_FAST32_MAX): Likewise.
55624         [C99-based standards] (INT_FAST64_MIN): Likewise.
55625         [C99-based standards] (INT_FAST64_MAX): Likewise.
55626         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55627         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55628         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55629         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55630         [C99-based standards] (INTPTR_MIN): Likewise.
55631         [C99-based standards] (INTPTR_MAX): Likewise.
55632         [C99-based standards] (UINTPTR_MAX): Likewise.
55633         [C99-based standards] (INTMAX_MIN): Likewise.
55634         [C99-based standards] (INTMAX_MAX): Likewise.
55635         [C99-based standards] (UINTMAX_MAX): Likewise.
55636         [C99-based standards] (PTRDIFF_MIN): Likewise.
55637         [C99-based standards] (PTRDIFF_MAX): Likewise.
55638         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55639         [C99-based standards] (SIZE_MAX): Likewise.
55640         [C99-based standards] (WCHAR_MAX): Likewise.
55641         [C99-based standards] (WINT_MAX): Likewise.
55642         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55643         constraint on value.
55644         [C99-based standards] (WCHAR_MIN): Likewise.
55645         [C99-based standards] (WINT_MIN): Likewise.
55646         [C99-based standards] (*_t): Allow.
55647         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55648         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55649         Include math.h-data and complex.h-data.  Remove all expectations
55650         of math.h and complex.h contents.
55651         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55652         at end of line.
55653         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55654         (struct tm): Expect tag.
55655         [C99-based-standards] (wcstof): Expect function.
55656         [C99-based-standards] (wcstold): Likewise.
55657         [C99-based-standards] (wcstoll): Likewise.
55658         [C99-based-standards] (wcstoull): Likewise.
55659         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55660         macro-int-constant.  Specify type.
55661         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55662         constraint on value.
55663         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55664         Specify type.
55665         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55666         Specify value.
55667         [ISO C standards]: Do not allow headers.
55668         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55669         wcs[abcdefghijklmnopqrstuvwxyz]*.
55670         [ISO C standards] (*_t): Do not allow.
55671         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55672         Expect function.
55673         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55674         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55675         Specify type.
55676         [ISO C standards]: Do not allow headers.
55677         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55678         is[abcdefghijklmnopqrstuvwxyz]*.
55679         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55680         to[abcdefghijklmnopqrstuvwxyz]*.
55681         [ISO C standards] (*_t): Do not allow.
55682         * conform/data/stdalign.h-data: New file.
55683         * conform/data/stdbool.h-data: Likewise.
55684         * conform/data/stdnoreturn.h-data: Likewise.
55685
55686 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55687
55688         [BZ #14815]
55689         * manual/filesys.texi (Directory Entries): Typo fix.
55690         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55691
55692 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55693
55694         * elf/elf.h (EM_AARCH64): New macro.
55695         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55696         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55697         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55698         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55699         (R_AARCH64_TLSDESC): Likewise.
55700         (NT_ARM_TLS): Likewise.
55701         (NT_ARM_HW_BREAK): Likewise.
55702         (NT_ARM_HW_WATCH): Likewise.
55703
55704 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55705
55706         [BZ #14811]
55707         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55708         (__ieee754_powl): Saturate nonzero exponents with absolute value
55709         below 0x1p-79 to +/- 0x1p-79.
55710         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55711         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55712         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55713         nonzero exponents with absolute value below 0x1p-32 to +/-
55714         0x1p-32.
55715         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55716         (__ieee754_powl): Saturate nonzero exponents with absolute value
55717         below 0x1p-79 to +/- 0x1p-79.
55718         * math/libm-test.inc (pow_test): Add more tests.
55719
55720 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55721
55722         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55723         _dl_s390_cap_flags with kernel. Increase string length.
55724         (_dl_s390_platforms): Add z196 and zEC12.
55725
55726 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55727
55728         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55729         Change XOPEN21K to XOPEN2K.
55730
55731 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55732
55733         * string/memmove.c: Use memcpy when possible.
55734
55735 2012-11-06  Andreas Jaeger  <aj@suse.de>
55736
55737         * po/eo.po: Update from translation team.
55738
55739 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55740
55741         [BZ #14793]
55742         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55743         exponent and small x and y exponents, scale x or y up.  Increase
55744         by 2 the exponent used in scaling up.
55745         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55746         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55747         * math/libm-test.inc (fma_test): Add more tests.
55748         (fma_test_towardzero): Likewise.
55749         (fma_test_downward): Likewise.
55750         (fma_test_upward): Likewise.
55751
55752 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55753
55754         [BZ #14805]
55755         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55756         fenv_t *.
55757
55758         [BZ #14801]
55759         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55760         namespace for names of struct fields.
55761         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55762         fenv_t fields.
55763         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55764         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55765
55766 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55767
55768         [BZ #3665]
55769         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55770
55771 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55772
55773         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55774         PTR_DEMANGLE.
55775
55776         [BZ #5246]
55777         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55778         PTR_DEMANGLE.
55779
55780 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55781
55782         [BZ #14797]
55783         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55784         definitely overflow as x * y not x * y + z.
55785         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55786         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55787         * math/libm-test.inc (fma_test): Add more tests.
55788         (fma_test_towardzero): Likewise.
55789         (fma_test_downward): Likewise.
55790         (fma_test_upward): Likewise.
55791
55792 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55793
55794         [BZ #157]
55795
55796         * include/stub-tag.h: Remove file.
55797         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55798         '#include' of it.
55799         * manual/maint.texi (Porting): Don't reference it.
55800         * Makerules ($(objpfx)stubs): Likewise.
55801         * dirent/closedir.c: Don't include <stub-tag.h>.
55802         * dirent/dirfd.c: Likewise.
55803         * dirent/fdopendir.c: Likewise.
55804         * dirent/getdents.c: Likewise.
55805         * dirent/getdents64.c: Likewise.
55806         * dirent/opendir.c: Likewise.
55807         * dirent/readdir.c: Likewise.
55808         * dirent/readdir64.c: Likewise.
55809         * dirent/readdir64_r.c: Likewise.
55810         * dirent/readdir_r.c: Likewise.
55811         * dirent/rewinddir.c: Likewise.
55812         * dirent/seekdir.c: Likewise.
55813         * dirent/telldir.c: Likewise.
55814         * gmon/profil.c: Likewise.
55815         * grp/setgroups.c: Likewise.
55816         * inet/if_index.c: Likewise.
55817         * io/access.c: Likewise.
55818         * io/chdir.c: Likewise.
55819         * io/chmod.c: Likewise.
55820         * io/chown.c: Likewise.
55821         * io/close.c: Likewise.
55822         * io/dup.c: Likewise.
55823         * io/dup2.c: Likewise.
55824         * io/dup3.c: Likewise.
55825         * io/euidaccess.c: Likewise.
55826         * io/faccessat.c: Likewise.
55827         * io/fchdir.c: Likewise.
55828         * io/fchmod.c: Likewise.
55829         * io/fchmodat.c: Likewise.
55830         * io/fchown.c: Likewise.
55831         * io/fchownat.c: Likewise.
55832         * io/fcntl.c: Likewise.
55833         * io/flock.c: Likewise.
55834         * io/fstatfs.c: Likewise.
55835         * io/fstatfs64.c: Likewise.
55836         * io/fstatvfs.c: Likewise.
55837         * io/fstatvfs64.c: Likewise.
55838         * io/futimens.c: Likewise.
55839         * io/fxstat.c: Likewise.
55840         * io/fxstat64.c: Likewise.
55841         * io/fxstatat.c: Likewise.
55842         * io/fxstatat64.c: Likewise.
55843         * io/getcwd.c: Likewise.
55844         * io/isatty.c: Likewise.
55845         * io/lchmod.c: Likewise.
55846         * io/lchown.c: Likewise.
55847         * io/link.c: Likewise.
55848         * io/linkat.c: Likewise.
55849         * io/lseek.c: Likewise.
55850         * io/lseek64.c: Likewise.
55851         * io/lxstat64.c: Likewise.
55852         * io/mkdir.c: Likewise.
55853         * io/mkdirat.c: Likewise.
55854         * io/mkfifo.c: Likewise.
55855         * io/mkfifoat.c: Likewise.
55856         * io/open.c: Likewise.
55857         * io/open64.c: Likewise.
55858         * io/openat.c: Likewise.
55859         * io/openat64.c: Likewise.
55860         * io/pipe.c: Likewise.
55861         * io/pipe2.c: Likewise.
55862         * io/poll.c: Likewise.
55863         * io/posix_fadvise.c: Likewise.
55864         * io/posix_fadvise64.c: Likewise.
55865         * io/posix_fallocate.c: Likewise.
55866         * io/posix_fallocate64.c: Likewise.
55867         * io/read.c: Likewise.
55868         * io/readlink.c: Likewise.
55869         * io/readlinkat.c: Likewise.
55870         * io/rmdir.c: Likewise.
55871         * io/sendfile.c: Likewise.
55872         * io/sendfile64.c: Likewise.
55873         * io/statfs.c: Likewise.
55874         * io/statfs64.c: Likewise.
55875         * io/statvfs.c: Likewise.
55876         * io/statvfs64.c: Likewise.
55877         * io/symlink.c: Likewise.
55878         * io/symlinkat.c: Likewise.
55879         * io/ttyname.c: Likewise.
55880         * io/ttyname_r.c: Likewise.
55881         * io/umask.c: Likewise.
55882         * io/unlink.c: Likewise.
55883         * io/unlinkat.c: Likewise.
55884         * io/utime.c: Likewise.
55885         * io/utimensat.c: Likewise.
55886         * io/write.c: Likewise.
55887         * io/xmknod.c: Likewise.
55888         * io/xmknodat.c: Likewise.
55889         * io/xstat.c: Likewise.
55890         * io/xstat64.c: Likewise.
55891         * login/getpt.c: Likewise.
55892         * login/grantpt.c: Likewise.
55893         * login/unlockpt.c: Likewise.
55894         * math/e_acoshl.c: Likewise.
55895         * math/e_acosl.c: Likewise.
55896         * math/e_asinl.c: Likewise.
55897         * math/e_atan2l.c: Likewise.
55898         * math/e_atanhl.c: Likewise.
55899         * math/e_coshl.c: Likewise.
55900         * math/e_expl.c: Likewise.
55901         * math/e_fmodl.c: Likewise.
55902         * math/e_gammal_r.c: Likewise.
55903         * math/e_hypotl.c: Likewise.
55904         * math/e_j0l.c: Likewise.
55905         * math/e_j1l.c: Likewise.
55906         * math/e_jnl.c: Likewise.
55907         * math/e_lgammal_r.c: Likewise.
55908         * math/e_log10l.c: Likewise.
55909         * math/e_log2l.c: Likewise.
55910         * math/e_logl.c: Likewise.
55911         * math/e_powl.c: Likewise.
55912         * math/e_rem_pio2l.c: Likewise.
55913         * math/e_sinhl.c: Likewise.
55914         * math/e_sqrtl.c: Likewise.
55915         * math/fclrexcpt.c: Likewise.
55916         * math/fedisblxcpt.c: Likewise.
55917         * math/feenablxcpt.c: Likewise.
55918         * math/fegetenv.c: Likewise.
55919         * math/fegetexcept.c: Likewise.
55920         * math/fegetround.c: Likewise.
55921         * math/feholdexcpt.c: Likewise.
55922         * math/fesetenv.c: Likewise.
55923         * math/fesetround.c: Likewise.
55924         * math/feupdateenv.c: Likewise.
55925         * math/fgetexcptflg.c: Likewise.
55926         * math/fraiseexcpt.c: Likewise.
55927         * math/fsetexcptflg.c: Likewise.
55928         * math/ftestexcept.c: Likewise.
55929         * math/k_cosl.c: Likewise.
55930         * math/k_rem_pio2l.c: Likewise.
55931         * math/k_sinl.c: Likewise.
55932         * math/k_tanl.c: Likewise.
55933         * math/s_asinhl.c: Likewise.
55934         * math/s_atanl.c: Likewise.
55935         * math/s_cbrtl.c: Likewise.
55936         * math/s_erfl.c: Likewise.
55937         * math/s_expm1l.c: Likewise.
55938         * math/s_log1pl.c: Likewise.
55939         * math/s_tanhl.c: Likewise.
55940         * misc/acct.c: Likewise.
55941         * misc/brk.c: Likewise.
55942         * misc/chflags.c: Likewise.
55943         * misc/chroot.c: Likewise.
55944         * misc/fchflags.c: Likewise.
55945         * misc/fgetxattr.c: Likewise.
55946         * misc/flistxattr.c: Likewise.
55947         * misc/fremovexattr.c: Likewise.
55948         * misc/fsetxattr.c: Likewise.
55949         * misc/fsync.c: Likewise.
55950         * misc/ftruncate.c: Likewise.
55951         * misc/futimes.c: Likewise.
55952         * misc/futimesat.c: Likewise.
55953         * misc/getdomain.c: Likewise.
55954         * misc/getdtsz.c: Likewise.
55955         * misc/gethostid.c: Likewise.
55956         * misc/gethostname.c: Likewise.
55957         * misc/getloadavg.c: Likewise.
55958         * misc/getpagesize.c: Likewise.
55959         * misc/getsysstats.c: Likewise.
55960         * misc/getxattr.c: Likewise.
55961         * misc/gtty.c: Likewise.
55962         * misc/ioctl.c: Likewise.
55963         * misc/lgetxattr.c: Likewise.
55964         * misc/listxattr.c: Likewise.
55965         * misc/llistxattr.c: Likewise.
55966         * misc/lremovexattr.c: Likewise.
55967         * misc/lsetxattr.c: Likewise.
55968         * misc/lutimes.c: Likewise.
55969         * misc/madvise.c: Likewise.
55970         * misc/mincore.c: Likewise.
55971         * misc/mlock.c: Likewise.
55972         * misc/mlockall.c: Likewise.
55973         * misc/mmap.c: Likewise.
55974         * misc/mprotect.c: Likewise.
55975         * misc/msync.c: Likewise.
55976         * misc/munlock.c: Likewise.
55977         * misc/munlockall.c: Likewise.
55978         * misc/munmap.c: Likewise.
55979         * misc/preadv.c: Likewise.
55980         * misc/preadv64.c: Likewise.
55981         * misc/ptrace.c: Likewise.
55982         * misc/pwritev.c: Likewise.
55983         * misc/pwritev64.c: Likewise.
55984         * misc/readv.c: Likewise.
55985         * misc/reboot.c: Likewise.
55986         * misc/remap_file_pages.c: Likewise.
55987         * misc/removexattr.c: Likewise.
55988         * misc/revoke.c: Likewise.
55989         * misc/select.c: Likewise.
55990         * misc/setdomain.c: Likewise.
55991         * misc/setegid.c: Likewise.
55992         * misc/seteuid.c: Likewise.
55993         * misc/sethostid.c: Likewise.
55994         * misc/sethostname.c: Likewise.
55995         * misc/setregid.c: Likewise.
55996         * misc/setreuid.c: Likewise.
55997         * misc/setxattr.c: Likewise.
55998         * misc/sstk.c: Likewise.
55999         * misc/stty.c: Likewise.
56000         * misc/swapoff.c: Likewise.
56001         * misc/swapon.c: Likewise.
56002         * misc/sync.c: Likewise.
56003         * misc/syncfs.c: Likewise.
56004         * misc/syscall.c: Likewise.
56005         * misc/truncate.c: Likewise.
56006         * misc/ualarm.c: Likewise.
56007         * misc/usleep.c: Likewise.
56008         * misc/ustat.c: Likewise.
56009         * misc/utimes.c: Likewise.
56010         * misc/vhangup.c: Likewise.
56011         * misc/writev.c: Likewise.
56012         * posix/_exit.c: Likewise.
56013         * posix/alarm.c: Likewise.
56014         * posix/execve.c: Likewise.
56015         * posix/fexecve.c: Likewise.
56016         * posix/fork.c: Likewise.
56017         * posix/fpathconf.c: Likewise.
56018         * posix/getaddrinfo.c: Likewise.
56019         * posix/getegid.c: Likewise.
56020         * posix/geteuid.c: Likewise.
56021         * posix/getgid.c: Likewise.
56022         * posix/getgroups.c: Likewise.
56023         * posix/getlogin.c: Likewise.
56024         * posix/getlogin_r.c: Likewise.
56025         * posix/getpgid.c: Likewise.
56026         * posix/getpid.c: Likewise.
56027         * posix/getppid.c: Likewise.
56028         * posix/getresgid.c: Likewise.
56029         * posix/getresuid.c: Likewise.
56030         * posix/getsid.c: Likewise.
56031         * posix/getuid.c: Likewise.
56032         * posix/glob64.c: Likewise.
56033         * posix/nanosleep.c: Likewise.
56034         * posix/pathconf.c: Likewise.
56035         * posix/pause.c: Likewise.
56036         * posix/posix_madvise.c: Likewise.
56037         * posix/pread.c: Likewise.
56038         * posix/pread64.c: Likewise.
56039         * posix/pwrite.c: Likewise.
56040         * posix/pwrite64.c: Likewise.
56041         * posix/sched_getaffinity.c: Likewise.
56042         * posix/sched_getp.c: Likewise.
56043         * posix/sched_gets.c: Likewise.
56044         * posix/sched_primax.c: Likewise.
56045         * posix/sched_primin.c: Likewise.
56046         * posix/sched_rr_gi.c: Likewise.
56047         * posix/sched_setaffinity.c: Likewise.
56048         * posix/sched_setp.c: Likewise.
56049         * posix/sched_sets.c: Likewise.
56050         * posix/sched_yield.c: Likewise.
56051         * posix/setgid.c: Likewise.
56052         * posix/setlogin.c: Likewise.
56053         * posix/setpgid.c: Likewise.
56054         * posix/setresgid.c: Likewise.
56055         * posix/setresuid.c: Likewise.
56056         * posix/setsid.c: Likewise.
56057         * posix/setuid.c: Likewise.
56058         * posix/sleep.c: Likewise.
56059         * posix/spawni.c: Likewise.
56060         * posix/sysconf.c: Likewise.
56061         * posix/times.c: Likewise.
56062         * posix/wait.c: Likewise.
56063         * posix/wait3.c: Likewise.
56064         * posix/wait4.c: Likewise.
56065         * posix/waitpid.c: Likewise.
56066         * resolv/gai_sigqueue.c: Likewise.
56067         * resource/getpriority.c: Likewise.
56068         * resource/getrlimit.c: Likewise.
56069         * resource/getrusage.c: Likewise.
56070         * resource/nice.c: Likewise.
56071         * resource/setpriority.c: Likewise.
56072         * resource/setrlimit.c: Likewise.
56073         * resource/ulimit.c: Likewise.
56074         * rt/aio_cancel.c: Likewise.
56075         * rt/aio_fsync.c: Likewise.
56076         * rt/aio_read.c: Likewise.
56077         * rt/aio_sigqueue.c: Likewise.
56078         * rt/aio_suspend.c: Likewise.
56079         * rt/aio_write.c: Likewise.
56080         * rt/clock_getres.c: Likewise.
56081         * rt/clock_gettime.c: Likewise.
56082         * rt/clock_nanosleep.c: Likewise.
56083         * rt/clock_settime.c: Likewise.
56084         * rt/lio_listio.c: Likewise.
56085         * rt/mq_close.c: Likewise.
56086         * rt/mq_getattr.c: Likewise.
56087         * rt/mq_notify.c: Likewise.
56088         * rt/mq_open.c: Likewise.
56089         * rt/mq_receive.c: Likewise.
56090         * rt/mq_send.c: Likewise.
56091         * rt/mq_setattr.c: Likewise.
56092         * rt/mq_timedreceive.c: Likewise.
56093         * rt/mq_timedsend.c: Likewise.
56094         * rt/mq_unlink.c: Likewise.
56095         * rt/shm_open.c: Likewise.
56096         * rt/shm_unlink.c: Likewise.
56097         * rt/timer_create.c: Likewise.
56098         * rt/timer_delete.c: Likewise.
56099         * rt/timer_getoverr.c: Likewise.
56100         * rt/timer_gettime.c: Likewise.
56101         * rt/timer_settime.c: Likewise.
56102         * setjmp/__longjmp.c: Likewise.
56103         * setjmp/setjmp.c: Likewise.
56104         * signal/kill.c: Likewise.
56105         * signal/killpg.c: Likewise.
56106         * signal/raise.c: Likewise.
56107         * signal/sigaction.c: Likewise.
56108         * signal/sigaltstack.c: Likewise.
56109         * signal/sigblock.c: Likewise.
56110         * signal/sigignore.c: Likewise.
56111         * signal/sigintr.c: Likewise.
56112         * signal/signal.c: Likewise.
56113         * signal/sigpause.c: Likewise.
56114         * signal/sigpending.c: Likewise.
56115         * signal/sigqueue.c: Likewise.
56116         * signal/sigreturn.c: Likewise.
56117         * signal/sigset.c: Likewise.
56118         * signal/sigsetmask.c: Likewise.
56119         * signal/sigstack.c: Likewise.
56120         * signal/sigsuspend.c: Likewise.
56121         * signal/sigtimedwait.c: Likewise.
56122         * signal/sigvec.c: Likewise.
56123         * signal/sigwait.c: Likewise.
56124         * signal/sigwaitinfo.c: Likewise.
56125         * signal/sysv_signal.c: Likewise.
56126         * socket/accept.c: Likewise.
56127         * socket/accept4.c: Likewise.
56128         * socket/bind.c: Likewise.
56129         * socket/connect.c: Likewise.
56130         * socket/getpeername.c: Likewise.
56131         * socket/getsockname.c: Likewise.
56132         * socket/getsockopt.c: Likewise.
56133         * socket/isfdtype.c: Likewise.
56134         * socket/listen.c: Likewise.
56135         * socket/recv.c: Likewise.
56136         * socket/recvfrom.c: Likewise.
56137         * socket/recvmsg.c: Likewise.
56138         * socket/send.c: Likewise.
56139         * socket/sendmsg.c: Likewise.
56140         * socket/sendto.c: Likewise.
56141         * socket/setsockopt.c: Likewise.
56142         * socket/shutdown.c: Likewise.
56143         * socket/sockatmark.c: Likewise.
56144         * socket/socket.c: Likewise.
56145         * socket/socketpair.c: Likewise.
56146         * stdio-common/ctermid.c: Likewise.
56147         * stdio-common/cuserid.c: Likewise.
56148         * stdio-common/remove.c: Likewise.
56149         * stdio-common/rename.c: Likewise.
56150         * stdio-common/renameat.c: Likewise.
56151         * stdio-common/tempname.c: Likewise.
56152         * stdlib/getcontext.c: Likewise.
56153         * stdlib/makecontext.c: Likewise.
56154         * stdlib/setcontext.c: Likewise.
56155         * stdlib/swapcontext.c: Likewise.
56156         * stdlib/system.c: Likewise.
56157         * streams/fattach.c: Likewise.
56158         * streams/fdetach.c: Likewise.
56159         * streams/getmsg.c: Likewise.
56160         * streams/getpmsg.c: Likewise.
56161         * streams/putmsg.c: Likewise.
56162         * streams/putpmsg.c: Likewise.
56163         * sysdeps/unix/bsd/getpt.c: Likewise.
56164         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
56165         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
56166         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
56167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
56168         Likewise.
56169         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
56170         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
56171         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
56172         * sysvipc/msgctl.c: Likewise.
56173         * sysvipc/msgget.c: Likewise.
56174         * sysvipc/msgrcv.c: Likewise.
56175         * sysvipc/msgsnd.c: Likewise.
56176         * sysvipc/semctl.c: Likewise.
56177         * sysvipc/semget.c: Likewise.
56178         * sysvipc/semop.c: Likewise.
56179         * sysvipc/semtimedop.c: Likewise.
56180         * sysvipc/shmat.c: Likewise.
56181         * sysvipc/shmctl.c: Likewise.
56182         * sysvipc/shmdt.c: Likewise.
56183         * sysvipc/shmget.c: Likewise.
56184         * termios/tcdrain.c: Likewise.
56185         * termios/tcflow.c: Likewise.
56186         * termios/tcflush.c: Likewise.
56187         * termios/tcgetattr.c: Likewise.
56188         * termios/tcgetpgrp.c: Likewise.
56189         * termios/tcsendbrk.c: Likewise.
56190         * termios/tcsetattr.c: Likewise.
56191         * termios/tcsetpgrp.c: Likewise.
56192         * time/adjtime.c: Likewise.
56193         * time/clock.c: Likewise.
56194         * time/getitimer.c: Likewise.
56195         * time/gettimeofday.c: Likewise.
56196         * time/setitimer.c: Likewise.
56197         * time/settimeofday.c: Likewise.
56198         * time/stime.c: Likewise.
56199         * time/time.c: Likewise.
56200
56201 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
56202
56203         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
56204         /usr/old/bin.
56205
56206         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
56207         instead of spaces.
56208         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
56209
56210 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
56211
56212         [BZ #14796]
56213         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
56214         FE_TONEAREST before applying Dekker multiplication and Knuth
56215         addition.  Clear inexact exceptions and check for exact zero
56216         results afterwards.
56217         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56218         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56219         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56220         * math/libm-test.inc (fma_test): Add more tests.
56221         (fma_test_towardzero): Likewise.
56222         (fma_test_downward): Likewise.
56223         (fma_test_upward): Likewise.
56224         * sysdeps/generic/math_private.h (default_libc_fesetround): New
56225         function.
56226         (libc_fesetround): New macro.
56227         (libc_fesetroundf): Likewise.
56228         (libc_fesetroundl): Likewise.
56229         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
56230         function.
56231         (libc_fesetround_387): Likewise.
56232         (libc_fesetroundf): New macro.
56233         (libc_fesetround): Likewise.
56234         (libc_fesetroundl): Likewise.
56235         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
56236         function.
56237         (libc_fesetroundf): New macro.
56238         (libc_fesetround): Likewise.
56239         (libc_fesetroundl): Likewise.
56240         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
56241         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
56242         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
56243         libm_hidden_ver.
56244         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
56245         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
56246         libm_hidden_def.
56247         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
56248         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
56249         libm_hidden_ver.
56250         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
56251         libm_hidden_def.
56252
56253         [BZ #3439]
56254         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
56255         integer constant usable in #if and use that to give value to enum
56256         constant.
56257         (FE_DIVBYZERO): Likewise.
56258         (FE_UNDERFLOW): Likewise.
56259         (FE_OVERFLOW): Likewise.
56260         (FE_INVALID): Likewise.
56261         (FE_INVALID_SNAN): Likewise.
56262         (FE_INVALID_ISI): Likewise.
56263         (FE_INVALID_IDI): Likewise.
56264         (FE_INVALID_ZDZ): Likewise.
56265         (FE_INVALID_IMZ): Likewise.
56266         (FE_INVALID_COMPARE): Likewise.
56267         (FE_INVALID_SOFTWARE): Likewise.
56268         (FE_INVALID_SQRT): Likewise.
56269         (FE_INVALID_INTEGER_CONVERSION): Likewise.
56270         (FE_TONEAREST): Likewise.
56271         (FE_TOWARDZERO): Likewise.
56272         (FE_UPWARD): Likewise.
56273         (FE_DOWNWARD): Likewise.
56274         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
56275         (FE_DIVBYZERO): Likewise.
56276         (FE_OVERFLOW): Likewise.
56277         (FE_UNDERFLOW): Likewise.
56278         (FE_INEXACT): Likewise.
56279         (FE_TONEAREST): Likewise.
56280         (FE_DOWNWARD): Likewise.
56281         (FE_UPWARD): Likewise.
56282         (FE_TOWARDZERO): Likewise.
56283         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
56284         (FE_UNDERFLOW): Likewise.
56285         (FE_OVERFLOW): Likewise.
56286         (FE_DIVBYZERO): Likewise.
56287         (FE_INVALID): Likewise.
56288         (FE_TONEAREST): Likewise.
56289         (FE_TOWARDZERO): Likewise.
56290         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
56291         (FE_OVERFLOW): Likewise.
56292         (FE_UNDERFLOW): Likewise.
56293         (FE_DIVBYZERO): Likewise.
56294         (FE_INEXACT): Likewise.
56295         (FE_TONEAREST): Likewise.
56296         (FE_TOWARDZERO): Likewise.
56297         (FE_UPWARD): Likewise.
56298         (FE_DOWNWARD): Likewise.
56299         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
56300         (FE_DIVBYZERO): Likewise.
56301         (FE_OVERFLOW): Likewise.
56302         (FE_UNDERFLOW): Likewise.
56303         (FE_INEXACT): Likewise.
56304         (FE_TONEAREST): Likewise.
56305         (FE_DOWNWARD): Likewise.
56306         (FE_UPWARD): Likewise.
56307         (FE_TOWARDZERO): Likewise.
56308
56309 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
56310
56311         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
56312
56313 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
56314
56315         * scripts/cross-test-ssh.sh (command): Use newlines to separate
56316         commands.  Quote $PWD.
56317         (blacklist_exports): Don't use remove_newlines.  Replace "declare
56318         -x" by "export".
56319         (remove_newlines): Remove.
56320
56321 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
56322
56323         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
56324         * stdlib/stdlib.h (atof): Moved to ...
56325         * include/bits/stdlib-float.h: Here.  New file.
56326         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
56327         * stdlib/bits/stdlib-float.h: New file.
56328         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
56329         -mno-sse -mno-mmx.
56330         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
56331         <xmmintrin.h>.
56332
56333 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56334
56335         * conform/conformtest.pl (@headers): Add fenv.h.
56336         * conform/data/fenv.h-data: New file.
56337         * include/fenv.h [_ISOMAC]: Disable all contents of file except
56338         include of <math/fenv.h>.
56339
56340         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
56341         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
56342         && !UNIX98].  Enables tests for XOPEN2K8.
56343         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
56344         POSIX2008]: Likewise.
56345
56346         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
56347         (struct rusage): Do not expect type or its members.
56348
56349         [BZ #3439]
56350         * math/math.h (FP_NAN): Define macro to integer constant usable in
56351         #if and use that to give value to enum constant.
56352         (FP_INFINITE): Likewise.
56353         (FP_ZERO): Likewise.
56354         (FP_SUBNORMAL): Likewise.
56355         (FP_NORMAL): Likewise.
56356
56357 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
56358
56359         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
56360         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
56361         arguments.
56362
56363 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56364
56365         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56366         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56367         autoconf-time if not.
56368         * configure.in: Remove AC_PREREQ.
56369
56370 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56371
56372         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56373         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56374         of the internal implementation.
56375
56376 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56377
56378         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56379         except include of <misc/sys/syslog.h>.
56380
56381 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56382
56383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56384         function returns with a NULL context exit with zero.
56385
56386 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56387
56388         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56389
56390 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56391
56392         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56393         (run_program_cmd): This.
56394         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56395         (tst_langinfo): New variable.  Use it.
56396
56397 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56398
56399         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56400         floating point opcodes.
56401
56402 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56403
56404         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56405         variable.
56406
56407         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56408
56409         * sysdeps/mach/hurd/powerpc: Remove directory.
56410         * sysdeps/mach/powerpc: Likewise.
56411
56412 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56413
56414         * scripts/check-local-headers.sh: Ignore c++ headers.
56415
56416 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56417
56418         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56419         __libc_cleanup_region_start argument.
56420
56421 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56422
56423         [BZ #14784]
56424         [BZ #14785]
56425         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56426         x * y using scaling, not as x * y + z.
56427         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56428         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56429         * math/libm-test.inc (fma_test): Add more tests.
56430         (fma_test_towardzero): Likewise.
56431         (fma_test_downward): Likewise.
56432         (fma_test_upward): Likewise.
56433
56434 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56435
56436         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56437
56438 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56439
56440         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56441         New variable.
56442
56443 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56444
56445         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56446
56447 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56448
56449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56450         Fix sort order.
56451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56452         Likewise.
56453
56454 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56455
56456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56457         Fix the order of the list for glibc 2.17.
56458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56459         Likewise.
56460
56461 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56462
56463         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56464
56465 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56466
56467         [BZ #14610]
56468         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56469         for low part of x being zero before using __atanl (y).
56470         * math/libm-test.inc (atan2_test): Add another test.
56471
56472         * manual/install.texi (Configuring and compiling): Document
56473         general use of test-wrapper and test-wrapper-env.
56474         * INSTALL: Regenerated.
56475
56476         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56477         (__fma): Do not extract and scale down low bits on after-rounding
56478         systems when result rounded to normal precision would have normal
56479         exponent.
56480         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56481         (__fmal): Do not extract and scale down low bits on after-rounding
56482         systems when result rounded to normal precision would have normal
56483         exponent.
56484         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56485         (__fmal): Do not extract and scale down low bits on after-rounding
56486         systems when result rounded to normal precision would have normal
56487         exponent.
56488         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56489         macro.
56490         (fma_test): Add more tests.
56491         (fma_test_towardzero): Likewise.
56492         (fma_test_downward): Likewise.
56493         (fma_test_upward): Likewise.
56494
56495 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56496
56497         * sysdeps/i386/tininess.h: Renamed to ...
56498         * sysdeps/x86/tininess.h: This.
56499         * sysdeps/x86_64/tininess.h: Removed.
56500
56501 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56502
56503         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56504         input.  Use $(build-program-cmd).
56505         ($(objpfx)tst-array1-static.out): Likewise.
56506         ($(objpfx)tst-array2.out): Likewise.
56507         ($(objpfx)tst-array3.out): Likewise.
56508         ($(objpfx)tst-array4.out): Likewise.
56509         ($(objpfx)tst-array5.out): Likewise.
56510         ($(objpfx)tst-array5-static.out): Likewise.
56511
56512 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56513
56514         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56515         if defined.
56516
56517         * nss/nsswitch.h (nss_interface_function): Provide new
56518         macro for use with NSS functions.
56519         * grp/initgroups.c: Use new macro.
56520         * nss/getXXbyYY.c: Likewise.
56521         * nss/getXXbyYY_r.c: Likewise.
56522         * nss/getXXent.c: Likewise.
56523         * nss/getXXent_r.c: Likewise.
56524         * sysdeps/posix/getaddrinfo.c: Likewise.
56525
56526 2012-10-30  Andreas Jaeger  <aj@suse.de>
56527
56528         * po/ru.po: Update Russion translation from translation project.
56529
56530 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56531
56532         [BZ #14152]
56533         [BZ #14783]
56534         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56535         result and shift together with sticky bit instead of replicating
56536         round-to-nearest rounding.
56537         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56538         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56539         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56540         missing underflow exceptions.
56541         (fma_test_towardzero): Add more tests.
56542         (fma_test_downward): Likewise.
56543         (fma_test_upward): Likewise.
56544
56545         [BZ #14047]
56546         * sysdeps/generic/tininess.h: New file.
56547         * sysdeps/i386/tininess.h: Likewise.
56548         * sysdeps/sh/tininess.h: Likewise.
56549         * sysdeps/x86_64/tininess.h: Likewise.
56550         * stdlib/tst-strtod-underflow.c: Likewise.
56551         * stdlib/tst-tininess.c: Likewise.
56552         * stdlib/strtod_l.c: Include <tininess.h>.
56553         (round_and_return): Do not set errno for exact underflow cases.
56554         Force an underflow exception when setting errno for underflow.
56555         Determine underflow based on rounding to normal precision if
56556         TININESS_AFTER_ROUNDING.
56557         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56558         ERANGE for exact underflow cases.
56559         * stdlib/Makefile (tests): Add tst-tininess and
56560         tst-strtod-underflow.
56561         ($(objpfx)tst-tininess): Use $(link-libm).
56562         ($(objpfx)tst-strtod-underflow): Likewise.
56563
56564 2012-10-30  Andreas Jaeger  <aj@suse.de>
56565
56566         [BZ#14767]
56567         * elf/Makefile (tests): Remove conditional for have-initfini-array
56568         since this is now always required and the variable does not exist
56569         anymore.
56570         (tests-static): Likewise.
56571         (modules-names): Likewise.
56572
56573         * po/eo.po: Add Esperanto translation from translation project.
56574
56575         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56576         merged with constructor/destructor.
56577         (init_array): Likewise.
56578         * elf/tst-array2dep.c (fini_array): Likewise.
56579         (init_array): Likewise.
56580
56581 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56582
56583         * manual/message.texi: Delete @cartouche tags.
56584
56585 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56586
56587         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56588         EOPNOTSUPP.
56589         * sysdeps/mach/hurd/fsync.c: Likewise.
56590
56591         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56592         [_POSIX_REALTIME_SIGNALS]: Change condition to
56593         [_POSIX_REALTIME_SIGNALS > 0].
56594
56595 2012-10-27  Andreas Jaeger  <aj@suse.de>
56596
56597         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56598         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56599         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56600         [__WORDSIZE != 64]: Likewise.
56601
56602 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56603
56604         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56605         *  iconvdata/tst-tables.sh: Likewise.
56606
56607 2012-10-25  David S. Miller  <davem@davemloft.net>
56608
56609         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56610         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56611         of strtoull.
56612
56613         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56614         ifunc-impl-list.c
56615         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56616         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56617         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56618         file.
56619
56620 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56621
56622         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56623         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56624         __getdirentries.
56625
56626 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56627             Jim Blandy  <jimb@codesourcery.com>
56628
56629         * scripts/cross-test-ssh.sh: New file.
56630         * manual/install.texi (Configuring and compiling): Document use of
56631         cross-test-ssh.sh.
56632         * INSTALL: Regenerated.
56633
56634 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56635
56636         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56637         EOPNOTSUPP.
56638
56639 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56640
56641         * Makeconfig (run-program-prefix): Fix comment.
56642
56643 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56644             Jim Blandy  <jimb@codesourcery.com>
56645
56646         * Makeconfig (test-wrapper): New variable,
56647         (test-wrapper-env): Likewise.
56648         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56649         (run-built-tests): Define to yes.
56650         (run-program-prefix): Use $(test-wrapper).
56651         (built-program-cmd): Likewise.
56652         * Rules (make-test-out): Use $(test-wrapper-env) and
56653         $(host-built-program-cmd).
56654         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56655         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56656         tst-pathopt.sh.
56657         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56658         $(test-wrapper-env) to tst-rtld-load-self.sh.
56659         ($(objpfx)order2.out): Use $(test-wrapper).
56660         ($(objpfx)tst-initorder.out): Likewise.
56661         ($(objpfx)tst-initorder2.out): Likewise.
56662         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56663         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56664         (test_wrapper_env): New variable.  Use it to run ld.so.
56665         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56666         Use it to run ld.so.
56667         (test_wrapper_env): Likewise.
56668         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56669         $(test-wrapper) to run-iconv-test.sh.
56670         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56671         (ICONV): Use $test_wrapper.
56672         * posix/Makefile ($(objpfx)globtest.out): Pass
56673         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56674         globtest.sh, not $(run-program-prefix).
56675         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56676         (test_wrapper): Likewise.
56677         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56678         set together with run_via_rtld_prefix.
56679         (run_program_prefix): Define in terms of test_wrapper and
56680         run_via_rtld_prefix.
56681
56682 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56683
56684         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56685         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56686         Targets removed.
56687
56688         [BZ #14743]
56689         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56690         Declare __clock_getres, __clock_gettime, __clock_settime,
56691         __clock_nanosleep, and __clock_getcpuclockid.
56692         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56693         Remove librt_hidden_def (clock_gettime).
56694         * sysdeps/unix/clock_gettime.c: Likewise.
56695         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56696         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56697         * rt/clock_getres.c: Define __clock_getres as an alias.
56698         * sysdeps/posix/clock_getres.c: Likewise.
56699         * rt/clock_settime.c: Define __clock_settime as an alias.
56700         * sysdeps/unix/clock_settime.c: Likewise.
56701         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56702         * sysdeps/unix/clock_nanosleep.c: Likewise.
56703         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56704         * rt/clock-compat.c: New file.
56705         * rt/Makefile (librt-routines): Add clock-compat and move
56706         $(clock-routines) to ...
56707         (routines): ... here, new variable.
56708         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56709         Don't add get_clockfreq here.
56710         * rt/Versions (libc: GLIBC_2.17): New version set.
56711         Add clock_* symbols here.
56712         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56713         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56714         (GLIBC_2.17): Add clock_* symbols.
56715         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56716         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56717         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56719         Likewise.
56720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56721         Likewise.
56722         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56723         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56725         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56726         * NEWS: Mention the move.
56727
56728         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56729         Use __open, __read, __close rather than their public counterparts.
56730         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56731         (__get_clockfreq_via_cpuinfo): Likewise.
56732         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56733         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56734
56735         * config.h.in (HAVE_IFUNC): New #undef.
56736         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56737         was successful.
56738         * configure: Regenerated.
56739
56740 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56741
56742         * configure.in: Move READELF check to start of file.
56743         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56744         libc_cv_asm_gnu_indirect_function in the process.
56745         * configure: Regenerated.
56746
56747 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56748
56749         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56750         send the output to /dev/null.
56751         (libc_cv_cc_with_libunwind): Likewise.
56752         (libc_cv_as_noexecstack): Likewise.
56753         * configure: Regenerate.
56754
56755 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56756
56757         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56758
56759         * posix/globtest.sh (TMPDIR): Do not set.
56760         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56761         (testout): Likewise.
56762
56763 2012-10-24  Andreas Jaeger  <aj@suse.de>
56764
56765         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56766         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56767         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56768         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56769         posix_fadvise64, posix_fallocate64.
56770
56771         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56772         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56773         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56774         Likewise.
56775         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56776         Likewise.
56777         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56778
56779         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56780         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56781         <bits/fcntl-linux.h>.
56782         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56783
56784         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56785         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56786         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56787         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56788         [__WORDSIZE != 64]: Likewise.
56789
56790 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56791
56792         * Makeconfig (run-built-tests): New variable.
56793         * Rules [$(cross-compiling) = yes]: Change condition to
56794         [$(run-built-tests) = no].
56795         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56796         to [$(run-built-tests) = yes].
56797         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56798         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56799         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56800         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56801         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56802         * io/Makefile [$(cross-compiling) = no]: Likewise.
56803         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56804         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56805         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56806         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56807         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56808         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56809         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56810         * string/Makefile [$(cross-compiling) = no]: Likewise.
56811
56812         * posix/Makefile ($(objpfx)globtest.out): Pass
56813         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56814         $(rtld-installed-name).
56815         * posix/globtest.sh (elf_objpfx): Remove variable.
56816         (rtld_installed_name): Likewise.
56817         (library_path): Likewise.
56818         (run_program_prefix): New variable.  Use for running globtest
56819         binary.
56820
56821 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56822             Joseph Myers  <joseph@codesourcery.com>
56823
56824         * Makeconfig (host-built-program-cmd): New variable.
56825         * elf/Makefile (tst-stackguard1-ARGS): Use
56826         $(host-built-program-cmd).
56827         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56828         (tst-spawn-ARGS): Likewise.
56829         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56830
56831 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56832             Jim Blandy  <jimb@codesourcery.com>
56833
56834         * Makeconfig (run-via-rtld-prefix): New variable.
56835         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56836         (built-program-cmd): Likewise.
56837
56838 2012-10-22  Andreas Jaeger  <aj@suse.de>
56839
56840         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56841         __O_RSYNC if it exists, otherwise to O_SYNC.
56842
56843 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56844             Joseph Myers  <joseph@codesourcery.com>
56845
56846         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56847         /dev/null.
56848         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56849         from /dev/null
56850         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56851         /dev/null.
56852
56853 2012-10-22  Andreas Jaeger  <aj@suse.de>
56854
56855         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56856         Define always.
56857         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56858
56859         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56860         bits/fcntl-linux.h.
56861
56862         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56863         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56864
56865         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56866         to __O_LARGEFILE.
56867         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56868         to __O_LARGEFILE.
56869
56870 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56871             Joseph Myers  <joseph@codesourcery.com>
56872
56873         * config.make.in (NM): New variable.
56874
56875 2012-10-21  Andreas Jaeger  <aj@suse.de>
56876
56877         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56878         definitions and declarations that are provided by
56879         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56880
56881 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56882
56883         [BZ #14683]
56884         * elf/Makefile (tests-static): Add tst-leaks1-static.
56885         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56886         ($(objpfx)tst-leaks1-static): New rule.
56887         ($(objpfx)tst-leaks1-static-mem): Likewise.
56888         (tst-leaks1-static-ENV): New macro.
56889         * elf/dl-open.c (dl_open_worker): Check the main application
56890         only if SHARED is defined.
56891         * elf/tst-leaks1-static.c: New file.
56892
56893 2012-10-20  Andreas Jaeger  <aj@suse.de>
56894
56895         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56896         generic values for Linux.
56897         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56898         and declarations that are provided by <bits/fcntl-linux.h> and
56899         include <bits/fcntl-linux.h>.
56900         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56901         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56902
56903 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56904
56905         * io/fcntl.h: Move include of <bits/types.h> to the top and
56906         include it unconditionally.
56907
56908 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56909
56910         * wcsmbs/Makefile (tests-ifunc): New variable.
56911         (tests): Add $(tests-ifunc).
56912         * wcsmbs/test-wcschr-ifunc.c: New file.
56913         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56914         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56915         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56916         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56917         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56918
56919         * string/Makefile (tests-ifunc): New variable.
56920         (tests): Add $(tests-ifunc).
56921         * string/test-memccpy.c (TEST_NAME): New macro.
56922         * string/test-memchr.c (TEST_NAME): Likewise.
56923         * string/test-memcmp.c (TEST_NAME): Likewise.
56924         * string/test-memcpy.c (TEST_NAME): Likewise.
56925         * string/test-memmem.c (TEST_NAME): Likewise.
56926         * string/test-memmove.c (TEST_NAME): Likewise.
56927         * string/test-memset.c (TEST_NAME): Likewise.
56928         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56929         * string/test-stpcpy.c (TEST_NAME): Likewise.
56930         * string/test-stpncpy.c (TEST_NAME): Likewise.
56931         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56932         * string/test-strcasestr.c (TEST_NAME): Likewise.
56933         * string/test-strcat.c (TEST_NAME): Likewise.
56934         * string/test-strchr.c (TEST_NAME): Likewise.
56935         * string/test-strcmp.c(TEST_NAME): Likewise.
56936         * string/test-strcpy.c (TEST_NAME): Likewise.
56937         * string/test-strcspn.c (TEST_NAME): Likewise.
56938         * string/test-strlen.c (TEST_NAME): Likewise.
56939         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56940         * string/test-strncmp.c (TEST_NAME): Likewise.
56941         * string/test-strncpy.c (TEST_NAME): Likewise.
56942         * string/test-strnlen.c (TEST_NAME): Likewise.
56943         * string/test-strpbrk.c (TEST_NAME): Likewise.
56944         * string/test-strrchr.c (TEST_NAME): Likewise.
56945         * string/test-strspn.c (TEST_NAME): Likewise.
56946         * string/test-strstr.c (TEST_NAME): Likewise.
56947         * string/test-bcopy-ifunc.c: New file.
56948         * string/test-bzero-ifunc.c: Likewise.
56949         * string/test-memccpy-ifunc.c: Likewise.
56950         * string/test-memchr-ifunc.c: Likewise.
56951         * string/test-memcmp-ifunc.c: Likewise.
56952         * string/test-memcpy-ifunc.c: Likewise.
56953         * string/test-memmem-ifunc.c: Likewise.
56954         * string/test-memmove-ifunc.c: Likewise.
56955         * string/test-mempcpy-ifunc.c: Likewise.
56956         * string/test-memset-ifunc.c: Likewise.
56957         * string/test-rawmemchr-ifunc.c: Likewise.
56958         * string/test-stpcpy-ifunc.c: Likewise.
56959         * string/test-stpncpy-ifunc.c: Likewise.
56960         * string/test-strcasecmp-ifunc.c: Likewise.
56961         * string/test-strcasestr-ifunc.c: Likewise.
56962         * string/test-strcat-ifunc.c: Likewise.
56963         * string/test-strchr-ifunc.c: Likewise.
56964         * string/test-strchrnul-ifunc.c: Likewise.
56965         * string/test-strcmp-ifunc.c: Likewise.
56966         * string/test-strcpy-ifunc.c: Likewise.
56967         * string/test-strcspn-ifunc.c: Likewise.
56968         * string/test-strlen-ifunc.c: Likewise.
56969         * string/test-strncasecmp-ifunc.c: Likewise.
56970         * string/test-strncat-ifunc.c: Likewise.
56971         * string/test-strncmp-ifunc.c: Likewise.
56972         * string/test-strncpy-ifunc.c: Likewise.
56973         * string/test-strnlen-ifunc.c: Likewise.
56974         * string/test-strpbrk-ifunc.c: Likewise.
56975         * string/test-strrchr-ifunc.c: Likewise.
56976         * string/test-strspn-ifunc.c: Likewise.
56977         * string/test-strstr-ifunc.c: Likewise.
56978
56979         * debug/Makefile (tests-ifunc): New variable.
56980         (tests): Add $(tests-ifunc).
56981         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56982         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56983         * debug/test-stpcpy_chk-ifunc.c: New file.
56984         * debug/test-strcpy_chk-ifunc.c: Likewise.
56985
56986 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56987
56988         [BZ #13601]
56989         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56990         header is not read in.
56991
56992 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56993
56994         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56995         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56996         directly.  Pass built executable to script as
56997         $(built-program-cmd).
56998         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56999         $testprogram without using LD_LIBRARY_PATH and $ldso.
57000
57001         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
57002         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
57003         $(rtld-installed-name).
57004         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
57005         (rtld_installed_name): Likewise.
57006         (library_path): Likewise.
57007         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
57008         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
57009         $(run-program-prefix) to tst-tables.sh.
57010         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
57011         it to run tst-table-from and tst-table-to.
57012         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
57013         Pass it to tst-table.sh.
57014         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
57015         $(run-program-prefix) to tst-gettext.sh.
57016         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
57017         tst-translit.sh.
57018         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
57019         tst-gettext2.sh.
57020         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
57021         to run tst-gettext.
57022         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
57023         to run tst-gettext2.
57024         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
57025         to run tst-translit.
57026         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
57027         $(run-program-prefix) to tst-mtrace.sh.
57028         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
57029         to run tst-mtrace.
57030         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
57031         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
57032         $(rtld-installed-name).
57033         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
57034         (rtld_installed_name): Likewise.
57035         (run_program_prefix): New variable.  Use it to run wordexp-test.
57036
57037         * Makeconfig (ARCH): Remove all definitions.
57038         (machine): Likewise.
57039         [ARCH]: Remove conditional code.
57040         [!objdir]: Give error.
57041         [!objdir] (objpfx): Remove.
57042         [!objdir] (common-objpfx): Likewise.
57043         [!objdir] (common-objdir): Likewise.
57044         * configure.in (config_makefile): Remove.  Hardcode Makefile in
57045         AC_CONFIG_FILES call.
57046         * configure: Regenerated.
57047
57048         [BZ #13888]
57049         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
57050         or TMPDIR.
57051         (testout): Likewise.
57052
57053         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
57054         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
57055         $(rtld-installed-name).
57056         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
57057         (rtld_installed_name): Likwise.
57058         (runit): Remove function.
57059         (run_getconf): New variable,  Use it for running getconf binary.
57060
57061 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
57062
57063         [BZ #14716]
57064         * string/test-memmem.c (check_result): New function.
57065         (do_one_test): Use it.
57066         (check1): New function.
57067         (test_main): Use it.
57068
57069 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
57070
57071         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
57072
57073 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
57074
57075         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
57076         (_G_LSEEK64): Likewise.
57077         (_G_MMAP64): Likewise.
57078         (_G_FSTAT64): Likewise.
57079         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
57080         (_G_LSEEK64): Likewise.
57081         (_G_MMAP64): Likewise.
57082         (_G_FSTAT64): Likewise.
57083         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
57084         unconditional.  Call __mmap64 directly.
57085         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
57086         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
57087         __lseek64 directly.
57088         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
57089         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
57090         __mmap64 directly.
57091         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
57092         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57093         __lseek64 directly.
57094         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
57095         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57096         __lseek64 directly.
57097         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
57098         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
57099         __lseek64 directly.
57100         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
57101         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
57102         __fxstat64 directly.
57103         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
57104         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
57105         unconditional.
57106         (freopen64) [!_G_OPEN64]: Remove conditional code.
57107         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
57108         unconditional.
57109         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
57110         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
57111         unconditional.
57112         (ftello64) [!_G_LSEEK64]: Remove conditional code.
57113         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
57114         unconditional.
57115         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57116         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
57117         unconditional.
57118         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
57119         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
57120         unconditional.
57121         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57122         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
57123         unconditional.
57124         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57125         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
57126         unconditional.
57127         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57128
57129 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57130
57131         [BZ #12140]
57132         * manual/memory.texi (Malloc Tunable Parameters): Add note
57133         about free list pointers overwriting some perturb bytes.
57134         Wording suggested by Roland McGrath.
57135
57136 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
57137
57138         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
57139         (lgamma_test): Likewise.
57140         (tgamma_test): Likewise.
57141
57142 2012-10-16  Florian Weimer  <fweimer@redhat.com>
57143
57144         [BZ #14700]
57145         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
57146         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
57147
57148 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
57149
57150         * NEWS: Mention BZ #14716.
57151         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
57152         when removing AVAILABLE1_USES_J macro.
57153
57154 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
57155
57156         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
57157         (__bswap_64): __uint64_t for unsigned 64-bit int.
57158
57159 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
57160
57161         * include/string.h (memmem): Declare libc hidden alias.
57162         * string/memmem.c (memmem): Define libc hidden alias.
57163         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
57164         __read, __close instead of open, read, close.
57165
57166 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
57167
57168         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
57169         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
57170         global and hidden.
57171         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
57172         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
57173         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
57174         Likewise.
57175         (__rawmemchr_sse2): Likewise.
57176         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
57177         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
57178         (__strchr_sse2): Likewise.
57179         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
57180         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
57181         (__strcasecmp_sse2): Likewise.
57182         (__strncasecmp_sse2): Likewise.
57183         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
57184         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
57185         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
57186         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
57187         (__strrchr_sse2): Likewise.
57188         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
57189         ifunc-impl-list.c.
57190         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
57191         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57192         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
57193         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
57194         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
57195         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
57196         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57197         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57198         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
57199         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
57200         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
57201         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
57202         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
57203         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
57204         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
57205         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
57206         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
57207         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
57208         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57209         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57210         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
57211         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
57212         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
57213         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57214         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57215         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57216         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57217         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
57218         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
57219         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
57220
57221         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
57222         global and hidden.
57223         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
57224         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
57225         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
57226         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
57227         Likewise.
57228         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
57229         Likewise.
57230         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
57231         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
57232         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
57233         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
57234         ifunc-impl-list.c.
57235         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
57236         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
57237         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
57238         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
57239         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
57240         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
57241         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
57242         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
57243         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
57244         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
57245         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
57246         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
57247         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
57248         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
57249         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
57250         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57251         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
57252         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
57253         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
57254         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
57255         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
57256         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
57257         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
57258         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
57259         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57260         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
57261         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
57262         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
57263         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
57264         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
57265         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
57266         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
57267         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
57268         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
57269         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
57270         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
57271         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
57272         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
57273         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
57274         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
57275         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
57276
57277         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
57278         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
57279         * include/ifunc-impl-list.h: New file.
57280         * misc/ifunc-impl-list.c: Likewise.
57281         * misc/Makefile (routines): Add ifunc-impl-list.
57282         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
57283         * string/test-string.h: Include <ifunc-impl-list.h>.
57284         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
57285         TEST_NAME]: New variables.
57286         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
57287         are defined.
57288         (test_init): Call __libc_ifunc_impl_list to initialize
57289         func_list if TEST_IFUNC and TEST_NAME are defined.
57290
57291         * string/Makefile (strop-tests): Add bcopy and bzero.
57292         * string/test-bcopy.c: New file.
57293         * string/test-bzero.c: Likewise.
57294         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
57295         defined.
57296         * string/test-memset.c: Support bzero test if TEST_BZERO is
57297         defined.
57298         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
57299         __libc_memmove.
57300         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
57301         __libc_memset.
57302         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
57303         of memset.
57304
57305 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
57306
57307         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
57308         * configure: Regenerated.
57309
57310         * Makeconfig (+link-static-before-libc): Don't include
57311         $(link-static-libc).
57312
57313         * libio/libio.h (_IO_pos_t): Remove.
57314
57315 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57316
57317         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
57318         McGrath.
57319
57320 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57321
57322         * crypt/crypt-entry.c: Include fips-private.h.
57323         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
57324         * crypt/md5c-test.c (main): Tolerate disabled MD5.
57325         * sysdeps/unix/sysv/linux/fips-private.h: New file.
57326         * sysdeps/generic/fips-private.h: New file, dummy fallback.
57327
57328 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57329
57330         * crypt/crypt-private.h: Include stdbool.h.
57331         (_ufc_setup_salt_r): Return bool.
57332         * crypt/crypt-entry.c: Include errno.h.
57333         (__crypt_r): Return NULL with EINVAL for bad salt.
57334         * crypt/crypt_util.c (bad_for_salt): New.
57335         (_ufc_setup_salt_r): Check that salt is long enough and within
57336         the specified alphabet.
57337         * crypt/badsalttest.c: New file.
57338         * crypt/Makefile (tests): Add it.
57339         ($(objpfx)badsalttest): New.
57340
57341 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
57342
57343         * NEWS: Add entry for BZ #14602.
57344
57345 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57346
57347         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
57348         type-generic.
57349         * math/libm-test.inc: Update comment listing what functions and
57350         macros are tested.
57351         (isgreater_test): New function.
57352         (isgreaterequal_test): Likewise.
57353         (isless_test): Likewise.
57354         (islessequal_test): Likewise.
57355         (islessgreater_test): Likewise.
57356         (isunordered_test): Likewise.
57357         (main): Call the new functions.
57358
57359 2012-10-09  Roland McGrath  <roland@hack.frob.com>
57360
57361         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
57362         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
57363         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57364         * sysdeps/i386/configure: Regenerated.
57365         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57366         * sysdeps/mach/configure: Regenerated.
57367         * sysdeps/mach/hurd/configure: Regenerated.
57368         * sysdeps/powerpc/configure: Regenerated.
57369         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57370         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57371         * sysdeps/s390/s390-32/configure: Regenerated.
57372         * sysdeps/s390/s390-64/configure: Regenerated.
57373         * sysdeps/sh/configure: Regenerated.
57374         * sysdeps/sparc/configure: Regenerated.
57375         * sysdeps/unix/sysv/linux/configure: Regenerated.
57376         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57377         * sysdeps/x86_64/configure: Regenerated.
57378
57379         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57380         defined.  Don't check if MAP is NULL.
57381
57382 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57383
57384         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57385         (_G_stat64): Likewise.
57386         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57387         (_G_stat64): Likewise.
57388         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57389         instead of struct _G_stat64.
57390         * libio/fileops.c (mmap_remap_check): Likewise.
57391         (decide_maybe_mmap): Likewise.
57392         (_IO_new_file_seekoff): Likewise.
57393         (_IO_file_stat): Likewise.
57394         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57395         _G_off64_t.
57396         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57397         instead of struct _G_stat64.
57398         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57399
57400 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57401
57402         [BZ #14602]
57403         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57404         Replace with ...
57405         (CHECK_EOL): New macro.
57406         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57407         CHECK_EOL.
57408         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57409         Replace with CHECK_EOL.
57410         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57411         Replace with CHECK_EOL.
57412
57413 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57414
57415         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57416         type-generic.
57417         * math/libm-test.inc: Update comment listing what functions and
57418         macros are tested.
57419         (finite_test): New function.
57420         (isinf_test): Likewise.
57421         (isnan_test): Likewise.
57422         (fpclassify_test): Test subnormal input.
57423         (isfinite_test): Likewise.
57424         (isnormal_test): Likewise.
57425         (main): Call the new functions.
57426
57427 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57428
57429         [BZ #14660]
57430         * Makerules (%.dynsym): Force C locale when running
57431         $(OBJDUMP) --dynamic-syms.
57432
57433 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57434
57435         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57436         <stdint.h>.
57437
57438 2012-10-06  David S. Miller  <davem@davemloft.net>
57439
57440         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57441         upper 32-bits of the length value in %o2 since we use branch-on-register
57442         tests which consider the entire 64-bit register.
57443
57444 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57445
57446         * string/test-strstr.c (check2): Add a test for page boundary.
57447
57448 2012-10-05  David S. Miller  <davem@davemloft.net>
57449
57450         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57451         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57452         file.
57453         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57454         sysdep_routines.
57455         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57456         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57457         and bzero when HWCAP_SPARC_CRYPTO is present.
57458
57459 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57460
57461         [BZ #14602]
57462         * string/test-strstr.c (check2): New function.
57463         (test_main): Call check2.
57464
57465         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57466         and bug-strchr1.
57467         * string/bug-strcasestr1.c (do_test): Moved to ...
57468         * string/test-strcasestr.c (check1): Here.  New function.
57469         (do_one_test): Break out result checking code into ...
57470         (check_result): This.  New function.
57471         (do_one_test): Call check_result.
57472         (test_main): Call check1.
57473         * string/bug-strchr1.c (do_test): Moved to ...
57474         * string/test-strchr.c (check1): Here.  New function.
57475         (do_one_test): Break out result checking code into ...
57476         (check_result): This.  New function.
57477         (do_one_test): Call check_result.
57478         (test_main): Call check1.
57479         * string/bug-strstr1.c (main): Moved to ...
57480         * string/test-strstr.c (check1): Here.  New function.
57481         (do_one_test): Break out result checking code into ...
57482         (check_result): This.  New function.
57483         (do_one_test): Call check_result.
57484         (test_main): Call check1.
57485         * string/bug-strcasestr1.c: Removed.
57486         * string/bug-strchr1.c: Likewise.
57487         * string/bug-strstr1.c: Likewise.
57488
57489         * elf/Makefile (dl-routines): Add hwcaps.
57490         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57491         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57492         (_dl_important_hwcaps): Moved to ...
57493         * elf/dl-hwcaps.c: Here.  New file.
57494         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57495
57496         [BZ #14557]
57497         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57498         if IS_IN_rtld isn't defined.
57499
57500         * elf/dl-support.c (_dl_sysinfo_map): New.
57501         Include "get-dynamic-info.h" and "setup-vdso.h".
57502         (_dl_non_dynamic_init): Call setup_vdso.
57503         * elf/dynamic-link.h: Don't include <assert.h>.
57504         (elf_get_dynamic_info): Moved to ...
57505         * elf/get-dynamic-info.h: Here.  New file.
57506         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57507         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57508         * elf/setup-vdso.h: Here.  New file.
57509         * elf/rtld.c: Include "setup-vdso.h".
57510         (dl_main): Call setup_vdso.
57511
57512 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57513
57514         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57515         creal in comment listing functions tested.  List finite, isinf,
57516         isnan, isless, islessequal, isgreater, isgreaterequal,
57517         islessgreater, isunordered, lgamma_r and pow10 as functions and
57518         macros not tested.  Mention which functions not tested are aliases
57519         for other functions.  Fix typo.  Note that signs of NaNs are not
57520         tested.
57521
57522         * scripts/config.guess: Update from config.git.
57523         * scripts/config.sub: Likewise.
57524
57525 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57526
57527         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57528         * misc/madvise.c (madvise): Renamed to __madvise.
57529         Make madvise a weak alias.
57530         * include/sys/mman.h: Declare __madvise.
57531         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57532         * sysdeps/unix/syscalls.list
57533         (madvise): Make __madvise the strong name, and madvise a weak alias.
57534         * sysdeps/unix/sysv/linux/syscalls.list
57535         (madvise, mmap): Remove redundant entries.
57536         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57537         * malloc/malloc.c (mtrim): Likewise.
57538         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57539
57540 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57541
57542         * sysdeps/mach/hurd/dl-cache.c: File removed.
57543         * config.h.in (USE_LDCONFIG): New #undef.
57544         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57545         * configure: Regenerated.
57546         * elf/Makefile (dl-routines): Add dl-cache only under
57547         [$(use-ldconfig) = yes].
57548         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57549         cache on [USE_LDCONFIG].
57550         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57551         [USE_LDCONFIG].
57552         * elf/rtld.c (dl_main): Likewise.
57553
57554 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57555
57556         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57557         _SC_LEVEL4_CACHE_LINESIZE.
57558
57559 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57560
57561         * sysdeps/unix/bsd/confstr.h: File removed.
57562
57563 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57564
57565         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57566         sys/sdt-config.h.
57567
57568 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57569
57570         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57571         Make 'mapoff' field ElfW(Off) rather than off_t.
57572
57573 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57574
57575         * nscd/Makefile: Remove nscd-cflags and all its users.
57576         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57577         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57578
57579         [BZ #10631]
57580         * malloc.c (malloc_printerr): Clarify error message.
57581
57582 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57583
57584         [BZ #14648]
57585         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57586         Set bit_FMA_Usable if FMA is supported.
57587         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57588         macro.
57589         (bit_FMA4_Usable): Updated.
57590         (index_FMA_Usable): New macro.
57591         (CPUID_FMA): Likewise.
57592         (HAS_FMA): Defined with bit_FMA_Usable.
57593
57594 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57595
57596         * bits/types.h (__swblk_t): Type removed.
57597         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57598         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57599         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57600         (__SWBLK_T_TYPE): Likewise.
57601         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57602         (__SWBLK_T_TYPE): Likewise.
57603         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57604         (__SWBLK_T_TYPE): Likewise.
57605         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57606         (__SWBLK_T_TYPE): Likewise.
57607
57608 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57609             Honza Horak <hhorak@redhat.com>
57610
57611         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57612         (xdr_mapname): Use YPMAXMAP as maxsize.
57613         (xdr_peername): Use YPMAXPEER as maxsize.
57614         (xdr_keydat): Use YPAXRECORD as maxsize.
57615         (xdr_valdat): Use YPMAXRECORD as maxsize.
57616
57617 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57618
57619         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57620
57621         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57622         * csu/init-first.c: ... here.
57623         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57624         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57625         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57626         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57627         * sysdeps/i386/init-first.c: File removed.
57628         * sysdeps/sh/init-first.c: File removed.
57629
57630 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57631
57632         [BZ #14645]
57633         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57634         if x * y might underflow to zero and z is zero.
57635         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57636         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57637         * math/libm-test.inc (min_subnorm_value): New variable.
57638         (fma_test): Add more tests.
57639         (fma_test_towardzero): Likewise.
57640         (fma_test_downward): Likewise.
57641         (fma_test_upward): Likewise.
57642         (initialize): Set min_subnorm_value.
57643
57644 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57645
57646         [BZ #14638]
57647         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57648         0 + 0.
57649         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57650         mode for addition resulting in exact zero.
57651         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57652         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57653         exact 0 + 0.
57654         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57655         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57656         * math/libm-test.inc (fma_test): Add more tests.
57657         (fma_test_towardzero): New function.
57658         (fma_test_downward): Likewise.
57659         (fma_test_upward): Likewise.
57660         (main): Call the new functions.
57661
57662 2012-09-28  David S. Miller  <davem@davemloft.net>
57663
57664         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57665
57666 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57667
57668         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57669         instead of SIGALRM.
57670
57671         * sysdeps/gnu/_G_config.h: Moved to ...
57672         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57673         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57674         * sysdeps/generic/_G_config.h: ... here.
57675
57676         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57677
57678         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57679
57680         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57681         Conditionalize target on [libnss_test1.so-version].
57682
57683         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57684
57685         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57686         (elfobjdir): Move out of conditionals.
57687
57688         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57689         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57690         (__nss_lookup_function): Conditionalize label remove_from_tree on
57691         [!DO_STATIC_NSS || SHARED], matching its only use.
57692
57693 2012-09-28  David S. Miller  <davem@davemloft.net>
57694
57695         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57696         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57697         file.
57698         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57699         sysdep_routines.
57700         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57701         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57702         when HWCAP_SPARC_CRYPTO is present.
57703
57704 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57705
57706         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57707
57708 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57709
57710         [BZ #6530]
57711         * stdio-common/vfprintf.c (process_string_arg): Revert
57712         2000-07-22 change.
57713
57714 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57715
57716         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57717         for testcase.
57718         * stdio-common/tst-sprintf.c: Include <locale.h>
57719         (main): Test sprintf's handling of incomplete multibyte
57720         characters.
57721
57722 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57723
57724         * elf/dl-runtime.c (VERSYMIDX): Removed.
57725         * elf/dl-version.c (VERSYMIDX): Likewise.
57726         * elf/do-rel.h (VERSYMIDX): Likewise.
57727         (VALIDX): Likewise.
57728         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57729         * elf/rtld.c (VALIDX): Likewise.
57730         (ADDRIDX): Likewise.
57731         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57732         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57733         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57734         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57735         (VALIDX): Likewise.
57736         (ADDRIDX): Likewise.
57737
57738 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57739
57740         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57741
57742 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57743
57744         [BZ #11438]
57745         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57746         to global scope.
57747         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57748         addresses are in the same scope as 192.0.2/24.
57749         * posix/gai.conf: Document new scope table defaults.
57750
57751 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57752
57753         [BZ #5298]
57754         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57755         for ftell.  Compute offsets from write pointers instead.
57756         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57757
57758 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57759
57760         [BZ #14543]
57761         * libio/Makefile (tests): New test case tst-fseek.
57762         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57763         combination works in wide mode.
57764         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57765         state when the external buffer state changes.
57766
57767 2012-09-27  David S. Miller  <davem@davemloft.net>
57768
57769         [BZ #14376]
57770         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57771         pass reloc->r_addend in as the 'high' argument to
57772         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57773
57774         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57775
57776 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57777
57778         * rt/tst-aio2.c: Include <pthread.h>.
57779         * rt/tst-aio3.c: Likewise.
57780
57781 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57782
57783         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57784
57785 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57786
57787         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57788         contents on [SHARED].
57789
57790 2012-09-26  Marek Polacek  <polacek@redhat.com>
57791
57792         [BZ #14530]
57793         [BZ #13741]
57794         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57795         for C++ and GCC <4.3 as well as for non GCC compilers.
57796
57797 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57798
57799         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57800
57801 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57802
57803         * Makefile.in (all, install): Declare with .PHONY.
57804         Reported by Michael Hope <michael.hope@linaro.org>.
57805
57806 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57807
57808         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57809         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57810         system header.
57811         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57812         Likewise.
57813         (sydep_routines): Add the new and the internal functions.
57814         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57815         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57817         (GLIBC_2.17): Add the new function.
57818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57819         (GLIBC_2.17): Likewise.
57820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57821         (GLIBC_2.17): Likewise.
57822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57823         (GLIBC_2.17): Likewise.
57824         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57825
57826 2012-09-25  Alan Modra  <amodra@gmail.com>
57827
57828         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57829         Add release barrier before setting once_control to say
57830         initialisation is done.  Add hints on lwarx.  Use macro in
57831         place of isync.
57832         (clear_once_control): Add release barrier.
57833
57834 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57835
57836         [BZ #13629]
57837         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57838         specially.
57839         * math/s_clog10.c (__clog10): Likewise.
57840         * math/s_clog10f.c (__clog10f): Likewise.
57841         * math/s_clog10l.c (__clog10l): Likewise.
57842         * math/s_clogf.c (__clogf): Likewise.
57843         * math/s_clogl.c (__clogl): Likewise.
57844         * math/Makefile (libm-calls): Add x2y2m1.
57845         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57846         (__x2y2m1): Likewise.
57847         (__x2y2m1l): Likewise.
57848         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57849         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57850         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57851         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57852         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57853         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57854         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57855         * sysdeps/i386/fpu/libm-test-ulps: Update.
57856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57857
57858         [BZ #14621]
57859         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57860         int as type of variable DEPTH.
57861         (glob): Use size_t instead of int as type of variables NEWCOUNT
57862         and OLD_PATHC.
57863
57864 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57865
57866         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57867         Add s_sincosf-sse2.
57868         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57869         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57870         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57871         macros for using routine as __sincosf_ia32.
57872         Use macro for function declaration and weak_alias.
57873         * sysdeps/i386/fpu/libm-test-ulps: Update.
57874
57875         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57876         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57877
57878         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57879         subnormal argument.
57880         * math/s_cexpf.c (__cexpf): Likewise.
57881         * math/s_csinf.c (__csinf): Likewise.
57882         * math/s_csinhf.c (__csinhf): Likewise.
57883         * math/s_ctanf.c (__ctanf): Likewise.
57884         * math/s_ctanhf.c (__ctanhf): Likewise.
57885         * math/s_ccosh.c (__ccoshf): Likewise.
57886         * math/s_cexp.c (__cexpl): Likewise.
57887         * math/s_csin.c (__csin): Likewise.
57888         * math/s_csinh.c (__csinh): Likewise.
57889         * math/s_ctan.c (__ctan): Likewise.
57890         * math/s_ctanh.c (ctanh): Likewise.
57891         * math/s_ccoshl.c (__ccoshl): Likewise.
57892         * math/s_cexpl.c (__cexpl): Likewise.
57893         * math/s_csinl.c (__csinl): Likewise.
57894         * math/s_csinhl.c (__csinhl): Likewise.
57895         * math/s_ctanl.c (__ctanl): Likewise.
57896         * math/s_ctanhl.c (__ctanhl): Likewise.
57897
57898 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57899
57900         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57901         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57902         (_IO_off_t): Define to __off_t, not _G_off_t.
57903         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57904         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57905         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57906         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57907         type of __dummy and __dummy2 fields.
57908         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57909         (_G_ssize_t): Likewise.
57910         (_G_off_t): Likewise.
57911         (_G_pid_t): Likewise.
57912         (_G_uid_t): Likewise.
57913         (_G_wchar_t): Likewise.
57914         (_G_wint_t): Likewise.
57915         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57916         (_G_ssize_t): Likewise.
57917         (_G_off_t): Likewise.
57918         (_G_pid_t): Likewise.
57919         (_G_uid_t): Likewise.
57920         (_G_wchar_t): Likewise.
57921         (_G_wint_t): Likewise.
57922         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57923         (_G_ssize_t): Likewise.
57924         (_G_off_t): Likewise.
57925         (_G_pid_t): Likewise.
57926         (_G_uid_t): Likewise.
57927         (_G_wchar_t): Likewise.
57928         (_G_wint_t): Likewise.
57929
57930 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57931
57932         * malloc/arena.c: Include malloc-sysdep.h.
57933         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57934         is sufficient to shrink the heap or an unmap is needed.
57935         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57936         new function check_may_shrink_heap.
57937         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57938         new function check_may_shrink_heap.
57939
57940 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57941
57942         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57943         comments.
57944
57945 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57946
57947         * catgets/test-gencat.sh: Add "set -e".
57948         * elf/tst-pathopt.sh: Likewise.
57949         * grp/tst_fgetgrent.sh: Likewise.
57950         * iconvdata/run-iconv-test.sh: Likewise.
57951         * intl/tst-gettext.sh: Likewise.
57952         * intl/tst-gettext2.sh: Likewise.
57953         * intl/tst-gettext4.sh: Likewise.
57954         * intl/tst-gettext6.sh: Likewise.
57955         * intl/tst-translit.sh: Likewise.
57956         * io/ftwtest-sh: Likewise.
57957         * libio/test-freopen.sh: Likewise.
57958         * malloc/tst-mtrace.sh: Likewise.
57959         * posix/globtest.sh: Likewise.
57960         * posix/tst-getconf.sh: Likewise.
57961         * posix/wordexp-tst.sh: Likewise.
57962         * stdio-common/tst-printf.sh: Likewise.
57963         * stdio-common/tst-unbputc.sh: Likewise.
57964         * stdlib/tst-fmtmsg.sh: Likewise.
57965         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57966         * catgets/Makefile: Do not specify -e option when running
57967         testsuite shell scripts.
57968         * elf/Makefile: Likewise.
57969         * grp/Makefile: Likewise.
57970         * iconvdata/Makefile: Likewise.
57971         * intl/Makefile: Likewise.
57972         * io/Makefile: Likewise.
57973         * libio/Makefile: Likewise.
57974         * malloc/Makefile: Likewise.
57975         * posix/Makefile: Likewise.
57976         * stdio-common/Makefile: Likewise.
57977         * stdlib/Makefile: Likewise.
57978         * sysdeps/x86_64/Makefile: Likewise.
57979
57980         * io/ftwtest-sh: Add copyright header.
57981         * posix/globtest.sh: Likewise.
57982         * posix/tst-getconf.sh: Likewise.
57983         * posix/wordexp-tst.sh: Likewise.
57984         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57985
57986 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57987
57988         [BZ #13679]
57989         * Makeconfig (+link): Defined as $(+link-static) if
57990         $(build-shared) isn't yes.
57991         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57992         isn't yes.
57993         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57994
57995         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57996
57997         [BZ #14562]
57998         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57999         new chunk size with MALLOC_ALIGN_MASK.
58000
58001 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
58002
58003         [BZ #5044]
58004         * stdio-common/printf_fphex.c: Include <stdbool.h> and
58005         <rounding-mode.h>.
58006         (__printf_fphex): Determine rounding using get_rounding_mode and
58007         round_away.
58008         * stdio-common/tst-printf-round.c (struct hex_test): New
58009         structure.
58010         (hex_tests): New variable.
58011         (test_hex_in_one_mode): New function.
58012         (do_test): Also run tests for hex float output.
58013
58014 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
58015
58016         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58017         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58018         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
58019         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58020         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58021         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
58022         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58023         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58024
58025 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
58026
58027         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
58028         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
58029         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
58030         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
58031
58032 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
58033
58034         [BZ #14579]
58035         * elf/rtld.c (dl_main): Limit the check for self loading to normal
58036         mode only.
58037         * elf/tst-rtld-load-self.sh: New test.
58038         * elf/Makefile: Run it.
58039
58040 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
58041
58042         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
58043         (tst-writev-ENV): Remove.
58044         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
58045
58046 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
58047
58048         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
58049
58050 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
58051
58052         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
58053         unconditional.
58054         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
58055         Likewise.
58056         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
58057         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
58058         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
58059         Likewise.
58060
58061 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
58062
58063         [BZ #14587]
58064         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
58065         * config.make.in (have-cpp-asm-debuginfo): Removed.
58066         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
58067         * configure: Regenerated.
58068
58069 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
58070
58071         [BZ #5044]
58072         * stdio-common/printf_fp.c: Include <stdbool.h> and
58073         <rounding-mode.h>.
58074         (___printf_fp): Determine rounding using get_rounding_mode and
58075         round_away.
58076         * stdio-common/tst-printf-round.c: New file.
58077         * stdio-common/Makefile (tests): Add tst-printf-round.
58078         (link-libm): New variable.
58079         ($(objpfx)tst-printf-round): Depend in $(link-libm).
58080
58081 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
58082
58083         [BZ #14576]
58084         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
58085         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
58086         Likewise.
58087         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
58088         Likewise.
58089
58090 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
58091
58092         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
58093         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58094         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58095         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58096
58097 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
58098
58099         [BZ #14518]
58100         * include/rounding-mode.h: New file.
58101         * sysdeps/generic/get-rounding-mode.h: Likewise.
58102         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
58103         * stdlib/strtod_l.c: Include <rounding-mode.h>.
58104         (MAX_VALUE): New macro.
58105         (MIN_VALUE): Likewise.
58106         (overflow_value): New function.
58107         (underflow_value): Likewise.
58108         (round_and_return): Use overflow_value and underflow_value to
58109         determine return values in overflow and underflow cases.  Use
58110         round_away to determine rounding depending on rounding mode.
58111         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
58112         determine return values in overflow and underflow cases.
58113         * stdlib/tst-strtod-round.c: Include <fenv.h>.
58114         (struct test_results): New structure.
58115         (struct test): Use struct test_results to store expected results
58116         for all rounding modes.
58117         (TEST): Include expected results for all rounding modes.
58118         (test_in_one_mode): New function.
58119         (do_test): Use test_in_one_mode to compute and check results.
58120         Check results for all rounding modes.
58121         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
58122         $(link-libm).
58123
58124 2012-12-09  Allan McRae  <allan@archlinux.org>
58125
58126         * sysdeps/i386/fpu/libm-test-ulps: Update
58127
58128 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
58129
58130         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
58131         (_G_int32_t): Likewise.
58132         (_G_uint16_t): Likewise.
58133         (_G_uint32_t): Likewise.
58134         (_G_HAVE_BOOL): Likewise.
58135         (_G_HAVE_ATEXIT): Likewise.
58136         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58137         (_G_HAVE_IO_FILE_OPEN): Likewise.
58138         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
58139         (_G_int32_t): Likewise.
58140         (_G_uint16_t): Likewise.
58141         (_G_uint32_t): Likewise.
58142         (_G_HAVE_BOOL): Likewise.
58143         (_G_HAVE_ATEXIT): Likewise.
58144         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58145         (_G_HAVE_IO_FILE_OPEN): Likewise.
58146         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
58147         (_G_int32_t): Likewise.
58148         (_G_uint16_t): Likewise.
58149         (_G_uint32_t): Likewise.
58150         (_G_HAVE_BOOL): Likewise.
58151         (_G_HAVE_ATEXIT): Likewise.
58152         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58153         (_G_HAVE_IO_FILE_OPEN): Likewise.
58154
58155 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
58156
58157         * csu/libc-tls.c: Update copyright years.
58158
58159 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
58160
58161         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
58162         [!_G_USING_THUNKS]: Remove conditional code.
58163         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
58164         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
58165
58166         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
58167         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
58168         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58169         (_G_VTABLE_LABEL_PREFIX): Likewise.
58170         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58171         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58172         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58173         (_G_VTABLE_LABEL_PREFIX): Likewise.
58174         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58175         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58176         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58177         (_G_VTABLE_LABEL_PREFIX): Likewise.
58178         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58179
58180 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
58181
58182         * libio/Makefile: Include ../Makeconfig before tests.
58183         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
58184         only if $(build-shared) is yes.
58185
58186         * iconv/gconv_db.c: Update copyright years.
58187
58188 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58189
58190         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
58191         unwind info if defined PIC. Fix special cases description.
58192         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
58193
58194         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
58195         DP_HI_MASK entry.
58196         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
58197
58198 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
58199
58200         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
58201
58202         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
58203         is NULL.
58204
58205         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
58206         (LDLIBS-tst-chk4): This.
58207         (LDFLAGS-tst-chk5): Renamed to ...
58208         (LDLIBS-tst-chk5): This.
58209         (LDFLAGS-tst-chk6): Renamed to ...
58210         (LDLIBS-tst-chk6): This.
58211         (LDFLAGS-tst-lfschk4): Renamed to ...
58212         (LDLIBS-tst-lfschk4): This.
58213         (LDFLAGS-tst-lfschk5): Renamed to ...
58214         (LDLIBS-tst-lfschk5): This.
58215         (LDFLAGS-tst-lfschk6): Renamed to ...
58216         (LDLIBS-tst-lfschk6): This.
58217
58218         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
58219         on $(common-objpfx)soversions.mk.
58220
58221 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
58222
58223         [BZ #10014]
58224         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
58225         example host name.
58226
58227 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
58228
58229         * malloc/arena.c (arena_get_retry): New function that gets
58230         another arena for the caller to try its request on.
58231         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
58232         current arena cannot fulfill the request.
58233         (__libc_memalign): Likewise.
58234         (__libc_memalign): Likewise.
58235         (__libc_pvalloc): Likewise.
58236         (__libc_calloc): Likewise.
58237
58238 2012-09-05  John Tobey  <john.tobey@gmail.com>
58239
58240         [BZ #13542]
58241         * manual/arith.texi (Operations on Complex): Fix description
58242         of carg branch cut.
58243
58244 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58245
58246         [BZ #10014]
58247         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
58248         host name.
58249
58250         [BZ #10038]
58251         * manual/memory.texi (Memory): Make order of menu items match
58252         order of sections.
58253
58254 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58255
58256         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
58257         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
58258         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
58259
58260 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58261
58262         * csu/libc-tls.c (static_dtv): Renamed to ...
58263         (_dl_static_dtv): This.  Make it global.
58264         (_dl_initial_dtv): Removed.
58265         (__libc_setup_tls): Updated.
58266         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
58267         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
58268         DL_INITIAL_DTV.
58269
58270 2012-09-06  Petr Machata  <pmachata@redhat.com>
58271
58272         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
58273         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
58274         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
58275         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
58276
58277 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58278
58279         [BZ #14545]
58280         * csu/libc-tls.c (_dl_initial_dtv): New variable.
58281         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
58282         freeing dtv[-1].
58283
58284 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58285
58286         [BZ #14544]
58287         * Makeconfig (link-static-before-libc): Replace $(+prector)
58288         with $(+prectorT).
58289         (link-static-after-libc): Replace $(+postctor) with
58290         $(+postctorT).
58291         (link-bounded): Replace $(+prector)/$(+postctor) with
58292         $(+prectorT)/$(+postctorT).
58293         (+prectorT): New macro.
58294         (+postctorT): Likewise.
58295
58296 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58297
58298         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
58299         (round_str): Handle values above the maximum for IBM long double
58300         as inexact.
58301         * stdlib/tst-strtod-round.c (tests): Regenerated.
58302
58303 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58304
58305         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
58306         assembler flag.
58307         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
58308         zarch_nohighgprs around the zarch optimized routines.
58309         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
58310         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
58311         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
58312         for zarch.
58313
58314 2012-09-05  David S. Miller  <davem@davemloft.net>
58315
58316         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58317
58318         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
58319         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
58320         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
58321         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
58322         entries.
58323
58324 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58325
58326         * malloc/arena.c: Fold copyright years.
58327         * malloc/mcheck.c, malloc/memusage.c: Likewise.
58328
58329 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58330
58331         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
58332
58333 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58334
58335         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
58336
58337 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58338
58339         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
58340         change internal state upon failure.
58341
58342 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58343
58344         * malloc/mcheck.c (mcheck_check_all): Fix typo.
58345         * malloc/memusage.c (mmap): Likewise.
58346         (mmap64, mremap): Likewise.  Adjust name in comment.
58347
58348 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58349
58350         * libio/fileops.c: Fix typos in comments.
58351         * libio/oldfileops.c: Likewise.
58352         * libio/wfileops.c: Likewise.
58353
58354 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58355
58356         [BZ #1349]
58357         * malloc/Makefile (tests): Add tst-malloc-usable test case.
58358         (tst-malloc-usable-ENV): Set environment for test case.
58359         * malloc/hooks.c (malloc_check_get_size): New function to get
58360         requested size.
58361         * malloc/malloc.c (musable): Use malloc_check_get_size.
58362         * malloc/tst-malloc-usable.c: New test case.
58363
58364 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58365
58366         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58367
58368 2012-09-05  Allan McRae  <allan@archlinux.org>
58369
58370         [BZ #13966]
58371         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58372         determine header location.
58373         * configure: Regenerated.
58374
58375 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58376
58377         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58378         float format.
58379         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58380         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58381         format.
58382         (test): Regenerate.
58383
58384 2012-09-04  David S. Miller  <davem@davemloft.net>
58385
58386         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58387         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58388         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58389
58390 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58391
58392         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58393         failures.
58394
58395         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58396
58397 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58398
58399         [BZ #9914]
58400         * libio/iogetdelim.c: Include <limits.h>.
58401         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58402         + len + 1 would overflow.
58403
58404 2012-09-03  Andreas Jaeger  <aj@suse.de>
58405
58406         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58407         * sysdeps/i386/fpu/libm-test-ulps: Update.
58408
58409 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58410
58411         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58412         Add s_sinf-sse2, s_conf-sse2.
58413
58414         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58415         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58416         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58417         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58418
58419         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58420         for using routine as __sinf_ia32.
58421         Use macro for function declaration and weak_alias.
58422         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58423         for using routine as __cosf_ia32.
58424         Use macro for function declaration and weak_alias.
58425
58426         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58427         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58428
58429         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58430         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58431         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58432
58433         * math/libm-test.inc (cos_test): Add more test cases.
58434         (sin_test): Likewise.
58435         (sincos_test): Likewise.
58436
58437 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58438
58439         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58440         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58441         hidden.
58442         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58443
58444 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58445
58446         [BZ #14538]
58447         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58448         first element of the GOT.
58449         (elf_machine_load_address): Return the difference between
58450         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58451
58452 2012-09-01  Allan McRae  <allan@archlinux.org>
58453
58454         [BZ #13412]
58455         * configure.in (AWK): Require gawk version 3.0 or later.
58456         * configure: Regenerated.
58457
58458 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58459
58460         * sysdeps/unix/sysv/linux/kernel-features.h
58461         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58462         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58463         [__NR_clock_getres]: Make code unconditional.
58464         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58465         (clock_getcpuclockid): Remove code left unreachable by removal of
58466         conditionals.
58467         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58468         code unconditional.
58469         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58470         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58471         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58472         Make code unconditional.
58473         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58474         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58475         * sysdeps/unix/sysv/linux/clock_settime.c
58476         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58477         conditional code.
58478         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58479         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58480
58481 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58482
58483         [BZ #14476]
58484         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58485         scripts/test-installation.pl.
58486
58487         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58488         and $ld_so_version if it is set.
58489
58490 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58491
58492         [BZ #14516]
58493         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58494         failure if reading from procfs failed.
58495         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58496
58497 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58498
58499         * sysdeps/unix/sysv/linux/kernel-features.h
58500         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58501         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58502         Remove conditional code.
58503         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58504         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58505         Remove conditional code.
58506         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58507         * sysdeps/unix/sysv/linux/i386/fxstat.c
58508         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58509         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58510         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58511         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58512         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58513         * sysdeps/unix/sysv/linux/i386/lxstat.c
58514         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58515         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58516         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58517         Remove conditional code.
58518         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58519         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58520         Remove conditional code.
58521         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58522         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58523         <kernel-features.h>.
58524         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58525         Remove.
58526         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58527         Remove conditional code.
58528         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58529         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58530         Remove conditional.
58531
58532 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58533
58534         [BZ #5400]
58535         * NEWS: Add fixed bug number.
58536
58537 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58538
58539         [BZ #14519]
58540         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58541         underflowing exponent in case of negative sign.
58542         * stdlib/tst-strtod-round-data: Add more tests.
58543         * stdlib/tst-strtod-round.c (tests): Regenerated.
58544
58545         [BZ #3479]
58546         * stdlib/strtod_l.c (NDIG): Remove.
58547         (HEXNDIG): Likewise.
58548         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58549         smallest representable value.
58550         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58551         lie within an exact representation of 1/2 ulp of the result.
58552         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58553         unconditionally.
58554         (TENS_P9_IDX): Define unconditionally.
58555         (TENS_P9_SIZE): Likewise.
58556         (TENS_P10_IDX): Likewise.
58557         (TENS_P10_SIZE): Likewise.
58558         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58559         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58560         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58561         entries for 10^2^13 and 10^2^14.
58562         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58563         (TENS_P13_IDX): Define.
58564         (TENS_P13_SIZE): Likewise.
58565         (TENS_P14_IDX): Likewise.
58566         (TENS_P14_SIZE): Likewise.
58567         (_fpioconst_pow10): Change array size to
58568         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58569         unconditional.
58570         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58571         1024]: Add entries for 10^2^13 and 10^2^14.
58572         [LAST_POW10 > _LAST_POW10]: Remove #error.
58573         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58574         (_fpioconst_pow10): Change array size to
58575         FPIOCONST_POW10_ARRAY_SIZE.
58576         * stdlib/gen-fpioconst.c: New file.
58577         * stdlib/gen-tst-strtod-round.c: Likewise.
58578         * stdlib/tst-strtod-round-data: Likewise.
58579         * stdlib/tst-strtod-round.c: Likewise.
58580         * stdlib/Makefile (tests): Add tst-strtod-round.
58581
58582         [BZ #14459]
58583         * stdlib/strtod_l.c: Include <stdint.h>.
58584         (NDEBUG): Do not define.
58585         (round_and_return): Change EXPONENT parameter to type intmax_t.
58586         Rearrange calculations to avoid internal overflow possibilities.
58587         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58588         Rearrange calculations to avoid internal overflow possibilities.
58589         Assert that number fits inside MPNSIZE limbs.
58590         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58591         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58592         calculations and add assertions to avoid internal overflow
58593         possibilities.  Add casts to avoid signed/unsigned operations.
58594         * stdlib/tst-strtod-overflow.c: New file.
58595         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58596
58597 2012-08-25  Marek Polacek  <polacek@redhat.com>
58598
58599         * time/time.h: Fix some typos in comments.
58600
58601 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58602
58603         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58604         * posix/tst-rfc3484-2.c: Likewise.
58605         * posix/tst-rfc3484-3.c: Likewise.
58606
58607 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58608
58609         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58610         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58611
58612 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58613
58614         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58615         #include of fxstatat64.c.
58616
58617 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58618
58619         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58620         * shadow/getspent_r.c: Likewise.
58621         * shadow/getspnam.c: Likewise.
58622         * shadow/getspnam_r.c: Likewise.
58623         * gshadow/getsgent.c: Likewise.
58624         * gshadow/getsgent_r.c: Likewise.
58625         * gshadow/getsgnam.c: Likewise.
58626         * gshadow/getsgnam_r.c: Likewise.
58627         * inet/getnetbyad.c: Likewise.
58628         * inet/getnetbyad_r.c: Likewise.
58629         * inet/getnetbynm.c: Likewise.
58630         * inet/getnetbynm_r.c: Likewise.
58631         * inet/getnetent.c: Likewise.
58632         * inet/getnetent_r.c: Likewise.
58633         * inet/getproto.c: Likewise.
58634         * inet/getproto_r.c: Likewise.
58635         * inet/getprtent.c: Likewise.
58636         * inet/getprtent_r.c: Likewise.
58637         * inet/getprtname.c: Likewise.
58638         * inet/getprtname_r.c: Likewise.
58639         * inet/getrpcbyname.c: Likewise.
58640         * inet/getrpcbyname_r.c: Likewise.
58641         * inet/getrpcbynumber.c: Likewise.
58642         * inet/getrpcbynumber_r.c: Likewise.
58643         * inet/getrpcent.c: Likewise.
58644         * inet/getrpcent_r.c: Likewise.
58645         * inet/getaliasent.c: Likewise.
58646         * inet/getaliasent_r.c: Likewise.
58647         * inet/getaliasname.c: Likewise.
58648         * inet/getaliasname_r.c: Likewise.
58649         * nscd/getgrgid_r.c: Likewise.
58650         * nscd/getgrnam_r.c: Likewise.
58651         * nscd/gethstbyad_r.c: Likewise.
58652         * nscd/gethstbynm3_r.c: Likewise.
58653         * nscd/getpwnam_r.c: Likewise.
58654         * nscd/getpwuid_r.c: Likewise.
58655         * nscd/getsrvbynm_r.c: Likewise.
58656         * nscd/getsrvbypt_r.c: Likewise.
58657         * nscd/gai.c: Likewise.
58658
58659         * configure.in (build_nscd): New substituted variable, set
58660         by --disable-build-nscd and defaults to $use_nscd.
58661         * configure: Regenerated.
58662         * config.make.in (build-nscd): New substituted variable.
58663         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58664         Change conditional to require [$(build-nscd) = yes] as well.
58665         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58666
58667         [BZ# 13696]
58668         * configure.in (use_nscd): New substituted variable, set by
58669         --disable-nscd.  If enabled, define USE_NSCD.
58670         * configure: Regenerated.
58671         * config.h.in: Add USE_NSCD.
58672         * config.make.in (use-nscd): New substituted variable.
58673         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58674         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58675         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58676         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58677         (CFLAGS-getgrnam_r.c): Likewise.
58678         (CFLAGS-initgroups.c): Likewise.
58679         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58680         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58681         Variables removed.
58682         * inet/getnetgrent_r.c
58683         (nscd_setnetgrent): New function, broken out of ...
58684         (setnetgrent): ... here.  Call it.
58685         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58686         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58687         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58688         * nscd/Makefile (routines, aux): Move definitions after include of
58689         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58690         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58691         Conditionalize on [USE_NSCD].
58692         (is_nscd, nscd_init_cb): Likewise.
58693         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58694         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58695         * nss/nss_db/db-init.c: Likewise.
58696         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58697         [USE_NSCD].
58698         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58699         (make_request): Use it.
58700         (cache_valid_p): New function.
58701         (__check_pf): Use it.
58702         * NEWS: Add item for --disable-nscd.
58703
58704 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58705
58706         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58707         to support sed >= 4.2.1-20-ga9bf076.
58708         * configure: Regenerated.
58709
58710 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58711
58712         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58713         Conditionalize whole body on [IREL].
58714
58715 2012-08-22  Jeff Law <law@redhat.com>
58716
58717         [BZ #14505]
58718         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58719         if the family is PF_UNSPEC.
58720
58721 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58722
58723         * Makerules (lib-version): Rename from V.
58724         (install-lib-nosubdir): Change V to lib-version.
58725
58726 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58727
58728         [BZ #14252]
58729         * powerpc32/power6/wcschr.c: New file.
58730         * powerpc32/power6/wcscpy.c: New file.
58731         * powerpc32/power6/wcsrchr.c: New file.
58732         * powerpc64/power6/wcschr.c: New file.
58733         * powerpc64/power6/wcscpy.c: New file.
58734         * powerpc64/power6/wcsrchr.c: New file.
58735
58736 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58737
58738         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58739         (two_way_short_needle): Use it.
58740         * string/strstr.c (AVAILABLE1_USES_J): Define.
58741         * string/strcasestr.c: Likewise.
58742
58743         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58744         array references.
58745         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58746
58747         [BZ #11607]
58748         * NEWS: Add an entry.
58749         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58750         define their defaults.
58751         (two_way_short_needle): Detect end-of-string on-the-fly.
58752         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58753         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58754         * string/bug-strcasestr1.c: New test.
58755         * string/Makefile: Run it.
58756
58757 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58758
58759         [BZ #11607]
58760         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58761         the first character.
58762
58763 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58764
58765         * csu/elf-init.c (__libc_csu_irel): Function removed.
58766         * csu/libc-start.c (apply_irel): New function.
58767         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58768
58769 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58770
58771         * sysdeps/unix/sysv/linux/kernel-features.h
58772         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58773         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58774         <kernel-features.h>.
58775         [__NR_fadvise64_64]: Make code unconditional.
58776         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58777         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58778         !__NR_fadvise64_64)]: Likewise.
58779         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58780         !__NR_fadvise64_64))]: Likewise.
58781         [__NR_fadvise64]: Make code unconditional.
58782         [!__NR_fadvise64]: Remove conditional code.
58783         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58784         <kernel-features.h>.
58785         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58786         unconditional.
58787         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58788         conditional code.
58789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58790         not include <kernel-features.h>.
58791         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58792         unconditional.
58793         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58794         conditional code.
58795         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58796         include <kernel-features.h>.
58797         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58798         unconditional.
58799         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58800         conditional code.
58801
58802 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58803
58804         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58805         slight instruction rearrangements per scrollpipe analysis.
58806         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58807
58808 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58809
58810         * manual/syslog.texi (syslog; vsyslog, closelog):
58811         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58812         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58813
58814         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58815         DSOCAPS to match condition on defining it.
58816
58817 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58818
58819         * sysdeps/unix/sysv/linux/kernel-features.h
58820         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58822         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58823         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58825         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58826         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58828         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58829         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58830
58831         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58832         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58833
58834         * sysdeps/unix/sysv/linux/kernel-features.h
58835         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58836         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58837         unconditional.
58838         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58839         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58840         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58841         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58842         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58843         Make code unconditional.
58844         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58845         (__mmap64) [!__NR_mmap2]: Likewise.
58846         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58847         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58848         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58849         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58850         [__NR_mmap2]: Make code unconditional.
58851         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58852         (__mmap64) [!__NR_mmap2]: Likewise.
58853
58854 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58855
58856         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58857
58858 2012-08-18  Andreas Jaeger  <aj@suse.de>
58859
58860         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58861
58862 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58863
58864         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58865         * include/unistd.h (__have_sock_cloexec): Likewise.
58866         (__have_pipe2): Likewise.
58867         (__have_dup3): Likewise.
58868
58869 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58870
58871         [BZ #9685]
58872         * include/unistd.h (__have_pipe2): Change define into an extern int.
58873         (__have_dup3): Likewise.
58874         * socket/have_sock_cloexec.c: Include fcntl.h.
58875         (__have_pipe2): New variable.
58876         (__have_dup3): Likewise.
58877
58878 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58879
58880         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58881
58882 2012-08-17  Marek Polacek  <polacek@redhat.com>
58883
58884         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58885         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58886
58887 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58888
58889         * configure.in: Add AC_SUBST for sysheaders.
58890         * configure: Regenerated.
58891         * config.make.in (sysheaders): New substituted variable.
58892
58893         * sysdeps/unix/mkfifo.c: Moved ...
58894         * sysdeps/posix/mkfifo.c: ... here.
58895         * sysdeps/unix/mkfifoat.c: Moved ...
58896         * sysdeps/posix/mkfifoat.c: ... here.
58897
58898         * sysdeps/unix/utime.c: Moved ...
58899         * sysdeps/posix/utime.c: ... here.
58900
58901         * sysdeps/unix/time.c: Moved ...
58902         * sysdeps/posix/time.c: ... here.
58903         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58904         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58905
58906         * sysdeps/unix/nice.c: Moved ...
58907         * sysdeps/posix/nice.c: ... here.
58908
58909         * sysdeps/unix/alarm.c: Moved ...
58910         * sysdeps/posix/alarm.c: ... here.
58911
58912         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58913
58914 2012-08-17  Jeff Law <law@redhat.com>
58915
58916         * intl/Makefile (codeset_mo): New variable.
58917         ($(codeset_mo)): New target.
58918         (tst-codeset.out): Depend on that.  Remove explicit rule.
58919         (tst-gettext3.out, tst-gettext5.out): Likewise.
58920         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58921         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58922         * intl/tst-codeset.sh: Remove.
58923         * intl/tst-gettext3.sh: Likewise.
58924         * intl/tst-gettext5.sh: Likewise.
58925
58926 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58927
58928         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58929         * sysdeps/unix/syscalls.list: ... here.
58930
58931         * sysdeps/posix/getaddrinfo.c
58932         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58933         (gaiconf_init, gaiconf_reload): Use them.
58934         [!_STATBUF_ST_NSEC]
58935         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58936         Define using time_t rather than struct timespec.
58937
58938         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58939         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58940         Macros removed.
58941         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58942         [!NO_THREADS].
58943         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58944         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58945         Likewise.
58946
58947         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58948         __libc_cleanup_push argument.
58949
58950         * bits/param.h: New file.
58951         * misc/sys/param.h: New file.
58952         * include/sys/param.h: New file.
58953         * misc/Makefile (headers): Add bits/param.h.
58954         * sysdeps/generic/sys/param.h: File removed.
58955         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58956         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58957         * sysdeps/mach/hurd/bits/param.h: New file.
58958         * sysdeps/mach/hurd/sys/param.h: File removed.
58959
58960         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58961         last change.
58962
58963         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58964         [_IO_MTSAFE_IO].
58965         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58966         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58967         New macros.
58968
58969         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58970         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58971         rather than -D_IO_MTSAFE_IO conditionally.
58972         * stdio-common/Makefile (CPPFLAGS): Likewise.
58973         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58974         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58975         Use $(libio-mtsafe).
58976         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58977         of -D_IO_MTSAFE_IO.
58978         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58979         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58980         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58981         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58982         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58983         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58984         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58985         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58986         (CFLAGS-fread_u_chk.c): Likewise.
58987         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58988         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58989         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58990         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58991         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58992         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58993         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58994         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58995         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58996
58997         * libio/Makefile: Test [$(libc-reentrant) = yes]
58998         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58999
59000         * Makeconfig
59001         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
59002         * sysdeps/pthread/configure: File removed.
59003         * sysdeps/pthread/Makeconfig: New file.
59004         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
59005         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
59006
59007 2012-08-16  Gary Benson  <gbenson@redhat.com>
59008
59009         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
59010         unmapping the first object in a namespace.
59011
59012 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59013
59014         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
59015         (__internal_setnetgrent): ... this.  Add internal_function to
59016         definition.  Add libc_hidden_def.
59017         (setnetgrent): Update caller.
59018         (internal_endnetgrent): Renamed to ...
59019         (__internal_endnetgrent): ... this.  Add internal_function to
59020         definition.  Add libc_hidden_def.
59021         (endnetgrent): Update caller.
59022         (internal_getnetgrent_r): Renamed to ...
59023         (__internal_getnetgrent_r): ... this.  Add internal_function to
59024         definition.  Add libc_hidden_def.
59025         (__getnetgrent_r): Update caller.
59026         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
59027
59028 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59029
59030         * stdlib/longlong.h: Update from GCC.
59031
59032 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59033
59034         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
59035         on _QL, which is set by umul_ppmm but never used.
59036         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
59037         variables, which are set by GMP macros but never used.
59038         * stdio-common/_itowa.c (_itowa): Likewise.
59039         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
59040         * stdlib/mod_1.c (mpn_mod_1): Likewise.
59041
59042 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
59043
59044         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
59045         struct La_sh_regs is not constant.
59046         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
59047         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
59048         and struct La_sparc64_regs are not constant.
59049
59050 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59051
59052         * sysdeps/unix/sysv/linux/kernel-features.h
59053         (__ASSUME_POSIX_TIMERS): Remove.
59054         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59055         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59056         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
59057         Make code unconditional.
59058         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59059         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
59060         Make code unconditional.
59061         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59062         * sysdeps/unix/sysv/linux/clock_nanosleep.c
59063         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
59064         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59065         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
59066         Make code unconditional.
59067         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59068         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
59069         (__libc_missing_posix_timers): Remove.
59070
59071 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59072
59073         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
59074         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
59075
59076         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
59077
59078         * elf/dl-sym.c: Include <stdlib.h>.
59079
59080         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
59081         constants, which avoids warnings in 32-bit builds.
59082
59083         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
59084         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
59085
59086         * misc/lseek.c: File moved to ...
59087         * io/lseek.c: ... here.
59088
59089         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
59090
59091         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
59092         shifting LEN more than 31 bits at once.
59093
59094 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
59095
59096         [BZ #14195]
59097         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
59098         segmentation fault for a case of two empty input strings.
59099         * string/test-strncasecmp.c (check1): Renamed to...
59100         (bz12205): ...this.
59101         (bz14195): Add new testcase for two empty input strings and N > 0.
59102         (test_main): Call new testcase, adapt for renamed function.
59103
59104 2012-08-15  Andreas Jaeger  <aj@suse.de>
59105
59106         [BZ #14090]
59107         * crypt/md5test2.c: New test, based on test supplied by Serge
59108         Belyshev <belyshev@depni.sinp.msu.ru>.
59109         * crypt/Makefile (xtests): Add md5test-giant..
59110         * crypt/Makefile ($(objpfx)md5test-giant): Add.
59111
59112 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59113
59114         [BZ #14090]
59115         * crypt/md5.c (md5_process_block): Don't assume the buffer
59116         length is less than 2**32.
59117         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
59118         length is less than 2**64.
59119
59120 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59121
59122         * string/str-two-way.h: Include <sys/param.h>.
59123         (MAX): Macro removed.
59124
59125         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
59126         Move #define and #undef of memmove to just before and after
59127         including <string.h>.
59128
59129         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
59130         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
59131         and after including <string.h>.  Move declarations of
59132         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
59133         to before #include "string/memmove.c".
59134
59135         * include/dirent.h: Declare __getdirentries.
59136
59137         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
59138         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
59139
59140 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
59141
59142         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
59143         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
59144         * sysdeps/i386/configure: Regenerated.
59145         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
59146         STABS_CURRENT_FILE, and STABS_FUN.
59147         (END): Remove call to STABS_FUN_END.
59148         (STABS_CURRENT_FILE1): Delete.
59149         (STABS_CURRENT_FILE): Likewise.
59150         (STABS_FUN): Likewise.
59151         (STABS_FUN_END): Likewise.
59152         (STABS_FUN2): Likewise.
59153         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
59154         * sysdeps/x86_64/configure: Regenerated.
59155
59156 2012-08-14  Roland McGrath  <roland@hack.frob.com>
59157
59158         * elf/dl-open.c: Include <atomic.h>.
59159         * elf/dl-lookup.c: Likewise.
59160
59161 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
59162
59163         * sysdeps/unix/sysv/linux/kernel-features.h
59164         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
59165         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
59166         unconditionally.
59167         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
59168         unconditionally.
59169         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
59170         condition on __ASSUME_CLONE_THREAD_FLAGS.
59171
59172 2012-08-14  Andreas Jaeger  <aj@suse.de>
59173
59174         * sysdeps/i386/fpu/libm-test-ulps: Update.
59175
59176 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
59177
59178         * include/atomic.h (atomic_exchange_and_add): Split into ...
59179         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
59180         New atomic macros.
59181
59182 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
59183
59184         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59185
59186 2012-08-13  Jeff Law <law@redhat.com>
59187
59188         * manual/stdio.texi (snprintf): Clarify handling of the trailing
59189         null byte in the output string.
59190
59191 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
59192
59193         * sysdeps/unix/sysv/linux/kernel-features.h
59194         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
59195         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
59196         (__ASSUME_ARG_MAX_STACK_BASED): Define.
59197         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
59198         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
59199         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
59200         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
59201
59202 2012-08-09  Jeff Law <law@redhat.com>
59203
59204         [BZ #13939]
59205         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
59206         When avoid_arena is set, don't retry in the that arena.  Pick the
59207         next one, whatever it might be.
59208         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
59209         (arena_lock): Pass in new parameter to arena_get2.
59210         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
59211         arena_get2.
59212         (__libc_malloc): Unify retrying after main arena failure with
59213         __libc_memalign version.
59214         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
59215
59216 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
59217
59218         [BZ #14166]
59219         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
59220         to __redirect_strstr.
59221         (__strstr_sse42): Use typeof __redirect_strstr.
59222         (__strstr_ia32): Likewise.
59223         (__libc_strstr): New prototype.
59224         (strstr): Renamed to ...
59225         (__libc_strstr): This.
59226         (strstr): New strong alias of __libc_strstr.
59227         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
59228         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
59229         __redirect_time.
59230         Include <time.h>.
59231         (__libc_time): New prototype.
59232         (time_ifunc): Replace time with __libc_time.
59233         (time): New strong alias and hidden definition of __libc_time.
59234         (__GI_time): Remove strong alias.
59235         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
59236         Include <stddef.h>.
59237         (memmove): Redefined to __redirect_memmove.
59238         (__memmove_sse2): Use typeof __redirect_memmove.
59239         (__memmove_ssse3): Likewise.
59240         (__memmove_ssse3_back): Likewise.
59241         (__libc_memmove): New prototype.
59242         (memmove): Renamed to ...
59243         (__libc_memmove): This.
59244         (memmove): New strong alias of __libc_memmove.
59245
59246 2012-08-08  Mark Salter  <msalter@redhat.com>
59247
59248         * elf/elf.h
59249         (R_MN10300_TLS_GD): Define.
59250         (R_MN10300_TLS_LD): Likewise.
59251         (R_MN10300_TLS_LDO): Likewise.
59252         (R_MN10300_TLS_GOTIE): Likewise.
59253         (R_MN10300_TLS_IE): Likewise.
59254         (R_MN10300_TLS_LE): Likewise.
59255         (R_MN10300_TLS_DTPMOD): Likewise.
59256         (R_MN10300_TLS_DTPOFF): Likewise.
59257         (R_MN10300_TLS_TPOFF): Likewise.
59258         (R_MN10300_SYM_DIFF): Likewise.
59259         (R_MN10300_ALIGN): Likewise.
59260         (R_MN10300_NUM): Update.
59261
59262 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
59263
59264         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
59265         Remove.
59266
59267 2012-08-08  Roland McGrath  <roland@hack.frob.com>
59268
59269         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
59270
59271         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
59272         sysdeps/unix -> sysdeps/posix move.
59273         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59274
59275 2012-08-07      Allan McRae     <allan@archlinux.org>
59276
59277         [BZ #14303]
59278         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
59279         (SUNOS_CPP): Likewise.
59280         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
59281         not found.
59282         (open_input): Call CPP using execvp.
59283
59284 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59285
59286         * sysdeps/unix/sysv/linux/kernel-features.h
59287         (__ASSUME_PROT_GROWSUPDOWN): Remove.
59288         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59289         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59290         (__ASSUME_WAITID_SYSCALL): Likewise.
59291         * sysdeps/unix/sysv/linux/dl-execstack.c
59292         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
59293         code unconditional.
59294         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
59295         conditional code.
59296         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
59297         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
59298         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
59299         code.
59300         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
59301         unconditional.
59302         [__ASSUME_WAITID_SYSCALL]: Likewise.
59303         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
59304
59305 2012-08-07  Roland McGrath  <roland@hack.frob.com>
59306
59307         * sysdeps/unix/closedir.c: Renamed to ...
59308         * sysdeps/posix/closedir.c: ... here.
59309         * sysdeps/unix/dirfd.c: Renamed to ...
59310         * sysdeps/posix/dirfd.c: ... here.
59311         * sysdeps/unix/dirstream.h: Renamed to ...
59312         * sysdeps/posix/dirstream.h: ... here.
59313         * sysdeps/unix/fdopendir.c: Renamed to ...
59314         * sysdeps/posix/fdopendir.c: ... here.
59315         * sysdeps/unix/opendir.c: Renamed to ...
59316         * sysdeps/posix/opendir.c: ... here.
59317         * sysdeps/unix/readdir.c: Renamed to ...
59318         * sysdeps/posix/readdir.c: ... here.
59319         * sysdeps/unix/readdir_r.c: Renamed to ...
59320         * sysdeps/posix/readdir_r.c: ... here.
59321         * sysdeps/unix/rewinddir.c: Renamed to ...
59322         * sysdeps/posix/rewinddir.c: ... here.
59323         * sysdeps/unix/seekdir.c: Renamed to ...
59324         * sysdeps/posix/seekdir.c: ... here.
59325         * sysdeps/unix/telldir.c: Renamed to ...
59326         * sysdeps/posix/telldir.c: ... here.
59327         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
59328         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
59329         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
59330         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
59331
59332         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
59333         * bits/fcntl.h: ... here.
59334
59335         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
59336         not 0.
59337         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
59338         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
59339         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
59340         (struct flock): Move l_start, l_len to the beginning.
59341         Use __pid_t for l_pid.
59342         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
59343         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
59344         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
59345         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
59346         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
59347         [__USE_LARGEFILE64] (struct flock64): New type.
59348         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
59349
59350         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
59351         * bits/dirent.h: ... here.
59352
59353         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
59354         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
59355
59356 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59357
59358         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59359         Change from 2.6.0 to 2.6.16.
59360         * sysdeps/unix/sysv/linux/configure: Regenerated.
59361         * sysdeps/unix/sysv/linux/kernel-features.h
59362         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
59363         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59364         version.
59365         (__ASSUME_UTIMES): Likewise.
59366         (__ASSUME_CLONE_STOPPED): Remove.
59367         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59368         architectures, not kernel version.
59369         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59370         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59371         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59372         (__ASSUME_WAITID_SYSCALL): Likewise.
59373         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59374         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59375         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59376         refer to older versions.
59377
59378 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59379
59380         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59381         Define alphasort64 as an alias.
59382         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59383         Define versionsort64 as an alias.
59384         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59385         Define scandir64 as an alias.
59386         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59387         Define scandirat64 as an alias.
59388         * dirent/alphasort64.c (alphasort64):
59389         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59390         * dirent/versionsort64.c: Likewise.
59391         * dirent/scandir64.c: Likewise.
59392         * dirent/scandirat64.c: Likewise.
59393         * sysdeps/wordsize-64/alphasort.c: File removed.
59394         * sysdeps/wordsize-64/alphasort64.c: File removed.
59395         * sysdeps/wordsize-64/scandir.c: File removed.
59396         * sysdeps/wordsize-64/scandir64.c: File removed.
59397         * sysdeps/wordsize-64/scandirat.c: File removed.
59398         * sysdeps/wordsize-64/scandirat64.c: File removed.
59399         * sysdeps/wordsize-64/versionsort.c: File removed.
59400         * sysdeps/wordsize-64/versionsort64.c: File removed.
59401         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59402         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59403         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59404         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59405         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59406         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59407         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59408         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59409
59410         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59411         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59412         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59413         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59414         [defined __arch64__ || defined __sparcv9]
59415         (__INO_T_MATCHES_INO64_T): New macro.
59416         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59417         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59418         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59419         * sysdeps/unix/sysv/linux/bits/dirent.h
59420         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59421         (_DIRENT_MATCHES_DIRENT64): New macro.
59422
59423         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59424         Define lockf64 as an alias.
59425         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59426         Define fseeko64 as an alias.
59427         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59428         Define ftello64 as an alias.
59429         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59430         Define _IO_fgetpos64 and fgetpos64 as aliases.
59431         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59432         Define _IO_fsetpos64 and fsetpos64 as aliases.
59433         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59434         Conditionalize body on this.
59435         * libio/fseeko64.c: Likewise.
59436         * libio/ftello64.c: Likewise.
59437         * libio/iofgetpos64.c: Likewise.
59438         * libio/iofsetpos64.c: Likewise.
59439         * sysdeps/wordsize-64/lockf.c: File removed.
59440         * sysdeps/wordsize-64/lockf64.c: File removed.
59441         * sysdeps/wordsize-64/fseeko.c: File removed.
59442         * sysdeps/wordsize-64/fseeko64.c: File removed.
59443         * sysdeps/wordsize-64/ftello.c: File removed.
59444         * sysdeps/wordsize-64/ftello64.c: File removed.
59445         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59446         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59447         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59448         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59449         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59450         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59451         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59452         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59453         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59454         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59455         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59456         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59457         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59458         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59459
59460         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59461         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59462         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59463         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59464         [defined __arch64__ || defined __sparcv9]
59465         (__OFF_T_MATCHES_OFF64_T): New macro.
59466         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59467         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59468         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59469         (__OFF_T_MATCHES_OFF64_T): New macro.
59470
59471 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59472
59473         * stdlib/secure-getenv.c (__secure_getenv): Replace
59474         GLIBC_2_16 with GLIBC_2_17.
59475
59476 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59477
59478         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59479         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59480
59481 2012-08-03  David S. Miller  <davem@davemloft.net>
59482
59483         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59484
59485 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59486
59487         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59488         Remove.
59489         (__ASSUME_CORRECT_SI_PID): Likewise.
59490         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59491         (__ASSUME_TMPFS_NAME): Likewise.
59492         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59493         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59494         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59495         (HAVE_AUX_SECURE): Make definition unconditional.
59496         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59497         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59498
59499 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59500
59501         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59502         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59503         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59504         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59505         __eloop_threshold instead of SYMLOOP_MAX.
59506
59507         * sysdeps/generic/eloop-threshold.h: New file.
59508         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59509         of MAXSYMLINKS.
59510         * elf/chroot_canon.c (chroot_canon): Likewise.
59511
59512 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59513
59514         [BZ #13717]
59515         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59516         Change to 2.6.0 everywhere.
59517         * sysdeps/unix/sysv/linux/configure: Regenerated.
59518         * sysdeps/unix/sysv/linux/kernel-features.h
59519         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59520         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59521         kernel versions.
59522         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59523         (__ASSUME_FUTEX_REQUEUE): Remove.
59524         (__ASSUME_STATFS64): Define unconditionally.
59525         (__ASSUME_AT_SECURE): Likewise.
59526         (__ASSUME_CORRECT_SI_PID): Likewise.
59527         (__ASSUME_TGKILL): Define without depending on kernel version for
59528         i386.
59529         (__ASSUME_UTIMES): Likewise.
59530         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59531         kernel version.
59532         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59533         (__ASSUME_TMPFS_NAME): Likewise.
59534         * README: Update reference to Linux kernel versions.
59535
59536 2012-08-02  Marek Polacek  <polacek@redhat.com>
59537
59538         [BZ# 14150]
59539         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59540         libc_cv_asm_type_prefix with %.
59541         * configure: Regenerated.
59542         * include/libc-symbols.h: Remove comment about
59543         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59544         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59545         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59546         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59547         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59548         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59549         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59550         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59551         * elf/tst-unique2mod1.c: Likewise.
59552         * elf/tst-unique1mod2.c: Likewise.
59553         * elf/tst-unique1mod1.c: Likewise.
59554         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59555         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59556         Replace ASM_TYPE_DIRECTIVE with .type.
59557         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59558         * sysdeps/i386/sysdep.h: Likewise.
59559         * sysdeps/x86_64/sysdep.h: Likewise.
59560         * sysdeps/sh/sysdep.h: Likewise.
59561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59562         Do not define ASM_TYPE_DIRECTIVE.
59563         * sysdeps/powerpc/sysdep.h: Likewise.
59564         * sysdeps/powerpc/powerpc32/sysdep.h:
59565         Replace ASM_TYPE_DIRECTIVE with .type.
59566         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59567         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59568         * sysdeps/i386/fpu/e_powf.S: Likewise.
59569         * sysdeps/i386/fpu/e_expl.S: Likewise.
59570         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59571         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59572         * sysdeps/i386/fpu/e_pow.S: Likewise.
59573         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59574         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59575         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59576         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59577         * sysdeps/i386/fpu/e_log2.S: Likewise.
59578         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59579         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59580         * sysdeps/i386/fpu/e_powl.S: Likewise.
59581         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59582         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59583         * sysdeps/i386/fpu/e_logl.S: Likewise.
59584         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59585         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59586         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59587         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59588         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59589         * sysdeps/i386/fpu/e_log.S: Likewise.
59590         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59591         * sysdeps/i386/fpu/e_logf.S: Likewise.
59592         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59593         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59594         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59595         * sysdeps/i386/fpu/e_log10.S: Likewise.
59596         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59597         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59598         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59599         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59600         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59601         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59602         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59603         * sysdeps/i386/i686/strtok.S: Likewise.
59604         * sysdeps/i386/i386-mcount.S: Likewise.
59605         * sysdeps/i386/strtok.S: Likewise.
59606         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59607         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59608         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59609         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59610         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59611         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59612         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59613         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59614         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59615         * sysdeps/x86_64/_mcount.S: Likewise.
59616         * sysdeps/x86_64/strtok.S: Likewise.
59617         * sysdeps/sh/_mcount.S: Likewise.
59618
59619 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59620
59621         * libio/iofopen.c: Include <fcntl.h>.
59622         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59623         (_IO_fopen64, fopen64): Define as aliases.
59624         * libio/iofopen64.c: Include <fcntl.h>.
59625         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59626         Conditionalize body on this.
59627         * sysdeps/wordsize-64/iofopen.c: File removed.
59628         * sysdeps/wordsize-64/iofopen64.c: File removed.
59629
59630 2012-08-01  Marek Polacek  <polacek@redhat.com>
59631
59632         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59633         Use dlfcn directly instead of a variable.
59634         (binfmt-subdir): Do not define.
59635         (dlfcn): Likewise.
59636
59637 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59638
59639         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59640         Remove all definitions.
59641         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59642         <kernel-features.h>.
59643         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59644         (miss_F_GETOWN_EX): Remove all definitions.
59645         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59646         macro definition.
59647         [!__ASSUME_FCNTL64]: Remove conditional code.
59648         [__ASSUME_FCNTL64]: Make code unconditional.
59649         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59650         <kernel-features.h>.
59651         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59652         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59653         (lockf64) [__NR_fcntl64]: Make code unconditional.
59654         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59655
59656         * sysdeps/unix/sysv/linux/kernel-features.h
59657         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59658         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59659         Make code unconditional.
59660         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59661         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59663         [__NR_vfork]: Make code unconditional.
59664         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59665         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59667         [__NR_vfork]: Make code unconditional.
59668         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59669         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59670
59671 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59672
59673         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59674         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59675
59676         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59677         Define mkstemp64 as an alias.
59678         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59679         Define mkstemps64 as an alias.
59680         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59681         Define mkostemp64 as an alias.
59682         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59683         Define mkostemps64 as an alias.
59684         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59685         Conditionalize body on this.
59686         * misc/mkostemp64.c: Likewise.
59687         * misc/mkostemps64.c: Likewise.
59688         * misc/mkstemps64.c: Likewise.
59689         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59690         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59691         * sysdeps/wordsize-64/mkostemp.c: File removed.
59692         * sysdeps/wordsize-64/mkstemp.c: File removed.
59693         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59694         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59695         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59696         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59697
59698         [BZ #14138]
59699         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59700         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59701         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59702         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59703
59704         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59705         compat_symbol macros from <shlib-compat.h> rather than the underlying
59706         default_symbol_version and symbol_version macros, so that DEFAULT
59707         lines in shlib-versions are respected.
59708         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59709
59710 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59711
59712         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59713         Declare with warn_unused_result.
59714         (setgid, setregid, setegid, setresgid): Likewise.
59715         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59716         Likewise.
59717         * WUR-REPORT: Remove set*id functions.
59718
59719 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59720
59721         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59722
59723 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59724
59725         [BZ #10191]
59726         * include/sys/socket.h (__libc_accept, __libc_accept4):
59727         Add attribute_hidden.
59728         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59729
59730         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59731         use of PTR_MANGLE.
59732         * inet/getnetgrent_r.c (setup): Likewise.
59733
59734         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59735
59736 2012-07-31  David S. Miller  <davem@davemloft.net>
59737
59738         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59739
59740 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59741
59742         [BZ #13629]
59743         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59744         value between 1.0 and 2.0 and smaller part has absolute value less
59745         than 1.0.
59746         * math/s_clog10.c (__clog10): Likewise.
59747         * math/s_clog10f.c (__clog10f): Likewise.
59748         * math/s_clog10l.c (__clog10l): Likewise.
59749         * math/s_clogf.c (__clogf): Likewise.
59750         * math/s_clogl.c (__clogl): Likewise.
59751         * math/libm-test.inc (clog_test): Add more tests.
59752         (clog10_test): Likewise.
59753         * sysdeps/i386/fpu/libm-test-ulps: Update.
59754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59755
59756 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59757
59758         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59759         Exit with zero in case no suitable GID is found, and write a
59760         message to standard error.
59761
59762 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59763
59764         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59765         rather than to 1.
59766         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59767         (MAXPATHLEN): Removed.
59768         (NOGROUP, NODEV): New macros.
59769         (setbit, clrbit, isset, isclr): New macros.
59770         (howmany, roundup, powerof2): New macros.
59771         (DEV_BSIZE): New macro.
59772
59773         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59774         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59775
59776         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59777         definition on [!__NO_LONG_DOUBLE_MATH].
59778
59779         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59780         PTR_MANGLE and PTR_DEMANGLE.
59781
59782         * socket/accept4.c (accept4): Rename to __libc_accept4.
59783         Define accept4 as a weak alias.
59784
59785         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59786         on [_DIRENT_HAVE_D_TYPE].
59787         * io/ftw.c (ftw_dir): Likewise.
59788
59789         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59790
59791         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59792
59793         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59794         Use the BSD numbers rather than the arbitrary ones we had.
59795         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59796         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59797         (SIGXCPU, SIGXFSZ): New macros.
59798         (_NSIG): Now 32.
59799
59800         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59801         initializer on [_LIBC_REENTRANT].
59802
59803         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59804         definitions inside [_POSIX_MAPPED_FILES].
59805
59806         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59807
59808         * dirent/opendir.c: Include <fcntl.h>.
59809
59810         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59811         (__libc_getspecific): Likewise.
59812         (__libc_key_create): Likewise.
59813
59814         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59815         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59816         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59817         (tmpfile64): Define as alias.
59818         * sysdeps/wordsize-64/tmpfile.c: File removed.
59819         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59820         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59821         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59822
59823         * stdio-common/vfscanf.c: Include <stdbool.h>.
59824         * nss/makedb.c: Likewise.
59825         * stdio-common/_i18n_number.h: Likewise.
59826         * argp/argp-help.c: Likewise.
59827         * posix/wordexp.c: Likewise.
59828         * sysdeps/posix/spawni.c: Likewise.
59829         * nss/nss_files/files-initgroups.c: Likewise.
59830         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59831         * nss/nss_files/files-initgroups.c: Likewise.
59832         * nss/nss_db/db-netgrp.c: Likewise.
59833         * nss/nss_db/db-initgroups.c: Likewise.
59834         * io/fchmodat.c: Include <sys/stat.h>.
59835
59836         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59837         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59838
59839         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59840         [HAVE_MMAP].
59841
59842         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59843         Add multiple inclusion protection.
59844
59845 2012-07-27  David S. Miller  <davem@davemloft.net>
59846
59847         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59848
59849 2012-07-27  Gary Benson  <gbenson@redhat.com>
59850
59851         [BZ #14298]
59852         * elf/rtld.c: Include <stap-probe.h>.
59853         (dl_main): Added static probes "init_start" and "init_complete".
59854         * elf/dl-load.c: Include <stap-probe.h>.
59855         (lose): Take new parameter "nsid".
59856         Added static probe "map_failed".
59857         (_dl_map_object_from_fd): Pass namespace id to lose.
59858         Added static probe "map_start".
59859         (open_verify): Pass namespace id to lose.
59860         * elf/dl-open.c: Include <stap-probe.h>.
59861         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59862         and "reloc_complete".
59863         * elf/dl-close.c: Include <stap-probe.h>.
59864         (_dl_close_worker): Added static probes "unmap_start" and
59865         "unmap_complete".
59866         * elf/rtld-debugger-interface.txt: New file documenting the above.
59867
59868 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59869
59870         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59871         rather than a string variable.
59872         * sunrpc/rpc_main.c (h_output): Likewise.
59873         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59874
59875 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59876
59877         * inet/check_native.c: New file.
59878
59879 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59880
59881         [BZ #13629]
59882         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59883         if larger part has absolute value 1.0.
59884         * math/s_clog10.c (__clog10): Likewise.
59885         * math/s_clog10f.c (__clog10f): Likewise.
59886         * math/s_clog10l.c (__clog10l): Likewise.
59887         * math/s_clogf.c (__clogf): Likewise.
59888         * math/s_clogl.c (__clogl): Likewise.
59889         * math/libm-test.inc (clog_test): Add more tests.
59890         (clog10_test): Likewise.
59891         * sysdeps/i386/fpu/libm-test-ulps: Update.
59892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59893
59894         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59895         (pltexit): Likewise.
59896         (La_regs): Likewise.
59897         (La_retval): Likewise.
59898         (int_retval): Likewise.
59899         Update #error for removed macros to refer only to definitions in
59900         tst-audit.h.
59901         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59902         macro.
59903         (pltexit): Likewise.
59904         (La_regs): Likewise.
59905         (La_retval): Likewise.
59906         (int_retval): Likewise.
59907         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59908         macro.
59909         (pltexit): Likewise.
59910         (La_regs): Likewise.
59911         (La_retval): Likewise.
59912         (int_retval): Likewise.
59913         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59914         macro.
59915         (pltexit): Likewise.
59916         (La_regs): Likewise.
59917         (La_retval): Likewise.
59918         (int_retval): Likewise.
59919         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59920         macro.
59921         (pltexit): Likewise.
59922         (La_regs): Likewise.
59923         (La_retval): Likewise.
59924         (int_retval): Likewise.
59925         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59926         macro.
59927         (pltexit): Likewise.
59928         (La_regs): Likewise.
59929         (La_retval): Likewise.
59930         (int_retval): Likewise.
59931         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59932         macro.
59933         (pltexit): Likewise.
59934         (La_regs): Likewise.
59935         (La_retval): Likewise.
59936         (int_retval): Likewise.
59937         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59938         macro definitions in tst-audit.h.
59939         * sysdeps/i386/tst-audit.h: New file.
59940         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59941         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59942         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59943         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59944         * sysdeps/sh/tst-audit.h: Likewise.
59945         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59946         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59947         * sysdeps/x86_64/tst-audit.h: Likewise.
59948
59949 2012-07-26  Andreas Jaeger  <aj@suse.de>
59950
59951         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59952         ptrace.
59953
59954         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59955         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59956         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59957         PTRACE_O_MASK.
59958         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59959         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59960         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59961
59962         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59963         value.
59964
59965         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59966         _sigsys.
59967         (si_call_addr, si_syscall, si_arch): Define new macro.
59968         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59969         _sigsys.
59970         (si_call_addr, si_syscall, si_arch): Define new marcro.
59971         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59972         _sigsys.
59973         (si_call_addr, si_syscall, si_arch): Define new macro.
59974         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59975         _sigsys.
59976         (si_call_addr, si_syscall, si_arch): Define new macro.
59977
59978 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59979
59980         [BZ #13717]
59981         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59982         Change to 2.4.21 where previously 2.4.1.
59983         * sysdeps/unix/sysv/linux/configure: Regenerated.
59984         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59985         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59986         Linux kernel version.
59987         (__ASSUME_STD_AUXV): Remove.
59988         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59989         kernel version.
59990         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59991         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59992         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59993         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59994         (__ASSUME_NETLINK_SUPPORT): Likewise.
59995         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59996         (__no_netlink_support): Remove conditional definition.
59997         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59998         Remove.
59999         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60000         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
60001         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
60002         (if_nameindex_ioctl): Remove.
60003         (if_nameindex_netlink): Do not handle __no_netlink_support.
60004         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60005         code.
60006         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
60007         Remove conditional code.
60008         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60009         code.
60010         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
60011         unconditional.
60012         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60013         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
60014         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
60015         Remove.
60016         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
60017         [!__ASSUME_STD_AUXV]: Remove conditional code.
60018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
60019         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
60020         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
60021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
60022         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
60023         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60024         code.
60025         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
60027         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
60028         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60029         conditional code.
60030         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
60032         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60033         code.
60034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
60035         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60036         conditional code.
60037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
60038         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60039         code unconditional.
60040         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60041         conditional code.
60042         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60043         unconditional.
60044         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60045         conditional code.
60046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
60047         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60048         unconditional.
60049         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60050         conditional code.
60051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
60052         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60053         code unconditional.
60054         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60055         conditional code.
60056         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60057         unconditional.
60058         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60059         conditional code.
60060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
60061         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60062         code unconditional.
60063         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60064         conditional code.
60065         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60066         unconditional.
60067         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60068         conditional code.
60069
60070 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
60071
60072         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
60073         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
60074         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
60075         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
60076         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
60077         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
60078         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
60079         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
60080         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
60081         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
60082         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
60083         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
60084         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
60085         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
60086         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
60087         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
60088         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
60089         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
60090         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
60091         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
60092         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
60093         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
60094         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
60095
60096 2012-07-25  Florian Weimer  <fweimer@redhat.com>
60097
60098         * Versions.def: Add GLIBC_2.17.
60099         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
60100         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
60101         Introduce __libc_secure_getenv.
60102         * stdlib/Versions (2.17): Add secure_getenv
60103         (GLIBC_PRIVATE): Add __libc_secure_getenv.
60104         * stdlib/secure-getenv.c: Rename __secure_getenv to
60105         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
60106         symbol __secure_getenv for GLIBC_2.0.
60107         * stdlib/tst-secure-getenv.c: New.
60108         * stdlib/Makefile (tests): Add testcase.
60109         * manual/startup.texi (Environment Access): Document
60110         secure_getenv.
60111         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
60112         __libc_secure_getenv.
60113         * inet/ruserpass.c (ruserpass): Likewise.
60114         * malloc/mtrace.c (mtrace): Likewise.
60115         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
60116         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
60117         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
60118         * sysdeps/posix/tempname.c: Likewise.  Evaluate
60119         HAVE_SECURE_GETENV.
60120         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
60121         __secure_getenv to __libc_secure_getenv.
60122         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
60123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
60124         Likewise.
60125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
60126         Likewise.
60127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
60128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
60129         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
60130         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
60131         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
60132         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
60133         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
60134
60135 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60136
60137         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
60138         (struct La_i86_retval): Likewise.
60139         (struct La_x86_64_regs): Likewise.
60140         (struct La_x86_64_retval): Likewise.
60141         (struct La_x32_regs): Likewise.
60142         (struct La_x32_retval): Likewise.
60143         (struct La_ppc32_regs): Likewise.
60144         (struct La_ppc32_retval): Likewise.
60145         (struct La_ppc64_regs): Likewise.
60146         (struct La_ppc64_retval): Likewise.
60147         (struct La_sh_regs): Likewise.
60148         (struct La_sh_retval): Likewise.
60149         (struct La_s390_32_regs): Likewise.
60150         (struct La_s390_32_retval): Likewise.
60151         (struct La_s390_64_regs): Likewise.
60152         (struct La_s390_64_retval): Likewise.
60153         (struct La_sparc32_regs): Likewise.
60154         (struct La_sparc32_retval): Likewise.
60155         (struct La_sparc64_regs): Likewise.
60156         (struct La_sparc64_retval): Likewise.
60157         (struct audit_ifaces): Remove architecture-specific pltenter and
60158         pltexit members.
60159         * sysdeps/i386/ldsodefs.h: New file.
60160         * sysdeps/powerpc/ldsodefs.h: Likewise.
60161         * sysdeps/s390/ldsodefs.h: Likewise.
60162         * sysdeps/sh/ldsodefs.h: Likewise.
60163         * sysdeps/sparc/ldsodefs.h: Likewise.
60164         * sysdeps/x86_64/ldsodefs.h: Likewise.
60165
60166 2012-07-25  Marek Polacek  <polacek@redhat.com>
60167
60168         [BZ #6808]
60169         * math/libm-test.inc (yn_test): Add another test.
60170         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
60171         to ERANGE when the result is +-Inf.
60172         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
60173         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
60174         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
60175         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
60176
60177 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
60178
60179         * conform/data/time.h-data (NULL): Use macro-constant.  Require
60180         equal to 0.
60181         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
60182         clock_t.
60183         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
60184
60185 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
60186
60187         * configure.in <sysdeps resolving>: Correct printing
60188         Implies_before.
60189         * configure: Regenerate.
60190
60191 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
60192
60193         * math/w_ilogb.c: Include <limits.h>.
60194         * math/w_ilogbl.c: Likewise.
60195
60196 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60197
60198         * manual/lang.texi (__va_copy): Document primarily as ISO C99
60199         va_copy.  Document allowing for unavailable va_copy only as
60200         pre-C99 compatibility.
60201         * manual/string.texi (Copying and Concatenation): Use va_copy
60202         instead of __va_copy in concat example.
60203
60204 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
60205
60206         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
60207         (__sendto): Use create_address_port.  Initialize APORT and deallocate
60208         it if not null.
60209
60210         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
60211         with O_NOLINK passed to __file_name_lookup.
60212
60213         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
60214         with O_NOLINK passed to __file_name_lookup.
60215
60216         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
60217         negative N or less than NGIDS.
60218
60219         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
60220         type to string_t.  Set ERANGE as errno and return it if NAME is not big
60221         enough.  Use memcpy instead of strncpy.
60222
60223 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60224
60225         * elf/Makefile (check-data): Remove.
60226         (localplt.data): New vpath directive.
60227         ($(objpfx)check-localplt.out): Use localplt.data from vpath
60228         instead of $(check-data).
60229         * scripts/data/localplt-generic.data: Move to ...
60230         * sysdeps/generic/localplt.data: ... here.
60231         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
60232         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
60233         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
60234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
60235         ... here.
60236         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
60237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
60238         ... here.
60239         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
60240         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
60241         ... here.
60242         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
60243         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
60244         ... here.
60245         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
60246         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
60247         ... here.
60248         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
60249         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
60250         ... here.
60251
60252 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60253
60254         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
60255         PPC32 and PPC64 files.
60256         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
60257         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
60258
60259 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60260
60261         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
60262         __makecontext_ret to ...
60263         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
60264         ... here and call exit if uc_link is NULL.  New file.
60265         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
60266         __makecontext_ret.S.
60267         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
60268         __makecontext_ret to ...
60269         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
60270         ... here and call exit if uc_link is NULL.  New file.
60271         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
60272         __makecontext_ret.S.
60273
60274 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60275
60276         * elf/elf.h (R_390_IRELATIVE): New definition.
60277         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
60278         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
60279         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
60280         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60281         (elf_machine_lazy_rel): Likewise.
60282         * sysdeps/s390/dl-irel.h: New file.
60283         * sysdeps/s390/s390-64/memcpy.S: New asm code.
60284         * sysdeps/s390/s390-64/memset.S: New asm code.
60285         * sysdeps/s390/s390-64/memcmp.S: New asm code.
60286         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
60287         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
60288         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
60289         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
60290         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
60291         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
60292         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
60293         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
60294         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
60295         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
60296         * sysdeps/s390/s390-32/memcpy.S: New asm code.
60297         * sysdeps/s390/s390-32/memset.S: New asm code.
60298         * sysdeps/s390/s390-32/memcmp.S: New asm code.
60299
60300 2012-07-17  Marek Polacek  <polacek@redhat.com>
60301
60302         [BZ #14349]
60303         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
60304         * sysdeps/s390/s390-64/configure.in: Likewise.
60305         * sysdeps/sparc/configure.in: Likewise.
60306         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
60307         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
60308         * sysdeps/i386/configure.in: Likewise.
60309         * sysdeps/x86_64/configure.in: Likewise.
60310         * sysdeps/sh/configure.in: Likewise.
60311         * sysdeps/s390/s390-32/configure: Regenerated.
60312         * sysdeps/s390/s390-64/configure: Likewise.
60313         * sysdeps/x86_64/configure: Likewise.
60314         * sysdeps/sh/configure: Likewise.
60315         * sysdeps/powerpc/powerpc64/configure: Likewise.
60316         * sysdeps/powerpc/powerpc32/configure: Likewise.
60317         * sysdeps/sparc/configure: Likwise.
60318         * sysdeps/i386/configure: Likewise.
60319
60320         * elf/dl-open.c: Comment fixes.
60321
60322 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
60323
60324         * Makefile [CXX] (check-data): Remove.
60325         [CXX] (c++-types.data): New vpath directive.
60326         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
60327         vpath.  Do not allow for C++ type data being missing.
60328         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
60329         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
60330         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
60331         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
60332         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
60333         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
60334         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
60335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
60336         ... here.
60337         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
60338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
60339         ... here.
60340         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
60341         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
60342         ... here.
60343         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
60344         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
60345         ... here.
60346         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
60347         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
60348         ... here.
60349         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
60350         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
60351         ... here.
60352         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
60353         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
60354         ... here.
60355         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
60356         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
60357
60358         * elf/tls-macros.h (TLS_LE): Move architecture-specific
60359         definitions to architecture-specific files.
60360         (TLS_IE): Likewise.
60361         (TLS_LD): Likewise.
60362         (TLS_GD): Likewise.
60363         * sysdeps/i386/tls-macros.h: New file.
60364         * sysdeps/powerpc/tls-macros.h: Likewise.
60365         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60366         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60367         * sysdeps/sh/tls-macros.h: Likewise.
60368         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60369         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60370         * sysdeps/x86_64/tls-macros.h: Likewise.
60371
60372 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60373
60374         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60375         zero value for regular exit case.
60376
60377         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60378         (__start_context): Preserve zero value for regular exit case.
60379
60380 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60381             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60382
60383         * manual/setjmp.texi (setcontext): Clarify normal process
60384         termination when uc_link is the null pointer.
60385         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60386         exit call.
60387
60388 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60389
60390         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60391         preprocessor.  Test for each exception mask separately.
60392
60393 2012-07-16  Andreas Jaeger  <aj@suse.de>
60394
60395         * po/ru.po: Update from translation team.
60396
60397 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60398
60399         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60400         equal to 0.
60401         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60402         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60403         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60404         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60405         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60406
60407 2012-07-13  Andreas Jaeger  <aj@suse.de>
60408
60409         * po/fr.po: Update from translation team.
60410
60411 2012-07-12  Marek Polacek  <polacek@redhat.com>
60412
60413         [BZ #14173]
60414         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60415         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60416         loop condition.
60417
60418 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60419
60420         [BZ #13717]
60421         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60422         Change to 2.4.1 where previously 2.4.0.
60423         * sysdeps/unix/sysv/linux/configure: Regenerated.
60424         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60425         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60426         version.
60427         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60428         (__ASSUME_AT_CLKTCK): Remove.
60429         (__ASSUME_AT_PAGESIZE): Likewise.
60430         (__ASSUME_AT_XID): Likewise.
60431         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60432         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60433         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60434         unconditionally.
60435         (HAVE_AUX_PAGESIZE): Likewise.
60436         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60437         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60438         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60439
60440 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60441
60442         [BZ #14307]
60443         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60444         the temporary buffer used to invoke __gethostbyname2_r,
60445         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60446         host_data / struct gaih_addrtuple.
60447         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60448         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60449         header file nss/nsswitch.h.
60450         * nss/nsswitch.h (global scope): Add definition of implementation
60451         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60452         resolv/nss_dns/dns-host.c).
60453
60454 2012-07-11  Andreas Jaeger  <aj@suse.de>
60455
60456         * po/fr.po: Update from translation team.
60457
60458         * po/sv.po: Update from translation team
60459         * po/fr.po: Another update from translation team.
60460
60461 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60462
60463         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60464         for subnormals or multiply small sinh result by itself.
60465         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60466         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60467
60468 2012-07-11  David S. Miller  <davem@davemloft.net>
60469
60470         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60471
60472 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60473
60474         [BZ #14347]
60475         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60476         (INTERNAL_MARK): Shift it here.
60477
60478 2012-07-10  Marek Polacek  <polacek@redhat.com>
60479
60480         [BZ #14151]
60481         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60482         libc_cv_asm_global_directive with .globl.
60483         * configure: Regenerated.
60484         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60485         with .globl.
60486         * sysdeps/i386/configure: Regenerated.
60487         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60488         with .globl.
60489         * sysdeps/x86_64/configure: Regenerated.
60490         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60491         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60492         * elf/tst-unique2mod2.c: Likewise.
60493         * elf/tst-unique2mod1.c: Likewise.
60494         * elf/tst-unique1mod2.c: Likewise.
60495         * elf/tst-unique1mod1.c: Likewise.
60496         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60497         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60498         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60499         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60500         * sysdeps/mach/sysdep.h: Likewise.
60501         * sysdeps/i386/sysdep.h: Likewise.
60502         * sysdeps/i386/i386-mcount.S: Likewise.
60503         * sysdeps/x86_64/_mcount.S: Likewise.
60504         * sysdeps/x86_64/sysdep.h: Likewise.
60505         * sysdeps/sh/_mcount.S: Likewise.
60506         * sysdeps/sh/sysdep.h: Likewise.
60507         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60508         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60509         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60510         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60511         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60512         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60513         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60514         * locale/localeinfo.h: Likewise.
60515         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60516         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60517
60518 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60519
60520         [BZ #14336]
60521         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60522         system".
60523         * manual/message.texi (The Uniforum approach): Likewise.
60524         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60525         (glibc iconv Implementation): Likewise.
60526
60527 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60528
60529         [BZ #14337]
60530         * math/s_clog.c (__clog): Avoid scaling a value down where that
60531         could result in underflow.
60532         * math/s_clog10.c (__clog10): Likewise.
60533         * math/s_clog10f.c (__clog10f): Likewise.
60534         * math/s_clog10l.c (__clog10l): Likewise.
60535         * math/s_clogf.c (__clogf): Likewise.
60536         * math/s_clogl.c (__clogl): Likewise.
60537         * math/libm-test.inc (clog_test): Add more tests.
60538         (clog10_test): Likewise.
60539         * sysdeps/i386/fpu/libm-test-ulps: Update.
60540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60541
60542 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60543
60544         [BZ #14283]
60545         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60546         by 7 not 8 to examine high bit of fractional part.
60547
60548         [BZ #14042]
60549         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60550         for call to __mcount_internal.
60551         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60552         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60553         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60554
60555 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60556
60557         [BZ #14154]
60558         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60559         approximation for values within 0x1p-13f of an odd multiple of
60560         pi/4.
60561         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60562         exception.  Add more tests.
60563         * sysdeps/i386/fpu/libm-test-ulps: Update.
60564
60565         [BZ #6778]
60566         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60567         inputs and return -1 for them.  Do not check for +Inf in case not
60568         reachable for +Inf.
60569         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60570         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60571         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60572         and return -1 for them.  Do not check for +Inf in case not
60573         reachable for +Inf.
60574         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60575         define.
60576         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60577         and return -1 for them.  Do not check for +Inf in case not
60578         reachable for +Inf.
60579         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60580         spurious underflow.
60581         * sysdeps/i386/fpu/libm-test-ulps: Update.
60582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60583
60584 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60585
60586         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60587
60588 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60589
60590         [BZ #14157]
60591         [BZ #14331]
60592         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60593         could result in spurious underflow.  Scale down values above
60594         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60595         * math/s_csqrtf.c (__csqrtf): Likewise.
60596         * math/s_csqrtl.c (__csqrtl): Likewise.
60597         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60598         spurious underflow.
60599         * sysdeps/i386/fpu/libm-test-ulps: Update.
60600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60601
60602 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60603
60604         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60605         xopen-msg.sed.
60606         * catgets/xopen-msg.awk: New file.
60607         * catgets/xopen-msg.sed: Removed.
60608
60609         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60610         po2text.sed.
60611         * intl/po2test.awk: New file.
60612         * intl/po2test.sed: Removed.
60613
60614 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60615
60616         [BZ #14328]
60617         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60618         or multiply small sinh result by itself.
60619         * math/s_ctanf.c (__ctanf): Likewise.
60620         * math/s_ctanh.c (__ctanh): Likewise.
60621         * math/s_ctanhf.c (__ctanhf): Likewise.
60622         * math/s_ctanhl.c (__ctanhl): Likewise.
60623         * math/s_ctanl.c (__ctanl): Likewise.
60624         * math/libm-test.inc (ctan_test_tonearest): New function.
60625         (ctan_test_towardzero): Likewise.
60626         (ctan_test_downward): Likewise.
60627         (ctan_test_upward): Likewise.
60628         (ctanh_test_tonearest): Likewise.
60629         (ctanh_test_towardzero): Likewise.
60630         (ctanh_test_downward): Likewise.
60631         (ctanh_test_upward): Likewise.
60632         (main): Call these new functions.
60633         * sysdeps/i386/fpu/libm-test-ulps: Update.
60634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60635
60636 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60637
60638         * .gitignore: Delete /ports entry.
60639
60640 2012-07-03  Andreas Jaeger  <aj@suse.de>
60641
60642         * po/bg.po: Update from translation team.
60643         * po/cs.po: Likewise.
60644         * po/de.po: Likewise.
60645         * po/hr.po: Likewise.
60646         * po/nl.pl: Likewise.
60647         * po/pl.po: Likewise.
60648         * po/vi.po: Likewise.
60649
60650 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60651
60652         * Makeconfig [!+link] (+link-before-libc): New variable.
60653         [!+link] (+link-after-libc): Likewise.
60654         [!+link] (+link-tests): Likewise.
60655         [!+link] (+link): Define in terms of $(+link-before-libc) and
60656         $(+link-after-libc).
60657         [!+link-static] (+link-static-before-libc): New variable.
60658         [!+link-static] (+link-static-after-libc): Likewise.
60659         [!+link-static] (+link-static-tests): Likewise.
60660         [!+link-static] (+link-static): Define in terms of
60661         $(+link-static-before-libc) and $(+link-static-after-libc).
60662         [build-shared] (link-libc-before-gnulib): New variable.
60663         [build-shared] (link-libc-tests): Likewise.
60664         [build-shared] (link-libc): Define in terms of
60665         $(link-libc-before-gnulib).
60666         [!build-shared] (link-libc-tests): New variable.
60667         (link-libc-static-tests): New variable.
60668         [!gnulib] (gnulib-arch): New variable.
60669         [!gnulib] (gnulib-tests): Likewise.
60670         [!gnulib] (static-gnulib-arch): Likewise.
60671         [!gnulib] (static-gnulib-tests): Likewise.
60672         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60673         Define with "=" instead of ":=".
60674         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60675         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60676         * Rules (binaries-all-notests): New variable.
60677         (binaries-all-tests): Likewise.
60678         (binaries-static-notests): Likewise.
60679         (binaries-static-tests): Likewise.
60680         (binaries-all): Define using $(binaries-all-notests) and
60681         $(binaries-all-tests).
60682         (binaries-static): Define using $(binaries-static-notests) and
60683         $(binaries-static-tests).
60684         (binaries-shared-tests): New variable.
60685         (binaries-shared-notests): Likewise.
60686         (binaries-shared): Remove variable.
60687         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60688         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60689         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60690         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60691         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60692         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60693         * elf/Makefile (sln-modules): New variable.
60694         (extra-objs): Add $(sln-modules:=.o).
60695         (ldconfig-modules): Add static-stubs.
60696         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60697         * elf/static-stubs.c: New file.
60698
60699         [BZ #14283]
60700         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60701         by 7 not 8 to examine high bit of fractional part.  Use volatile
60702         variables when splitting into final array of floats if
60703         __FLT_EVAL_METHOD__ != 0.
60704         * math/libm-test.inc (cos_test): Add another test.
60705         (sin_test): Likewise.
60706         * sysdeps/i386/fpu/libm-test-ulps: Update.
60707
60708         [BZ #14273]
60709         * math/libm-test.inc (cosh_test): Add more tests.
60710
60711         * version.h (RELEASE): Set to "development".
60712         (VERSION): Set to "2.16.90".
60713
60714 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60715
60716         * NEWS: Update copyright. Remove last-updated date.
60717         Mention math library bug fixes and timezone data changes.
60718         * README: Mention GNU/Hurd, x32, and HPPA support status.
60719
60720 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60721
60722         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60723
60724 2012-06-27  Andreas Jaeger  <aj@suse.de>
60725
60726         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60727
60728 2012-06-25  Andreas Jaeger  <aj@suse.de>
60729
60730         * sysdeps/s390/fpu/libm-test-ulps: Update.
60731
60732 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60733             Thomas Schwinge  <thomas@codesourcery.com>
60734
60735         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60736         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60737         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60738         fanotify_mark.
60739
60740 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60741
60742         * sysdeps/mach/start.c: Remove file.
60743         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60744         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60745         * sysdeps/sh/init-first.c: Likewise.
60746
60747         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60748         registers for frame unwinding purposes, add CFI directives.
60749         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60750         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60751         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60752         Likewise.
60753
60754         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60755         __fortify_fail returning.
60756         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60757
60758         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60759         sysdeps/sh/____longjmp_chk.S.
60760         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60761         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60762         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60763         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60764
60765         * sysdeps/sh/abort-instr.h: New file.
60766         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60767         process in case exit returns.
60768
60769         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60770         initialize the GOT register before use.
60771
60772         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60773         calculation of ARGC > 4.
60774
60775         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60776         meaningful names to some local labels.
60777
60778 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60779             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60780
60781         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60782         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60783         (__arch_compare_and_exchange_val_16_acq): Likewise.
60784         (__arch_compare_and_exchange_val_32_acq): Likewise.
60785         (atomic_exchange_and_add): Fix gUSA sequence.
60786         (atomic_add): Likewise.
60787         (atomic_add_negative): Likewise.
60788         (atomic_add_zero): Likewise.
60789         (atomic_bit_test_set): Likewise.
60790
60791 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60792
60793         [BZ #13579]
60794         * include/link.h (struct link_map): Add l_free_initfini.
60795         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60796         l_initfini.
60797         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60798         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60799         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60800         set.
60801
60802 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60803
60804         * configure.in: Use AC_LANG_SOURCE.
60805         * configure: Regenerate.
60806
60807 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60808
60809         * configure.in (libc_cv_localstatedir): New substituted variable.
60810         * configure: Regenerated.
60811         * config.make.in (localstatedir): New variable, substituted from
60812         libc_cv_localstatedir.
60813         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60814         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60815         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60816         * sysdeps/gnu/configure: Regenerated.
60817
60818 2012-06-21  Jeff Law  <law@redhat.com>
60819
60820         [BZ #14277]
60821         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60822         free.  Simplify list management for _LIBC case.
60823
60824 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60825
60826         [BZ #14273]
60827         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60828         Clear sign bit of 64-bit integer value before comparing against
60829         overflow value.
60830
60831         * sysdeps/mach/configure: Regenerated.
60832
60833 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60834
60835         [BZ #14278]
60836         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60837
60838 2012-06-21  Jeff Law  <law@redhat.com>
60839
60840         [BZ #13882]
60841         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60842         uint16_t for elements in the "seen" array to avoid char overflows.
60843         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60844         * elf/dl-open.c (dl_open_worker): Likewise.
60845
60846 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60847
60848         * scripts/list-sources.sh: Scan PORTS for translations.
60849         * po/libc.pot: Regenerated.
60850
60851 2012-06-21  Andreas Jaeger  <aj@suse.de>
60852
60853         [BZ #12194]
60854         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60855         warning.
60856         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60857         * bits/byteswap-16.h (__bswap_16): Likewise.
60858         * bits/byteswap.h (__bswap_constant_16): Likewise.
60859
60860 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60861
60862         [BZ #14117]
60863         * sysdeps/i386/fpu_control.h: Removed.
60864         * sysdeps/x86_64/fpu_control.h: Moved to ...
60865         * sysdeps/x86/fpu_control.h: Here.
60866
60867         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60868         (_FPU_SETCW): Likewise.
60869
60870 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60871
60872         [BZ #14117]
60873         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60874         * sysdeps/x86/fpu/bits/mathinline.h: This.
60875         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60876
60877         [BZ #14050]
60878         [BZ #14117]
60879         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60880         functions if __x86_64__ is defined.
60881
60882 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60883
60884         * string/endian.h: Add !__ASSEMBLER__ condition for including
60885         conversion interfaces.
60886
60887 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60888
60889         [BZ #14241]
60890         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60891         of ABS(x) in calculating zero to negative powers other than odd
60892         integers.
60893         * math/libm-test.inc (pow_test): Add more tests.
60894
60895 2012-06-15  Andreas Jaeger  <aj@suse.de>
60896
60897         * manual/contrib.texi (Contributors): Update entry of Liubov
60898         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60899         Machado Filho.
60900
60901 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60902
60903         * string/string.h: Add __wur to GNU version of strerror_r.
60904
60905 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60906
60907         [BZ #14229]
60908         * string/Makefile (tests): Add tst-strtok_r.
60909         * string/tst-strtok_r.c: New file.
60910         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60911         RAX_LP/RDX_LP on SAVE_PTR.
60912
60913 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60914
60915         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60916
60917 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60918
60919         * libm_test.inc (csqrt_test): Allow more spurious underflow
60920         exceptions.
60921         (j0_test): Likewise.
60922         (j1_test): Likewise.
60923         (y0_test): Likewise.
60924         (y1_test): Likewise.
60925
60926 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60927
60928         * po/Makefile (libc.pot): Use UTF-8 charset.
60929
60930 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60931
60932         [BZ #14210]
60933         Suppress sign-conversion warning from FD_SET.
60934         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60935         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60936         not unsigned long int.
60937         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60938
60939 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60940
60941         [BZ #14050]
60942         [BZ #14117]
60943         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60944         __extern_always_inline instead of __extern_inline.
60945         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60946         (__signbit): Likewise.
60947         (__signbitl): Support C++ namespace.
60948         (lrintf): New inline function.
60949         (lrint): Likewise.
60950         (llrintf): Likewise.
60951         (llrint): Likewise.
60952         (fmaxf): Likewise.
60953         (fmax): Likewise.
60954         (fminf): Likewise.
60955         (fmin): Likewise.
60956         (rint): Likewise.
60957         (rintf): Likewise.
60958         (ceil): Likewise.
60959         (ceilf): Likewise.
60960         (floor): Likewise.
60961         (floorf): Likewise.
60962         (nearbyint): Likewise.
60963         (nearbyintf): Likewise.
60964
60965 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60966
60967         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60968         non-default versions.
60969
60970 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60971
60972         [BZ #14218]
60973         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60974
60975 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60976
60977         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60978         (FE_UPWARD, FE_DOWNWARD): Don't define.
60979         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60980         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60981
60982         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60983         reading it.
60984         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60985         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60986
60987 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60988
60989         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60990         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60991         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60992         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60993
60994 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60995
60996         [BZ #14117]
60997         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60998         * sysdeps/i386/fpu/Implies: New file.
60999         * sysdeps/x86_64/fpu/Implies: Likewise.
61000         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
61001         * sysdeps/x86/fpu/bits/fenv.h: This.
61002
61003         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
61004         __SSE_MATH__.
61005
61006 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
61007
61008         [BZ #14134]
61009         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
61010         character 0xffff that matches the last element of the
61011         conversion table.
61012
61013 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61014
61015         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
61016         fmodl commit.
61017
61018 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61019
61020         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
61021         values higher than 25.6283.
61022
61023 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61024
61025         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
61026         subnormal exponent extraction and add some __builtin_expect.
61027         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
61028         Fix for subnormal mantissa calculation.
61029
61030 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
61031
61032         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
61033         cpu2 is -1 and errno is not ENOSYS.
61034
61035 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
61036
61037         [BZ #14117]
61038         * sysdeps/i386/i486/bits/string.h: Renamed to ...
61039         * sysdeps/x86/bits/string.h: This.
61040         * sysdeps/x86_64/bits/string.h: Removed.
61041
61042         * sysdeps/i386/i486/bits/string.h: Define inline functions only
61043         if not compiling for x86-64, but compiling for >= i486.
61044
61045         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
61046         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
61047
61048         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
61049         New macro from Linux kernel 3.4.0.
61050         (FP_XSTATE_MAGIC2): Likewise.
61051         (FP_XSTATE_MAGIC2_SIZE): Likewise.
61052         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
61053         (struct _fpx_sw_bytes): New struct.
61054         (struct _xsave_hdr): Likewise.
61055         (struct _ymmh_state): Likewise.
61056         (struct _xstate): Likewise.
61057
61058         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
61059         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
61060         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
61061         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
61062         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
61063         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
61064
61065         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
61066         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
61067         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
61068         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
61069         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
61070         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
61071
61072 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61073
61074         [BZ #13743]
61075         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
61076         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
61077         (sysdep_headers): Include sys/platform/ppc.h.
61078         * sysdeps/powerpc/test-gettimebase.c: Test for
61079         __ppc_get_timebase() to catch future ISA opcode/insn changes.
61080         * manual/Makefile (appendices): Include platform.texi.
61081         * manual/contrib.texi (Contributors): Update @node pointers.
61082         * manual/maint.texi (Maintenance): Likewise.
61083         (Platform): New node.
61084         * manual/platform.texi: New file.  Document the new features.
61085
61086 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
61087             Jakub Jelinek  <jakub@redhat.com>
61088
61089         [BZ #14188]
61090         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
61091         where __builtin_expect is unavailable.
61092
61093 2012-06-03  David S. Miller  <davem@davemloft.net>
61094
61095         * stdlib/longlong.h: Updated from GCC.
61096
61097 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
61098
61099         [BZ #14042]
61100         * sysdeps/powerpc/powerpc32/mcount.c: New file.
61101         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
61102         __mcount_internal.
61103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
61104         (GLIBC_2.16): Likewise.
61105
61106 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61107
61108         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
61109
61110 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61111
61112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
61113         (default-abi): New variable.
61114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
61115         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
61116         variable.
61117         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
61118         Likewise.
61119         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
61120         Likewise.
61121         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
61122         Likewise.
61123
61124         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
61125         definition.  Document in comment.
61126
61127 2012-06-01  David S. Miller  <davem@davemloft.net>
61128
61129         * stdlib/longlong.h: Updated from GCC.
61130
61131 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61132
61133         [BZ #14117]
61134         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
61135         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
61136         sys/debugreg.h sys/io.h here.
61137         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
61138         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
61139         sys/io.h.
61140         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
61141         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
61142         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
61143         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
61144         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
61145         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
61146
61147         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
61148         Define only if __x86_64__ is defined.
61149
61150 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61151
61152         [BZ #14048]
61153         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
61154         Use int64_t for variable i.
61155         * math/libm-test.inc (fmod_test): Add more tests.
61156
61157         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
61158         z computation is not scheduled after fetestexcept.
61159         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
61160         Use math_force_eval instead of asm to ensure calculation scheduled
61161         before exception test.
61162         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
61163         Ensure a1 + u.d computation is not scheduled after fetestexcept.
61164
61165 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
61166
61167         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
61168         computation is not scheduled after fetestexcept.
61169
61170 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61171
61172         [BZ #14117]
61173         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
61174         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
61175
61176 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61177
61178         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
61179         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
61180
61181 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61182
61183         [BZ #14117]
61184         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
61185         <bits/wordsize.h>.
61186         (__WCHAR_MIN): Support __WORDSIZE == 64.
61187         (__WCHAR_MAX): Likewise.
61188
61189         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
61190         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
61191
61192         [BZ #14183]
61193         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
61194         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
61195
61196         [BZ #14117]
61197         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
61198         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
61199
61200         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
61201         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
61202
61203         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
61204         Defined to 1 if __x86_64__ isn't defined.
61205         (_STAT_VER_LINUX_OLD): New.
61206         (st_atime): Remove duplicate.
61207         (st_mtime): Likewise.
61208         (st_ctime): Likewise.
61209
61210 2012-05-31  David S. Miller  <davem@davemloft.net>
61211
61212         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
61213         entries.
61214
61215 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
61216
61217         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
61218         gen-libm-test.pl.
61219
61220         [BZ #14132]
61221         * elf/dl-reloc.c: Include <_itoa.h>.
61222         (_dl_reloc_bad_type): Remove use of INTUSE.
61223         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
61224         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
61225         * stdio-common/psiginfo.c (psiginfo): Likewise.
61226         * stdio-common/psignal.c (psignal): Likewise.
61227         * string/strsignal.c (strsignal): Likewise.
61228         * include/signal.h (_sys_siglist): Declare hidden proto.
61229         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
61230         INTVARDEF with libc_hidden_data_def.
61231         * stdio-common/itoa-udigits.c: Likewise.
61232         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
61233         (_itoa_lower_digits_internal): Remove declaration.
61234         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
61235         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
61236         (_sys_sigabbrev_internal): Remove aliases.
61237         (_sys_siglist): Define hidden alias.
61238
61239 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
61240
61241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
61242         bits/sysctl.h.
61243
61244 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61245
61246         [BZ #14117]
61247         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
61248         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
61249
61250         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
61251         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
61252         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
61253         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
61254         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
61255         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
61256
61257         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
61258         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
61259         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
61260
61261         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
61262         with __addr.
61263         (insw): Likewise.
61264         (insl): Likewise.
61265         (outsb): Likewise.
61266         (outsw): Likewise.
61267         (outsl): Likewise.
61268
61269         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
61270         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
61271         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
61272
61273         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
61274         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
61275         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
61276         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
61277         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
61278         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
61279
61280         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
61281         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
61282
61283         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
61284         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
61285
61286         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
61287         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
61288         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
61289
61290         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
61291         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
61292         to ...
61293         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
61294
61295         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
61296         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
61297         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
61298
61299         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
61300         for x86-64.
61301         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
61302
61303 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
61304
61305         * math/math.h (M_El): Use two more decimal places.
61306         (M_LOG2El): Likewise.
61307         (M_LOG10El): Likewise.
61308         (M_LN2l): Likewise.
61309         (M_LN10l): Likewise.
61310         (M_PIl): Likewise.
61311         (M_PI_2l): Likewise.
61312         (M_PI_4l): Likewise.
61313         (M_1_PIl): Likewise.
61314         (M_2_PIl): Likewise.
61315         (M_2_SQRTPIl): Likewise.
61316         (M_SQRT2l): Likewise.
61317         (M_SQRT1_2l): Likewise.
61318
61319 2012-05-31  David S. Miller  <davem@davemloft.net>
61320
61321         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
61322         values between float registers.
61323         * sysdeps/sparc/sparc64/memset.S: Likewise.
61324         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
61325
61326 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
61327
61328         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
61329         -D_FORTIFY_SOURCE=1.
61330         (CPPFLAGS-tst-longjmp_chk.c): Define.
61331         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
61332         (CPPFLAGS-tst-longjmp_chk2.c): Define.
61333         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
61334         CFLAGS-tst-wchar-h.c.
61335
61336 2012-05-31  Marek Polacek  <polacek@redhat.com>
61337
61338         [BZ #14132]
61339         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
61340         __endmntent_internal): Remove declaration.
61341         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
61342         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
61343         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
61344
61345 2012-05-30  David S. Miller  <davem@davemloft.net>
61346
61347         * sysdeps/sparc/sparc32/soft-fp/q_util.c
61348         (___Q_simulate_exceptions): Use real FP ops rather than writing
61349         into the %fsr.
61350         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
61351         Likewise.
61352
61353 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61354
61355         [BZ #14117]
61356         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
61357         * sysdeps/x86/bits/xtitypes.h: This.
61358
61359         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
61360         * sysdeps/x86/bits/wordsize.h: This.
61361
61362         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
61363         * sysdeps/x86/bits/huge_vall.h: This.
61364
61365         * sysdeps/i386/bits/select.h: Removed.
61366         * sysdeps/x86_64/bits/select.h: Renamed to ...
61367         * sysdeps/x86/bits/select.h: This.
61368
61369         * sysdeps/i386/bits/setjmp.h: Removed.
61370         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61371         * sysdeps/x86/bits/setjmp.h: This.
61372
61373         * sysdeps/i386/bits/mathdef.h: Removed.
61374         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61375         * sysdeps/x86/bits/mathdef.h: This.
61376
61377 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61378
61379         [BZ #14132]
61380         * include/sys/socket.h (__connect_internal)
61381         (__libc_sa_len_internal): Remove declaration.
61382         (__connect, __libc_sa_len): Declare hidden_proto.
61383         (SA_LEN): Remove use of INTUSE.
61384         * socket/connect.c: Add libc_hidden_def.
61385         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61386         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61387         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61388         alias.
61389         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61390         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61391         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61392         of adding _internal alias.
61393
61394 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61395
61396         [BZ #14117]
61397         * sysdeps/i386/bits/link.h: Removed.
61398         * sysdeps/i386/bits/linkmap.h: Likewise.
61399         * sysdeps/x86_64/bits/link.h: Renamed to ...
61400         * sysdeps/x86/bits/link.h: This.
61401         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61402         * sysdeps/x86/bits/linkmap.h: This.
61403
61404         * sysdeps/i386/bits/endian.h: Removed.
61405         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61406         * sysdeps/x86/bits/endian.h: This.
61407
61408         * sysdeps/i386/bits/byteswap.h: Removed.
61409         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61410         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61411         * sysdeps/x86/bits/byteswap.h: This.
61412         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61413         * sysdeps/x86/bits/byteswap-16.h: This.
61414         * sysdeps/i386/Implies: Add x86.
61415         * sysdeps/x86_64/Implies: Likewise.
61416
61417 2012-05-30  David S. Miller  <davem@davemloft.net>
61418
61419         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61420         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61421         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61422         (FP_TRAPPING_EXCEPTIONS): Define.
61423         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61424         (FP_TRAPPING_EXCEPTIONS): Define.
61425         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61426         subnormals only when inexact has been signalled or underflow
61427         exceptions are enabled.
61428         (_FP_PACK_CANONICAL): Likewise.
61429
61430 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61431
61432         [BZ #14183]
61433         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61434         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61435
61436 2012-05-30  Richard Henderson  <rth@twiddle.net>
61437
61438         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61439         with #ifndef NOT_IN_libc.
61440
61441         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61442         marked to avoid plt entry.
61443
61444 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61445
61446         [BZ #14112]
61447         * Makeconfig (default-abi): New macro.
61448         (abi-includes): Likewise.
61449         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61450         $(abi-$(default-abi)-lib-soname) for soname if defined.
61451         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61452         abi-variants.
61453         * Makefile (installed-stubs): Likewise.
61454         * include/stubs-biarch.h: Removed.
61455         * scripts/lib-names.awk: Only handle one library at a time.
61456         * scripts/soversions.awk: Remove WORDSIZE support.
61457         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61458         entries.
61459         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61460         Removed.
61461         (syscall-list-default-condition): Likewise.
61462         (syscall-list-default-condition): Likewise.
61463         (syscall-list-includes): Likewise.
61464         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61465         syscall-list-* with abi-*.  Handle undefined abi-variants.
61466         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61467         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61468         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61469         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61470         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61471         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61472         Removed.
61473         (syscall-list-32-options): Likewise.
61474         (syscall-list-32-condition): Likewise.
61475         (syscall-list-64-options): Likewise.
61476         (syscall-list-64-condition): Likewise.
61477         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61478         macro.
61479         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61480         Renamed to ...
61481         (abi-*): This.
61482         (abi-64-ld-soname): New macro.
61483         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61484         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61485         Renamed to ...
61486         (abi-*): This.
61487         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61488         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61489
61490 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61491
61492         * sysdeps/unix/sysv/linux/kernel-features.h
61493         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61494         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61495         include <kernel-features.h>.
61496         [!__NR_ftruncate64]: Remove conditional code.
61497         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61498         [__NR_ftruncate64]: Make code unconditional.
61499         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61500         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61501         include <kernel-features.h>.
61502         [!__NR_ftruncate64]: Remove conditional code.
61503         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61504         [__NR_ftruncate64]: Make code unconditional.
61505         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61507         include <kernel-features.h>.
61508         [!__NR_ftruncate64]: Remove conditional code.
61509         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61510         [__NR_ftruncate64]: Make code unconditional.
61511         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61513         include <kernel-features.h>.
61514         [!__NR_ftruncate64]: Remove conditional code.
61515         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61516         [__NR_ftruncate64]: Make code unconditional.
61517         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61518
61519         * configure.in (libc_cv_fpie): Weaken to a compile test using
61520         LIBC_TRY_CC_OPTION.
61521         * configure: Regenerated.
61522
61523 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61524
61525         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61526         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61527         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61528         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61529         Refreshed.
61530         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61531         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61532         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61534         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61535         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61536         Refreshed.
61537
61538 2012-05-27  David S. Miller  <davem@davemloft.net>
61539
61540         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61541         (___Q_zero): New.
61542         (__Q_simulate_exceptions): Return void.  Change to simulate
61543         exceptions by writing into the %fsr.
61544         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61545         (__Qp_handle_exceptions): Likewise.
61546         (numbers): Delete.
61547         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61548         __Qp_handle_exceptions.
61549         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61550         __Qp_handle_exceptions.
61551         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61552         as unused and give dummy FP_RND_NEAREST initializer.
61553         (FP_INHIBIT_RESULTS): Define.
61554         (___Q_simulate_exceptions): Update declaration.
61555         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61556         formatting.
61557         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61558         as unused and give dummy FP_RND_NEAREST initializer.
61559         (__Qp_handle_exceptions): Update declaration.
61560         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61561         formatting.
61562
61563 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61564
61565         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61566         the temporary FPU control word.
61567         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61568         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61569         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61570         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61571         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61572         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61573         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61574         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61575         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61576         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61577         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61578
61579 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61580
61581         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61582         fields.
61583
61584 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61585
61586         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61587         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61588         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61589         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61590         Likewise.
61591         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61592         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61593         Likewise.
61594
61595 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61596
61597         * po/h.po: Update from translation team.
61598
61599 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61600
61601         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61602
61603         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61604         handling of denormals.
61605         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61606         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61607         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61608         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61609         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61610         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61611         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61612         Likewise.
61613
61614 2012-05-26  Marek Polacek  <polacek@redhat.com>
61615
61616         [BZ #14152]
61617         * math/libm-test.inc (fma_test): Don't always expect underflow
61618         exception.
61619
61620 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61621
61622         [BZ #12416]
61623         * elf/tst-execstack.c: Include stackinfo.h.
61624         (do_test): Adjust test case to ensure that pthread_getattr_np
61625         behaviour remains the same after marking stack executable.
61626
61627 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61628
61629         * sysdeps/unix/sysv/linux/kernel-features.h
61630         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61631         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61632         kernel-features.h.
61633         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61634         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61635         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61636         kernel-features.h.
61637         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61638         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61639
61640 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61641
61642         * configure.in: Define the default includes to being none.
61643         * configure: Regenerated.
61644
61645 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61646
61647         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61648         * sysdeps/x86_64/setjmp.S: Likewise.
61649         * sysdeps/i386/bsd-setjmp.S: Likewise.
61650         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61651         * sysdeps/i386/setjmp.S: Likewise.
61652         * sysdeps/i386/__longjmp.S: Likewise.
61653         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61654         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61655
61656         * include/stap-probe.h: New file.
61657         * configure.in: Handle --enable-systemtap.
61658         * configure: Regenerated.
61659         * config.h.in (USE_STAP_PROBE): New #undef.
61660         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61661         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61662         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61663
61664 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61665
61666         [BZ #13717]
61667         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61668         to 2.4.0 where earlier.
61669         * sysdeps/unix/sysv/linux/configure: Regenerated.
61670         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61671         <kernel-features.h>.
61672         [__ASSUME_32BITUIDS]: Make code unconditional.
61673         [!__ASSUME_32BITUIDS]: Remove conditional code.
61674         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61675         <kernel-features.h>.
61676         [__ASSUME_32BITUIDS]: Make code unconditional.
61677         [!__ASSUME_32BITUIDS]: Remove conditional code.
61678         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61679         [__ASSUME_32BITUIDS]: Make code unconditional.
61680         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61681         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61682         <kernel-features.h>.
61683         [__ASSUME_32BITUIDS]: Make code unconditional.
61684         [!__ASSUME_32BITUIDS]: Remove conditional code.
61685         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61686         <kernel-features.h>.
61687         [__ASSUME_32BITUIDS]: Make code unconditional.
61688         [!__ASSUME_32BITUIDS]: Remove conditional code.
61689         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61690         <kernel-features.h>.
61691         [__ASSUME_32BITUIDS]: Make code unconditional.
61692         [!__ASSUME_32BITUIDS]: Remove conditional code.
61693         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61694         <kernel-features.h>.
61695         [__ASSUME_32BITUIDS]: Make code unconditional.
61696         [!__ASSUME_32BITUIDS]: Remove conditional code.
61697         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61698         <kernel-features.h>.
61699         [__ASSUME_32BITUIDS]: Make code unconditional.
61700         [!__ASSUME_32BITUIDS]: Remove conditional code.
61701         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61702         <kernel-features.h>.
61703         [__ASSUME_32BITUIDS]: Make code unconditional.
61704         [!__ASSUME_32BITUIDS]: Remove conditional code.
61705         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61706         <kernel-features.h>.
61707         [__ASSUME_32BITUIDS]: Make code unconditional.
61708         [!__ASSUME_32BITUIDS]: Remove conditional code.
61709         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61710         <kernel-features.h>.
61711         [__ASSUME_32BITUIDS]: Make code unconditional.
61712         [!__ASSUME_32BITUIDS]: Remove conditional code.
61713         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61714         <kernel-features.h>.
61715         [__ASSUME_32BITUIDS]: Make code unconditional.
61716         [!__ASSUME_32BITUIDS]: Remove conditional code.
61717         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61718         <kernel-features.h>.
61719         [__ASSUME_32BITUIDS]: Make code unconditional.
61720         [!__ASSUME_32BITUIDS]: Remove conditional code.
61721         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61722         <kernel-features.h>.
61723         [__NR_setresgid] (__setresgid): Do not declare.
61724         [__ASSUME_32BITUIDS]: Make code unconditional.
61725         [!__ASSUME_32BITUIDS]: Remove conditional code.
61726         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61727         <kernel-features.h>.
61728         [__NR_setresuid] (__setresuid): Do not declare.
61729         [__ASSUME_32BITUIDS]: Make code unconditional.
61730         [!__ASSUME_32BITUIDS]: Remove conditional code.
61731         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61732         <kernel-features.h>.
61733         [__ASSUME_32BITUIDS]: Make code unconditional.
61734         [!__ASSUME_32BITUIDS]: Remove conditional code.
61735         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61736         <kernel-features.h>.
61737         [__ASSUME_32BITUIDS]: Make code unconditional.
61738         [!__ASSUME_32BITUIDS]: Remove conditional code.
61739         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61740         <kernel-features.h>.
61741         [__ASSUME_32BITUIDS]: Make code unconditional.
61742         [!__ASSUME_32BITUIDS]: Remove conditional code.
61743         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61744         <kernel-features.h>.
61745         [__ASSUME_32BITUIDS]: Make code unconditional.
61746         [!__ASSUME_32BITUIDS]: Remove conditional code.
61747         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61748         <kernel-features.h>.
61749         [__ASSUME_32BITUIDS]: Make code unconditional.
61750         [!__ASSUME_32BITUIDS]: Remove conditional code.
61751         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61752         <kernel-features.h>.
61753         [__ASSUME_32BITUIDS]: Make code unconditional.
61754         [!__ASSUME_32BITUIDS]: Remove conditional code.
61755         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61756         <kernel-features.h>.
61757         [__ASSUME_32BITUIDS]: Make code unconditional.
61758         [!__ASSUME_32BITUIDS]: Remove conditional code.
61759         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61760         <kernel-features.h>.
61761         [__ASSUME_32BITUIDS]: Make code unconditional.
61762         [!__ASSUME_32BITUIDS]: Remove conditional code.
61763         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61764         <kernel-features.h>.
61765         [__ASSUME_32BITUIDS]: Make code unconditional.
61766         [!__ASSUME_32BITUIDS]: Remove conditional code.
61767         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61768         <kernel-features.h>.
61769         [__ASSUME_32BITUIDS]: Make code unconditional.
61770         [!__ASSUME_32BITUIDS]: Remove conditional code.
61771         * sysdeps/unix/sysv/linux/kernel-features.h
61772         (__ASSUME_SETRESUID_SYSCALL): Remove.
61773         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61774         (__ASSUME_32BITUIDS): Likewise.
61775         (__ASSUME_LDT_WORKS): Likewise.
61776         (__ASSUME_O_DIRECTORY): Likewise.
61777         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61778         architecture but not kernel version.
61779         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61780         (__ASSUME_MMAP2_SYSCALL): Likewise.
61781         (__ASSUME_STAT64_SYSCALL): Likewise.
61782         (__ASSUME_IPC64): Likewise.
61783         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61784         <kernel-features.h>.
61785         [__ASSUME_32BITUIDS]: Make code unconditional.
61786         [!__ASSUME_32BITUIDS]: Remove conditional code.
61787         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61788         <kernel-features.h>.
61789         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61790         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61791         132096]: Remove conditional code.
61792         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61793         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61794         <kernel-features.h>.
61795         [__ASSUME_32BITUIDS]: Make code unconditional.
61796         [!__ASSUME_32BITUIDS]: Remove conditional code.
61797         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61798         <kernel-features.h>.
61799         [__ASSUME_32BITUIDS]: Make code unconditional.
61800         [!__ASSUME_32BITUIDS]: Remove conditional code.
61801         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61802         <kernel-features.h>.
61803         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61804         unconditional.
61805         (__setresgid): Do not declare.
61806         [__ASSUME_32BITUIDS]: Make code unconditional.
61807         [!__ASSUME_32BITUIDS]: Remove conditional code.
61808         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61809         <kernel-features.h>.
61810         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61811         unconditional.
61812         (__setresuid): Do not declare.
61813         [__ASSUME_32BITUIDS]: Make code unconditional.
61814         [!__ASSUME_32BITUIDS]: Remove conditional code.
61815         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61816         <kernel-features.h>.
61817         [__ASSUME_32BITUIDS]: Make code unconditional.
61818         [!__ASSUME_32BITUIDS]: Remove conditional code.
61819         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61820         <kernel-features.h>.
61821         [__ASSUME_32BITUIDS]: Make code unconditional.
61822         [!__ASSUME_32BITUIDS]: Remove conditional code.
61823
61824 2012-05-25  Richard Henderson  <rth@twiddle.net>
61825
61826         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61827         dl_hwcap to ifunc resolver.
61828         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61829         elf_ifunc_invoke.
61830         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61831         dl_hwcap to ifunc resolver.
61832         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61833
61834 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61835
61836         [BZ #14153]
61837         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61838         for |x| <= 2**-26, not 2**-57.
61839         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61840         exception.
61841
61842 2012-05-24  Jeff Law  <law@redhat.com>
61843
61844         * stdio-common/Makefile (tests): Add bug25.
61845         * stdio-common/bug25.c: New test.
61846
61847 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61848
61849         [BZ #13576]
61850         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61851         multiple of MALLOC_ALIGNMENT in size.
61852         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61853
61854 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61855
61856         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61857         Require >= 256.
61858         (FILENAME_MAX): Use macro-int-constant.
61859         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61860         (_IOFBF): Use macro-int-constant.
61861         (_IOLBF): Likewise.
61862         (_IONBF): Likewise.
61863         (SEEK_CUR): Likewise.
61864         (SEEK_END): Likewise.
61865         (SEEK_SET): Likewise.
61866         (TMP_MAX): Likewise.
61867         (EOF): Use macro-int-constant.  Require < 0.
61868         (NULL): Use macro-constant.  Require == 0.
61869         (stdin): Require type to be FILE *.
61870         (stdout): Likewise.
61871         (stderr): Likewise.
61872         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61873         macro-int-constant.
61874         (EXIT_SUCCESS): Likewise.
61875         (NULL): Use macro-constant.  Require == 0.
61876         (RAND_MAX): Use macro-int-constant.
61877         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61878         [C99-based standards] (strtof): Require function.
61879         [C99-based standards] (strtold): Likewise.
61880         [C99-based standards] (strtoll): Likewise.
61881         [C99-based standards] (strtoull): Likewise.
61882         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61883         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61884         [ISO || ISO99 || ISO11] (math.h): Likewise.
61885         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61886         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61887         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61888
61889 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61890
61891         [BZ #14132]
61892         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61893         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61894         * intl/dgettext.c (DCGETTEXT): Likewise.
61895         * intl/gettext.c (DCGETTEXT): Likewise.
61896         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61897         * posix/regex_internal.h (gettext): Likewise.
61898         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61899         Remove declaration.
61900         * include/argz.h (__argz_count_internal)
61901         (__argz_stringify_internal): Remove declaration.
61902         (__argz_count, __argz_stringify): Declare hidden proto.
61903         * intl/dcgettext.c: Remove use of INTDEF.
61904         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61905         * string/argz-stringify.c: Likewise.
61906         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61907         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61908         Declare hidden proto.
61909         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61910         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61911         Declare hidden proto.
61912         * include/stdio.h (__asprintf_internal): Don't declare.
61913         (__asprintf): Don't define as macro.  Declare hidden proto.
61914         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61915         (__fsetlocking): Declare hidden proto.
61916         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61917         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61918         hidden proto.
61919         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61920         (_IO_setlinebuf): Remove use of INTUSE.
61921         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61922         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61923         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61924         Remove declaration.
61925         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61926         (_IO_do_flush): Remove use of INTUSE.
61927         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61928         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61929         (_IO_adjust_column, _IO_least_wmarker)
61930         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61931         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61932         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61933         (_IO_default_doallocate, _IO_wdefault_doallocate)
61934         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61935         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61936         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61937         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61938         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61939         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61940         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61941         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61942         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61943         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61944         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61945         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61946         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61947         proto.
61948         (_IO_flush_all_internal, _IO_adjust_column_internal)
61949         (_IO_default_uflow_internal, _IO_default_finish_internal)
61950         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61951         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61952         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61953         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61954         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61955         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61956         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61957         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61958         (_IO_file_close_internal, _IO_file_close_it_internal)
61959         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61960         (_IO_file_init_internal, _IO_file_attach_internal)
61961         (_IO_file_fopen_internal, _IO_file_read_internal)
61962         (_IO_file_sync_internal, _IO_file_seek_internal)
61963         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61964         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61965         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61966         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61967         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61968         (_IO_list_all_internal, _IO_link_in_internal)
61969         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61970         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61971         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61972         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61973         (_IO_do_write_internal, _IO_padn_internal)
61974         (_IO_getline_info_internal, _IO_getline_internal)
61975         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61976         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61977         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61978         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61979         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61980         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61981         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61982         with libc_hidden_ver, remove use of INTUSE.
61983         * libio/genops.c: Likewise.
61984         * libio/freopen.c: Likewise.
61985         * libio/freopen64.c: Likewise.
61986         * libio/iofclose.c: Likewise.
61987         * libio/iofdopen.c: Likewise.
61988         * libio/iofflush.c: Likewise.
61989         * libio/iofflush_u.c: Likewise.
61990         * libio/iofgets.c: Likewise.
61991         * libio/iofgets_u.c: Likewise.
61992         * libio/iofopen.c: Likewise.
61993         * libio/iofopncook.c: Likewise.
61994         * libio/iofread.c: Likewise.
61995         * libio/iofread_u.c: Likewise.
61996         * libio/ioftell.c: Likewise.
61997         * libio/iofwrite.c: Likewise.
61998         * libio/iogetline.c: Likewise.
61999         * libio/iogets.c: Likewise.
62000         * libio/iogetwline.c: Likewise.
62001         * libio/iopadn.c: Likewise.
62002         * libio/iopopen.c: Likewise.
62003         * libio/ioseekoff.c: Likewise.
62004         * libio/ioseekpos.c: Likewise.
62005         * libio/iosetbuffer.c: Likewise.
62006         * libio/iosetvbuf.c: Likewise.
62007         * libio/ioungetc.c: Likewise.
62008         * libio/ioungetwc.c: Likewise.
62009         * libio/iovdprintf.c: Likewise.
62010         * libio/iovsprintf.c: Likewise.
62011         * libio/iovsscanf.c: Likewise.
62012         * libio/memstream.c: Likewise.
62013         * libio/obprintf.c: Likewise.
62014         * libio/oldfileops.c: Likewise.
62015         * libio/oldiofclose.c: Likewise.
62016         * libio/oldiofdopen.c: Likewise.
62017         * libio/oldiofopen.c: Likewise.
62018         * libio/oldiopopen.c: Likewise.
62019         * libio/oldstdfiles.c: Likewise.
62020         * libio/putc.c: Likewise.
62021         * libio/setbuf.c: Likewise.
62022         * libio/setlinebuf.c: Likewise.
62023         * libio/stdfiles.c: Likewise.
62024         * libio/strops.c: Likewise.
62025         * libio/vasprintf.c: Likewise.
62026         * libio/vscanf.c: Likewise.
62027         * libio/vsnprintf.c: Likewise.
62028         * libio/vswprintf.c: Likewise.
62029         * libio/wfiledoalloc.c: Likewise.
62030         * libio/wfileops.c: Likewise.
62031         * libio/wgenops.c: Likewise.
62032         * libio/wmemstream.c: Likewise.
62033         * libio/wstrops.c: Likewise.
62034         * libio/__fpurge.c: Likewise.
62035         * libio/__fsetlocking.c: Likewise.
62036         * assert/assert.c: Likewise.
62037         * debug/fgets_chk.c: Likewise.
62038         * debug/fgets_u_chk.c: Likewise.
62039         * debug/fread_chk.c: Likewise.
62040         * debug/fread_u_chk.c: Likewise.
62041         * debug/gets_chk.c: Likewise.
62042         * debug/obprintf_chk.c: Likewise.
62043         * debug/vasprintf_chk.c: Likewise.
62044         * debug/vdprintf_chk.c: Likewise.
62045         * debug/vsnprintf_chk.c: Likewise.
62046         * debug/vsprintf_chk.c: Likewise.
62047         * malloc/mtrace.c: Likewise.
62048         * misc/error.c: Likewise.
62049         * misc/syslog.c: Likewise.
62050         * stdio-common/asprintf.c: Likewise.
62051         * stdio-common/fxprintf.c: Likewise.
62052         * stdio-common/getw.c: Likewise.
62053         * stdio-common/isoc99_fscanf.c: Likewise.
62054         * stdio-common/isoc99_scanf.c: Likewise.
62055         * stdio-common/isoc99_vfscanf.c: Likewise.
62056         * stdio-common/isoc99_vscanf.c: Likewise.
62057         * stdio-common/isoc99_vsscanf.c: Likewise.
62058         * stdio-common/printf-prs.c: Likewise.
62059         * stdio-common/printf_fp.c: Likewise.
62060         * stdio-common/printf_fphex.c: Likewise.
62061         * stdio-common/printf_size.c: Likewise.
62062         * stdio-common/putw.c: Likewise.
62063         * stdio-common/scanf.c: Likewise.
62064         * stdio-common/sprintf.c: Likewise.
62065         * stdio-common/tmpfile.c: Likewise.
62066         * stdio-common/vfprintf.c: Likewise.
62067         * stdio-common/vfscanf.c: Likewise.
62068         * stdlib/strfmon_l.c: Likewise.
62069         * sunrpc/openchild.c: Likewise.
62070         * sunrpc/xdr_stdio.c: Likewise.
62071         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
62072         * sysdeps/mach/hurd/tmpfile.c: Likewise.
62073
62074 2012-05-24  Roland McGrath  <roland@hack.frob.com>
62075
62076         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62077
62078         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
62079         in the third column, to generate for the shared library an IFUNC
62080         that uses _dl_vdso_vsym.
62081         * Makerules (COMPILE.c, compile-stdin.c): New variables.
62082         * Makeconfig (object-suffixes-noshared): New variable.
62083
62084         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
62085         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
62086         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
62087         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
62088
62089         [BZ #14132]
62090         * include/sys/time.h (__gettimeofday): Remove macro.
62091         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
62092         * time/gettimeofday.c (__gettimeofday): Remove #undef.
62093         Remove INTDEF.
62094         (__gettimeofday): Add libc_hidden_def.
62095         (gettimeofday): Add libc_hidden_weak.
62096         * sysdeps/mach/gettimeofday.c: Likewise.
62097         * sysdeps/posix/gettimeofday.c: Likewise.
62098         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
62099         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
62100         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
62101         (__gettimeofday_internal): Remove strong_alias.
62102         (__gettimeofday): Add libc_hidden_def.
62103         (gettimeofday): Add libc_hidden_weak.
62104         * sysdeps/unix/syscalls.list (gettimeofday):
62105         Remove __gettimeofday_internal alias.
62106
62107 2012-05-24  Daniel Jacobowitz  <drow@false.org>
62108             H.J. Lu  <hongjiu.lu@intel.com>
62109
62110         [BZ #12495]
62111         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
62112         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
62113         (largebin_index_32_big): New.
62114         (largebin_index): Use it for 16-byte alignment.
62115         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
62116         correction with front_misalign.
62117
62118 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
62119
62120         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
62121         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
62122         Likewise.
62123         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
62124         Likewise.
62125         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
62126         Likewise.
62127         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
62128         Likewise.
62129         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
62130         Likewise.
62131         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
62132         Likewise.
62133         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
62134         Likewise.
62135         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
62136         Likewise.
62137         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
62138         Likewise.
62139         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
62140         Likewise.
62141         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
62142         Likewise.
62143         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
62144         Likewise.
62145
62146         * scripts/data/c++-types-x32-linux-gnu.data: New file.
62147         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
62148
62149 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62150
62151         [BZ #10846]
62152         [BZ #14036]
62153         * math/libm-test.inc (exp_test): Add test from bug 14036.
62154         (pow_test): Add test from bug 10846.
62155
62156         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
62157         and other flags.
62158         (special_function): Do not include flags in test name.
62159         (parse_args): Likewise.
62160         * sysdeps/i386/fpu/libm-test-ulps: Update.
62161         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
62162         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
62163         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
62164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62165
62166         * math/gen-libm-test.pl (%beautify): Add entries for underflow
62167         exceptions.
62168         * math/libm-test.inc ("Philosophy"): Update comment about
62169         exception testing.
62170         (UNDERFLOW_EXCEPTION): New macro.
62171         (UNDERFLOW_EXCEPTION_OK): Likewise.
62172         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
62173         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
62174         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
62175         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
62176         (INVALID_EXCEPTION_OK): Update value.
62177         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62178         (OVERFLOW_EXCEPTION_OK): Likewise.
62179         (IGNORE_ZERO_INF_SIGN): Likewise.
62180         (test_exceptions): Handle underflow exceptions.
62181         (acos_test): Update for underflow exception expectations.
62182         (cexp_test): Likewise.
62183         (clog_test): Likewise.
62184         (clog10_test): Likewise.
62185         (csqrt_test): Likewise.
62186         (ctan_test): Likewise.
62187         (ctanh_test): Likewise.
62188         (exp_test): Likewise.
62189         (exp10_test): Likewise.
62190         (exp2_test): Likewise.
62191         (expm1_test): Likewise.
62192         (fma_test): Likewise.
62193         (j0_test): Likewise.
62194         (jn_test): Likewise.
62195         (nexttoward_test): Likewise.
62196         (pow_test): Likewise.
62197         (scalbn_test): Likewise.
62198         (scalbln_test): Likewise.
62199         (tan_test): Likewise.
62200         (y1_test): Likewise.
62201         * sysdeps/i386/fpu/libm-test-ulps: Update.
62202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62203
62204 2012-05-23  David S. Miller  <davem@davemloft.net>
62205
62206         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62207         (__libc_sigaction): Remove unused local variables.
62208
62209 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62210
62211         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
62212
62213 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
62214
62215         mktime: avoid signed integer overflow
62216         * time/mktime.c (__mktime_internal): Do not mishandle the case
62217         where diff == INT_MIN.
62218
62219         mktime: simplify computation of average
62220         * time/mktime.c (ranged_convert): Use new time_t_avg function
62221         instead of rolling our own (probably-slower) code.
62222
62223         mktime: do not assume signed right shift propagates sign bit
62224         * time/mktime.c (isdst_differ): New static function.
62225         (__mktime_internal): No need to normalize tm_isdst now.
62226         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
62227         tm_isdst values.
62228
62229         mktime: merge another wrapv change from gnulib
62230         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
62231         from some compilers.
62232
62233         mktime: remove incorrect attempt at unusual arithmetics
62234         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
62235         The code didn't really work on such machines anyway.
62236         (TYPE_MINIMUM): Assume two's complement.
62237         (twos_complement_arithmetic): Verify that long_int and time_t
62238         are two's complement (or unsigned, in the latter case).
62239
62240         mktime: check signed shifts on long_int and time_t, too
62241         * time/mktime.c (SHR): Check that shifts work as desired
62242         on the types long_int and time_t too, as SHR is used on
62243         such types.
62244
62245         mktime: do not assume 'long' is wide enough
62246         * time/mktime.c (verify): Move decl up.
62247         (long_int): New type.
62248         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
62249         to remove assumption in the code that 'long' is wide enough to
62250         store year values.  This assumption is not true on x32 and on
62251         some non-glibc platforms.
62252
62253         mktime: merge wrapv change from gnulib
62254         * time/mktime.c (WRAPV): New macro.
62255         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
62256         (guess_time_tm, __mktime_internal): Do not assume that signed
62257         integer overflow wraps around; modern compilers generate code
62258         where this assumption is no longer valid.
62259
62260 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62261
62262         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62263         Replace "jmp L(pseudo_end)" with "ret".
62264         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
62265         Likewise.
62266
62267 2012-05-23  Andreas Jaeger  <aj@suse.de>
62268
62269         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
62270         * sysdeps/unix/sysv/linux/poll.c: Remove file.
62271
62272 2012-05-23  Andreas Jaeger  <aj@suse.de>
62273             Maximilian Attems  <max@stro.at>
62274
62275         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
62276         New macros.
62277
62278 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62279
62280         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
62281         code so that pseudo_end is just ret and the stack pointer is
62282         correct also for static library in error case.
62283
62284 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
62285
62286         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
62287         move to syscalls.list.
62288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
62289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
62290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
62291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
62292
62293         * manual/install.texi (Running make install): Do not mention Linux
62294         kernel version for which pt_chown is not needed.
62295         (Linux): Do not mention problems with nscd with 2.0 kernels.
62296         * INSTALL: Regenerated.
62297
62298 2012-05-23  Andreas Jaeger  <aj@suse.de>
62299
62300         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
62301         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
62302         macro.
62303         * sysdeps/unix/sysv/linux/s390/bits/mman.h
62304         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62305         * sysdeps/unix/sysv/linux/sh/bits/mman.h
62306         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62307         * sysdeps/unix/sysv/linux/i386/bits/mman.h
62308         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62309         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
62310         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62311         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
62312         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62313         * sysdeps/unix/sysv/linux/bits/in.h
62314         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
62315
62316 2012-05-22  Roland McGrath  <roland@hack.frob.com>
62317
62318         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
62319         (PREPARE_VERSION): Just use assert instead, it will be elided
62320         under [NDEBUG] anyway.
62321
62322 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62323
62324         * sysdeps/unix/sysv/linux/Makefile: Include
62325         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
62326         (sysdep_routines): Remove sysctl.
62327         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
62328         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
62329         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
62330         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
62331         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
62332
62333 2012-05-22  Andreas Jaeger  <aj@suse.de>
62334
62335         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
62336         that pseudo_end is just ret and the stack pointer is correct also
62337         for static library in error case.
62338
62339 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
62340
62341         [BZ #14122]
62342         * nss/nsswitch.c (defconfig_entries): New variable.
62343         (__nss_database_lookup): Don't leak defconfig entries.
62344         (nss_parse_service_list): Don't leak on error paths.
62345         (free_database_entries): New function.
62346         (free_defconfig): New function.
62347         (free_mem): Move common code to free_database_entries.
62348
62349 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62350
62351         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
62352         Add arch_prctl.
62353         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
62354
62355         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
62356         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
62357         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
62358         New macro.
62359         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
62360         (INTERNAL_SYSCALL_TYPES): Likewise.
62361         (LOAD_ARGS_TYPES_[1-6]): Likewise.
62362         (LOAD_REGS_TYPES_[1-6]): Likewise.
62363         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62364         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62365
62366 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62367
62368         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62369         copysignl for GLIBC_2_0.
62370         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62371         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62372         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62373         logbl for GLIBC_2_0.
62374         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62375         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62376
62377 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62378
62379         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62380         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62381
62382         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62383         Use "neg %eax".
62384
62385         * time/mktime.c: Update copyright years.
62386
62387 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62388
62389         mktime: merge comment-quoting-style change from gnulib
62390         * time/mktime.c: Quote 'like this' in comments.
62391         The GNU coding standards suggest that we no longer quote `like this',
62392         as "`" and "'" are typically rendered asymmetrically nowadays.
62393         The typical gnulib style is to quote 'like this' when quoting
62394         code, and "like this" when quoting English.
62395
62396         * time/mktime.c (compile-command): Add "-I.".
62397
62398         mktime: merge mktime-internal.h change from gnulib
62399         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62400
62401         mktime: merge time_r change from gnulib
62402         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62403
62404         mktime: merge DEBUG change from gnulib
62405         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62406         case system <time.h> has a #define.
62407
62408         mktime: merge <sys/types.h> change from gnulib
62409         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62410         since <time.t> is now guaranteed to define time_t.
62411
62412         mktime: merge HAVE_CONFIG_H change from gnulib
62413         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62414
62415 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62416
62417         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62418         Use "neg %eax".
62419
62420         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62421         __rlim_t cast.
62422         (struct rusage): Use anonymous union to pad each field to
62423         __syscall_slong_t.
62424
62425 2012-05-21  David S. Miller  <davem@davemloft.net>
62426
62427         * Makefules (o-iterator): Remove .s cases.
62428         (compile-command.s): Delete.
62429         (COMPILE.s): Delete.
62430         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62431
62432 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62433
62434         * configure.in (libc_cv_predef_stack_protector): Only consider
62435         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62436         * configure: Regenerated.
62437
62438 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62439
62440         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62441         New macro.  Use R*LP on int and pointer.
62442         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62443         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62444         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62445         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62446
62447         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62448         [__WORDSIZE_TIME64_COMPAT32] instead of
62449         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62450         (struct utmp): Likewise.
62451         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62452         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62453         Renamed to ...
62454         (__WORDSIZE_TIME64_COMPAT32): This.
62455         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62456         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62457         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62458         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62459         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62460         (__WORDSIZE_TIME64_COMPAT32): New macro.
62461
62462 2012-05-21  Andreas Jaeger  <aj@suse.de>
62463
62464         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62465         only if [SHARED]. Add prototype for __wcschr_ia32.
62466
62467 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62468
62469         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62470         of %rbp unmolested in the jmp_buf while mangling the low bits.
62471         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62472         unmolested high bits of %rbp while demangling the low bits.
62473         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62474
62475 2012-05-21  Andreas Jaeger  <aj@suse.de>
62476
62477         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62478         * sunrpc/svc_simple.c: Use it for registerrpc.
62479         * sunrpc/xcrypt.c: Use it for passwd2des.
62480
62481         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62482
62483 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62484
62485         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62486         Don't define if [__SYSCALL_WORDSIZE != 32].
62487         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62488         New macro.
62489
62490 2012-05-21  Bruno Haible  <bruno@clisp.org>
62491             Andreas Jaeger  <aj@suse.de>
62492
62493         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62494         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62495         inptr and inend for must_buffer_ch.
62496         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62497         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62498         * stdio-common/Makefile (tests): Remove bug15.
62499         (bug15-ENV): Remove macro.
62500         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62501         anymore.
62502
62503 2012-05-19  Andreas Jaeger  <aj@suse.de>
62504             Roland McGrath  <roland@hack.frob.com>
62505
62506         * manual/contrib.texi: Completely rewritten. It contains now an
62507         alphabetical list of contributors and their contributions.
62508
62509 2012-05-21  Richard Henderson  <rth@twiddle.net>
62510
62511         * misc/getauxval.c (__getauxval): Use unsigned long int.
62512         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62513         (getauxval): Use unsigned long int.
62514
62515 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62516
62517         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62518
62519 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62520
62521         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62522         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62523         __alignof__ (long double).
62524
62525 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62526
62527         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62528
62529 2012-05-20  Richard Henderson  <rth@twiddle.net>
62530
62531         * misc/getauxval.c: New file.
62532         * misc/sys/auxv.h: New file.
62533         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62534         (routines): Add getauxval.
62535         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62536         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62537         * elf/dl-sysdep.c (_dl_auxv): Remove.
62538         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62539         * elf/dl-support.c (_dl_auxv): New variable.
62540         (_dl_aux_init): Initialize it.
62541         * manual/startup.texi (Auxiliary Vector): New node.
62542         * sysdeps/generic/bits/hwcap.h: New file.
62543         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62544         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62545         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62546         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62547         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62548         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62550         Update.
62551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62553         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62554         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62555         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62556         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62557         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62558         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62559
62560 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62561
62562         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62563
62564 2012-05-19  David S. Miller  <davem@davemloft.net>
62565
62566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62567
62568 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62569
62570         [BZ #14123]
62571         * math/s_ccosh.c: Include <float.h>
62572         (__ccosh): Avoid internal overflow calculating sinh and cosh
62573         values before multiplying by sin and cos values.
62574         * math/s_ccoshf.c: Likewise.
62575         * math/s_ccoshl.c: Likewise.
62576         * math/s_csin.c: Likewise.
62577         * math/s_csinf.c: Likewise.
62578         * math/s_csinl.c: Likewise.
62579         * math/s_csinh.c: Likewise.
62580         * math/s_csinhf.c: Likewise.
62581         * math/s_csinhl.c: Likewise.
62582         * math/libm-test.inc (ccos_test): Add more tests.
62583         (ccosh_test): Likewise.
62584         (csin_test): Likewise.
62585         (csinh_test): Likewise.
62586         * sysdeps/i386/fpu/libm-test-ulps: Update.
62587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62588
62589 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62590
62591         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62592         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62593
62594         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62595
62596 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62597
62598         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62599         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62600         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62601         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62602         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62603         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62604         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62605         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62606         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62607         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62608         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62609         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62610         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62611         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62612         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62613         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62614         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62615         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62616         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62617         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62618         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62619         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62620         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62621         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62622         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62623         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62624         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62625         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62626         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62627         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62628         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62629
62630 2012-05-18  Andreas Jaeger  <aj@suse.de>
62631
62632         * csu/.gitignore: Delete.
62633
62634 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62635
62636         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62637         (timex): Use __syscall_slong_t.
62638
62639 2012-05-18  Andreas Jaeger  <aj@suse.de>
62640             Carlos O'Donell  <carlos_odonell@mentor.com>
62641
62642         * manual/install.texi (Configuring and compiling): Update
62643         description about files modified in the source directory.
62644         * INSTALL: Regenerated.
62645
62646 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62647
62648         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62649         value.  Use "or" to set return value to -1.
62650         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62651         negate return value.
62652
62653 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62654
62655         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62656         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62657         failure if the compiler has Graphite support disabled.
62658         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62659         Likewise.
62660         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62661         (CFLAGS-memmove.c): Likewise.
62662         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62663         Likewise.
62664
62665 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62666
62667         * sysdeps/x86_64/x32/_itoa.h: New file.
62668
62669         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62670         getdents system call only if kernel and user dirents have the
62671         same d_ino and d_off.
62672
62673         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62674         LLONG_MAX != LONG_MAX.
62675         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62676         (_fitoa_word): Likewise.
62677
62678         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62679         years.
62680         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62681         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62682         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62683
62684         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62685         include <bits/wordsize.h>.  Check __x86_64__ instead of
62686         __WORDSIZE.
62687         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62688         if __x86_64__ is defined.  Use anonymous union on fpstate.
62689
62690         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62691         anonymous union.
62692
62693 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62694
62695         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62696         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62697         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62698         Refer to _rtld_local_ro instead of _rtld_global_ro.
62699         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62700         Likewise.
62701         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62702         Likewise.
62703         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62704         Likewise.
62705         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62706         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62707         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62708
62709         [BZ #10882]
62710         * sysdeps/powerpc/powerpc32/dl-machine.c
62711         (__elf_machine_runtime_setup) [PROF]: Don't reference
62712         _dl_prof_resolve.
62713
62714 2012-05-18  Andreas Jaeger  <aj@suse.de>
62715
62716         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62717         function only available for GCCs before 3.4 since GCC 3.4
62718         introduced a builtin.
62719         (lrint): Likewise.
62720         (llrintf): Likewise.
62721         (llrint): Likewise.
62722         (fmaxf): Likewise.
62723         (fmax): Likewise.
62724         (fminf): Likewise.
62725         (fmin): Likewise.
62726         (rint): Likewise.
62727         (rintf): Likewise.
62728         (nearbyint): Likewise.
62729         (nearbyintf): Likewise.
62730         (ceil): Likewise.
62731         (ceilf): Likewise.
62732         (floor): Likewise.
62733         (floorf): Likewise.
62734
62735 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62736
62737         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62738         on both fields and cast pointer to __syscall_ulong_t.
62739
62740         * bits/types.h (__fsword_t): New type.
62741         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62742         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62743         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62744         (__FSWORD_T_TYPE): Likewise.
62745         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62746         (__FSWORD_T_TYPE): Likewise.
62747         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62748         (__FSWORD_T_TYPE): Likewise.
62749         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62750         (__FSWORD_T_TYPE): Likewise.
62751         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62752         __SWORD_TYPE with __fsword_t.
62753         (statfs64): Likewise.
62754
62755 2012-05-17  David S. Miller  <davem@davemloft.net>
62756
62757         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62758
62759 2012-05-17  Andreas Jaeger  <aj@suse.de>
62760
62761         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62762         warning.
62763
62764 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62765
62766         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62767
62768 2012-05-17  Andreas Jaeger  <aj@suse.de>
62769
62770         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62771         when it is used.
62772
62773 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62774
62775         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62776
62777 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62778
62779         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62780         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62781
62782 2012-05-17  Andreas Jaeger  <aj@suse.de>
62783             Carlos O'Donell  <carlos_odonell@mentor.com>
62784
62785         [BZ #14059]
62786         * sysdeps/x86_64/multiarch/init-arch.h
62787         (bit_YMM_Usable): Rename to...
62788         (bit_AVX_Usable): ... this.
62789         (bit_FMA4_Usable): New macro.
62790         (bit_XMM_state): New macro.
62791         (bit_YMM_state): New macro.
62792         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62793         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62794         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62795         (CPUID_OSXSAVE): New macro.
62796         (CPUID_AVX): New macro.
62797         (CPUID_FMA4): New macro.
62798         (index_YMM_Usable): Rename to...
62799         (index_AVX_Usable): ... this.
62800         (HAS_AVX): Use HAS_ARCH_FEATURE.
62801         (HAS_FMA4): Likewise.
62802         (HAS_YMM_USABLE): Remove.
62803         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62804         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62805         are present.
62806         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62807         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62808         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62809         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62810         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62811
62812 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62813
62814         * math/libm-test.c: Support platforms without multiple rounding modes.
62815         * math/bug-nextafter.c: Support platforms without FP exceptions.
62816         * math/bug-nexttoward.c: Likewise.
62817         * math/test-fenv.c: Likewise.
62818         * math/test-misc.c: Likewise.
62819         * stdlib/bug-getcontext.c: Likewise.
62820
62821 2012-05-17  Andreas Jaeger  <aj@suse.de>
62822
62823         * manual/examples/search.c (critter_cmp): Change signature to
62824         avoid warnings.
62825         * manual/string.texi (Collation Functions): Likewise.
62826
62827 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62828
62829         * bits/types.h: Fold copyright years.
62830         * bits/typesizes.h: Likewise.
62831         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62832         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62833         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62834         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62835         * time/time.h: Likewise.
62836
62837 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62838
62839         [BZ #208]
62840         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62841         in instead of returning them.  Return void.
62842         (__libc_mallinfo): Accumulate over all arenas.
62843         (__malloc_stats): Adjust for change in int_mallinfo interface.
62844
62845 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62846
62847         [BZ #10375]
62848         * configure.in (NM): Add AC_CHECK_TOOL for it.
62849         (libc_extra_cflags): New substituted variable.
62850         Check for -fstack-protector being used implicitly.
62851         * configure: Regenerated.
62852         * config.make.in (config-extra-cflags): New variable,
62853         gets @libc_extra_cflags@.
62854         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62855
62856         [BZ #10375]
62857         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62858         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62859         * configure: Regenerated.
62860         * config.make.in (CPPUNDEFS): New substituted variable.
62861         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62862         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62863         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62864
62865 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62866
62867         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62868         (mq_attr): Use __syscall_slong_t.
62869
62870 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62871
62872         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62873         Check __x86_64__ instead of __WORDSIZE.
62874         (_STAT_VER_LINUX): Likewise.
62875         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62876         __syscall_ulong_t and __syscall_slong_t.
62877         (stat64): Likewise.
62878
62879 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62880
62881         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62882
62883 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62884
62885         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62886
62887 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62888
62889         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62890         __syscall_ulong_t.
62891
62892         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62893         include <bits/wordsize.h>.  Check __x86_64__ instead of
62894         __WORDSIZE.
62895         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62896         defined.
62897         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62898
62899         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62900         include <bits/wordsize.h>.  Check __x86_64__ instead of
62901         __WORDSIZE.
62902         (user_regs_struct): Use "__extension__ unsigned long long"
62903         instead of "unsigned long" if __x86_64__ is defined.
62904         (user): Likewise.  Pad after pointer field if __ILP32__ is
62905         defined.
62906
62907 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62908
62909         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62910         versions 5 to 9.
62911         * configure: Regenerated.
62912         * manual/install.texi (texinfo): Increase version requirement to
62913         4.5 or later.
62914         * INSTALL: Regenerated.
62915
62916         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62917
62918 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62919
62920         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62921
62922         * sysdeps/x86_64/x32/ffs.c: New file.
62923
62924         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62925         __syscall_ulong_t.
62926         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62927         defined.  Use __syscall_ulong_t.
62928         (shminfo): Use __syscall_ulong_t.
62929         (shm_info): Likewise.
62930
62931         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62932         __syscall_ulong_t.
62933
62934         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62935         <bits/wordsize.h>.
62936         (msgqnum_t): Use __syscall_ulong_t.
62937         (msglen_t): Likewise.
62938         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62939         __syscall_ulong_t.
62940
62941         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62942         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62943
62944         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62945
62946         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62947         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62948
62949         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62950         __syscall_slong_t.
62951
62952         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62953         include <bits/wordsize.h>.  Check __x86_64__ instead of
62954         __WORDSIZE.
62955
62956         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62957         "unsigned long long int" if __x86_64__ is defined.
62958         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62959
62960         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62961         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62962         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62963
62964         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62965         <stdint.h>.
62966         (GET_PC): Cast to uintptr_t first.
62967         (GET_FRAME): Likewise.
62968         (GET_STACK): Likewise.
62969
62970         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62971         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62972         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62973         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62974         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62975         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62976         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62977         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62978         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62979         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62980         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62981         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62982         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62983         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62984         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62985         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62986         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62987         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62988         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62989         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62990         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62991         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62992         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62993         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62994         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62995         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62996         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62997         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62998         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62999
63000 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
63001
63002         * Makerules (+depfiles): Also collect depfiles from .oS in
63003         $(extra-objs).
63004         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
63005         .oS, $(libnldbl-routines)).
63006
63007         * Makerules (native-compile-mkdep-flags): Define.
63008         * sunrpc/Makefile (extra-objs): Add $(addprefix
63009         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
63010         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
63011         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
63012         calling $(make-target-directory).
63013
63014 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63015
63016         * bits/types.h (__snseconds_t): Removed.
63017         * time/time.h (struct timespec): Replace __snseconds_t with
63018         __syscall_slong_t.
63019         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
63020         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
63021         Likewise.
63022         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63023         (__SNSECONDS_T_TYPE): Likewise.
63024         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63025         (__SNSECONDS_T_TYPE): Likewise.
63026         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63027         (__SNSECONDS_T_TYPE): Likewise.
63028
63029 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63030
63031         * sysdeps/mach/hurd/bits/typesizes.h
63032         (__SYSCALL_SLONG_TYPE): New macro.
63033         (__SYSCALL_ULONG_TYPE): Likewise.
63034
63035 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63036
63037         * bits/types.h (__syscall_slong_t): New type.
63038         (__syscall_ulong_t): Likewise.
63039
63040         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
63041         (__SYSCALL_ULONG_TYPE): Likewise.
63042         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63043         (__SYSCALL_SLONG_TYPE): Likewise.
63044         (__SYSCALL_ULONG_TYPE): Likewise.
63045         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63046         (__SYSCALL_SLONG_TYPE): Likewise.
63047         (__SYSCALL_ULONG_TYPE): Likewise.
63048         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63049         (__SYSCALL_SLONG_TYPE): Likewise.
63050         (__SYSCALL_ULONG_TYPE): Likewise.
63051
63052 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63053
63054         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
63055         Add sigaltstack-offsets.sym.
63056         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
63057         <sigaltstack-offsets.h>.
63058         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
63059         longjmp_msg pointer.
63060         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
63061         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
63062         signal stack.
63063         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
63064
63065 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63066
63067         * elf/stackguard-macros.h: Remove file.
63068         * sysdeps/generic/stackguard-macros.h: New file.
63069         * sysdeps/i386/stackguard-macros.h: Likewise.
63070         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
63071         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
63072         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
63073         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
63074         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
63075         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
63076         * sysdeps/x86_64/stackguard-macros.h: Likewise.
63077         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
63078         <elf/stackguard-macros.h>.
63079
63080         [BZ #14109]
63081         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
63082         __aligned__ in attribute.
63083         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
63084         (gregset_t): Likewise.
63085
63086 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63087
63088         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
63089         * sysdeps/x86_64/64/Implies-after: Here.  New file.
63090         * sysdeps/x86_64/x32/Implies-after: New file.
63091
63092 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63093
63094         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
63095         and access return value for _dl_profile_fixup.  Use R10_LP to
63096         load frame size.
63097
63098 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63099
63100         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
63101
63102 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63103
63104         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
63105         * sysdeps/x86_64/x32/sysdep.h: New file.
63106
63107 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63108
63109         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
63110         * sysdeps/x86_64/setjmp.S: Likewise.
63111
63112 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63113
63114         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
63115         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
63116         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
63117         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
63118         remove unused global constant.
63119
63120 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
63121
63122         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
63123         include of <not-cancel.h>.
63124
63125 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63126
63127         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
63128
63129 2012-05-15  Jeff Law  <law@redhat.com>
63130             Andreas Jaeger  <aj@suse.de>
63131
63132         [BZ #13594]
63133         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
63134         out from...
63135         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
63136         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
63137         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
63138         code changing __hst_map_handle.map.
63139
63140 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63141
63142         * configure.in (sysnames): Look for Implies-before and Implies-after
63143         files.
63144         * configure: Regenerated.
63145
63146 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63147
63148         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
63149         8-byte data alignment with LP_SIZE alignment.
63150
63151 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63152
63153         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
63154         into R10_LP.
63155
63156 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63157
63158         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
63159
63160 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63161
63162         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
63163         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
63164         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
63165         Likewise.
63166         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63167
63168 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63169
63170         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
63171         (stackinfo_sub_sp): Likewise.
63172
63173 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63174
63175         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
63176         RAX_LP.
63177
63178 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63179
63180         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
63181         into R*_LP.
63182
63183 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63184
63185         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
63186         sizes into R*_LP.
63187
63188 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63189
63190         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
63191
63192 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63193
63194         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
63195         into R11_LP and load __x86_64_shared_cache_size_half into
63196         R8_LP.
63197
63198 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63199
63200         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
63201         R8_LP.
63202
63203 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63204
63205         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
63206         logb for POWER7.
63207         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
63208         logbf for POWER7.
63209         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
63210         logbl for POWER7.
63211         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
63212         powerpc32/power7/fpu/s_logb.c via #include.
63213         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
63214         powerpc32/power7/fpu/s_logbf.c via #include.
63215         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
63216         powerpc32/power7/fpu/s_logbl.c via #include.
63217
63218 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63219
63220         * README.libm: Remove file.
63221
63222 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63223
63224         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
63225         count for x32.  Use R*_LP and omit operand-size suffix.
63226
63227 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63228
63229         * shlib-versions: Move x86_64-.*-linux.* entries to ...
63230         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
63231         * sysdeps/x86_64/x32/shlib-versions: New file.
63232
63233 2012-05-14  Roland McGrath  <roland@hack.frob.com>
63234
63235         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
63236         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
63237         Use _dl_fatal_printf instead.
63238
63239 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63240
63241         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
63242         set if not set by the user.  Do not allow for being unset.
63243         * sysdeps/unix/sysv/linux/configure: Regenerated.
63244
63245 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63246
63247         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
63248         the `q' suffix from lea and replace .quad with ASM_ADDR.
63249
63250 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63251
63252         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
63253         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
63254         instead of $17.
63255         (PTR_DEMANGLE): Likewise.
63256
63257 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63258
63259         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
63260         (LP_OP): Likewise.
63261         (ASM_ADDR): Likewise.
63262         (RAX_LP): Likewise.
63263         (RBP_LP): Likewise.
63264         (RBX_LP): Likewise.
63265         (RCX_LP): Likewise.
63266         (RDI_LP): Likewise.
63267         (RSI_LP): Likewise.
63268         (RSP_LP): Likewise.
63269         (R8_LP): Likewise.
63270         (R9_LP): Likewise.
63271         (R10_LP): Likewise.
63272         (R10_LP): Likewise.
63273         (R11_LP): Likewise.
63274         (R12_LP): Likewise.
63275         (R13_LP): Likewise.
63276         (R14_LP): Likewise.
63277         (R15_LP): Likewise.
63278
63279 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63280
63281         * sysdeps/x86_64/x32/dl-machine.h: New file.
63282
63283 2012-05-14  Andreas Jaeger  <aj@suse.de>
63284
63285         * manual/Makefile (subdir): Remove export of subdir.
63286         (all): Remove target.
63287         (.PHONY): Remove all from list.
63288         (mkinstalldirs): Remove.
63289         (.PHONY): Remove installdirs from list.
63290         ($(inst_infodir)/libc.info): Use make-target-directory.
63291         (installdirs): Remove.
63292         (subdir_%): Remove.
63293         (glibc-targets): Remove.
63294         (lib): Remove.
63295         (stubs): Remove.
63296         ($(objpfx)stubs ../po/manual.pot): Remove.
63297         ($(objpfx)stamp%): Remove.
63298         (make-target-directory): Remove.
63299         (subdir_install): Remove.
63300         (routines): Remove.
63301         (aux): Remove.
63302         (sources): Remove.
63303         (objects): Remove.
63304         (headers): Remove.
63305
63306         [BZ #13750]
63307         * manual/.gitignore: Remove, it's not needed anymore.
63308         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
63309         all files in it.
63310         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
63311         directory.
63312         (texis): Renamed to $(objpfx)texis.
63313         (texis-path): New, contains path to generated files.
63314         (chapters.%): Use texis-path for complete path, add extra argument
63315         libc-texinfo.sh.
63316         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
63317         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
63318         (summary,texi, stamp-summary): Use complete path of
63319         files. Generate files in build dir.
63320         (dir-add.texi): Build in build dir.
63321         (libm-err.texi,stamp-libm-err): Likewise.
63322         (version.texi, stamp-version): Likewise.
63323         (.%c.texi): Likewise.
63324         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
63325         (mostlyclean): Remove target.
63326         (realclean): Remove target.
63327         (generated): Add new variable with contents from mostlyclean and
63328         realclean, remove entries duplicated in common-mostlyclean, add
63329         stamp-libm-err and stamp-version.
63330         (generated-dirs): Add libc directory.
63331         ($(inst_infodir)/libc.info): Install files from build dir.
63332
63333         * manual/install.texi (Configuring and compiling): Adjust since
63334         the info files are not part of the tar ball anymore.
63335
63336 2012-05-14  Andreas Jaeger  <aj@suse.de>
63337
63338         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
63339         variable.
63340
63341 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63342
63343         [BZ #13717]
63344         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
63345         to 2.2.0 where earlier.
63346         * sysdeps/unix/sysv/linux/configure: Regenerated.
63347         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
63348         Remove conditional code.
63349         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
63350         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
63351         Remove conditional code.
63352         [!__NR_lchown]: Likewise.
63353         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63354         [__NR_lchown]: Likewise.
63355         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
63356         comment referencing __ASSUME_LCHOWN_SYSCALL.
63357         * sysdeps/unix/sysv/linux/i386/sigaction.c
63358         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63359         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63360         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
63361         Remove conditional code.
63362         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
63363         (__protocol_available): Remove #if 0 code.
63364         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63365         conditional code.
63366         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63367         * sysdeps/unix/sysv/linux/kernel-features.h
63368         (__ASSUME_GETCWD_SYSCALL): Don't define.
63369         (__ASSUME_REALTIME_SIGNALS): Likewise.
63370         (__ASSUME_PREAD_SYSCALL): Likewise.
63371         (__ASSUME_PWRITE_SYSCALL): Likewise.
63372         (__ASSUME_POLL_SYSCALL): Likewise.
63373         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63374         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63375         non-SPARC.
63376         (__ASSUME_SIOCGIFNAME): Don't define.
63377         (__ASSUME_MSG_NOSIGNAL): Likewise.
63378         (__ASSUME_SENDFILE): Define unconditionally.
63379         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63380         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63381         conditional code.
63382         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63383         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63384         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63385         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63386         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63387         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63388         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63390         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63391         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63393         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63394         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63396         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63397         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63399         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63400         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63402         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63403         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63405         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63406         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63408         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63409         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63411         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63412         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63413         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63414         Remove conditional code.
63415         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63416         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63417         Remove conditional code.
63418         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63419         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63420         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63421         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63422         Remove conditional code.
63423         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63424         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63425         Remove conditional code.
63426         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63427         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63428         Remove conditional code.
63429         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63430         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63431         Remove conditional code.
63432         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63433         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63434         Remove conditional code.
63435         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63436         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63437         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63438         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63439         * sysdeps/unix/sysv/linux/sigaction.c
63440         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63441         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63442         * sysdeps/unix/sysv/linux/sigpending.c
63443         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63444         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63445         * sysdeps/unix/sysv/linux/sigprocmask.c
63446         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63447         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63448         * sysdeps/unix/sysv/linux/sigsuspend.c
63449         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63450         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63451         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63452         (__libc_missing_rt_sigs): Remove.
63453         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63454         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63455         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63456         Remove conditional code.
63457         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63458         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63459         return 1.
63460         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63461         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63462         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63463         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63464
63465 2012-05-14  Andreas Jaeger  <aj@suse.de>
63466
63467         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63468         it's not used in glibc.
63469         (__coshm1): Likewise.
63470         (__acosh1p): Likewise.
63471         (__sgn): Likewise.
63472
63473         * manual/string.texi (Copying and Concatenation): Add missing
63474         variable in concat example.
63475         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63476
63477 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63478
63479         [BZ #14103]
63480         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63481         __builtin_clzl with __builtin_clzll.
63482
63483 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63484
63485         [BZ #14104]
63486         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63487         libc_freeres_ptr.
63488
63489 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63490
63491         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63492         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63493         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63494         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63495
63496 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63497
63498         * NEWS: Update ia64 info.
63499
63500 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63501
63502         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63503         used as bcopy.
63504
63505 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63506
63507         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63508         * sysdeps/unix/syscalls.list (dup3): Likewise.
63509         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63510         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63511
63512 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63513
63514         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63515         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63516
63517 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63518
63519         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63520         thread pointer.
63521         (TLS_IE): Use mov/add instead of movq/addq to load thread
63522         pointer.
63523         (TLS_GD_PREFIX): New.
63524         (TLS_GD): Use it.
63525
63526 2012-05-11  David S. Miller  <davem@davemloft.net>
63527
63528         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63529         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63530         (_FPU_SETCW): Likewise.
63531
63532 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63533
63534         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63535         is 32-byte aligned.
63536
63537 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63538
63539         [BZ #11837]
63540         * iconvdata/gb18030.c: Update tables.
63541         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63542         characters specially.
63543         (BODY for TO_LOOP): Add encoding of missing ranges.
63544
63545 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63546
63547         [BZ #13673]
63548         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63549         * sysdeps/mach/hurd/dup3.c: Likewise.
63550         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63551         * sysdeps/powerpc/memmove.c:: Likewise.
63552
63553 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63554
63555         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63556         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63557
63558 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63559
63560         * elf/elf.h (R_X86_64_RELATIVE64): New.
63561         (R_X86_64_NUM): Updated.
63562         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63563         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63564         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63565         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63566         tst-quad1pie tst-quad2pie
63567         (modules-names): Add tst-quadmod1 tst-quadmod2.
63568         ($(objpfx)tst-quad1): New dependency.
63569         ($(objpfx)tst-quad2): Likewise.
63570         ($(objpfx)tst-quad1pie): Likewise.
63571         ($(objpfx)tst-quad2pie): Likewise.
63572         * sysdeps/x86_64/tst-quad1.c: New file.
63573         * sysdeps/x86_64/tst-quad1pie.c: New file.
63574         * sysdeps/x86_64/tst-quad2.c: Likewise.
63575         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63576         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63577         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63578         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63579         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63580
63581 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63582
63583         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63584         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63585         * streams/stropts.h (t_scalar_t): Define type.
63586
63587         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63588         (_PATH_PRESERVE): Set to "/var/lib".
63589         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63590
63591         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63592         instead of int.
63593
63594         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63595         if __dir_mkfile succeeded.
63596
63597         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63598         checking for _hurd_dtablesize.  Unlock it right after having
63599         finished _hurd_dtable allocation.
63600
63601 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63602
63603         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63604         * sysdeps/mach/hurd/configure: Regenerated.
63605         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63606         special-casing to...
63607         * sysdeps/gnu/configure.in: ... this new file.
63608         * sysdeps/unix/sysv/linux/configure: Regenerated.
63609         * sysdeps/gnu/configure: New generated file.
63610
63611         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63612         for Linux: use nsec instead of usec, as well as:
63613         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63614         members of type struct timespec.
63615         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63616         New macros.
63617         (struct stat64): Likewise.
63618         (_STATBUF_ST_NSEC): New macro.
63619         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63620
63621         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63622         __strtoul_internal rather than strtoul.
63623
63624 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63625
63626         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63627         and reject them.
63628
63629 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63630
63631         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63632         which preserves existing values.
63633         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63634
63635 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63636
63637         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63638         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63639         greater than FD_SETSIZE.
63640
63641 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63642
63643         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63644         allocated, call __vm_protect to finish enabling the existing space, and
63645         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63646         allocate the remainder.
63647
63648 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63649
63650         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63651         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63652
63653 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63654
63655         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63656         sysdeps/mach/hurd/readlink.c.
63657
63658         * posix/tst-sysconf.c (posix_options): Only use
63659         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63660         _POSIX_SYNCHRONIZED_IO when they are defined
63661         * sysdeps/mach/hurd/bits/posix_opt.h:
63662         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63663         (_XOPEN_REALTIME): Undefine macro.
63664         (_XOPEN_REALTIME_THREADS): Undefine macro.
63665         (_XOPEN_SHM): Undefine macro.
63666         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63667         macro to -1.
63668         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63669         macro to -1.
63670         (_POSIX_ASYNC_IO): Undefine macro.
63671         (_POSIX_PRIORITIZED_IO): Undefine macro.
63672         (_POSIX_SPIN_LOCKS): Define macro to -1.
63673
63674         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63675         SA_NODEFER, SA_RESETHAND.
63676         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63677         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63678         F_DUPFD_CLOEXEC.
63679
63680 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63681
63682         * elf/Makefile (pldd-modules): Define unconditionally.
63683
63684 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63685
63686         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63687
63688 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63689
63690         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63691         Return ENOENT when name is empty.
63692         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63693
63694 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63695
63696         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63697
63698         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63699
63700 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63701
63702         Fix mlock in all cases except non-readable pages.
63703         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63704         instead of VM_PROT_ALL as parameter to __vm_wire function.
63705
63706         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63707         (__mkdir): When path is `/', just fail with EEXIST.
63708         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63709
63710 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63711
63712         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63713         <sys/uio.h> (for writev).
63714         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63715         and <sys/param.h> (for MIN).
63716
63717 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63718
63719         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63720         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63721         if interrupted.
63722
63723 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63724
63725         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63726         Depend on against $(link-rpcuserlibs).
63727
63728 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63729
63730         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63731         (__libc_stack_end): Do not use attribute_relro.
63732         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63733         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63734         to libthread-provided value.
63735         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63736         attribute_relro.
63737
63738 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63739
63740         [BZ #3748]
63741         * bits/libc-lock.h (__libc_once_get): New macro.
63742         * sysdeps/mach/bits/libc-lock.h: Likewise.
63743         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63744         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63745         instead of using implementation details.
63746
63747         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63748         * libio/freopen.c: Likewise.
63749         * libio/freopen64.c: Likewise.
63750         * misc/syslog.c: Likewise.
63751         * nscd/connections.c: Likewise.
63752         * nscd/netgroupcache.c: Likewise.
63753         * sysdeps/posix/getcwd.c: Likewise.
63754
63755 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63756
63757         * math/w_ilogbf.c: Add #include <limits.h>.
63758
63759 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63760
63761         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63762         path instead of returning without unlocking.
63763
63764         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63765         immediate-write ioctls.
63766         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63767
63768 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63769
63770         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63771         __builtin_frame_address instead of making assumptions about the
63772         location of the return address relative to DATA.  Force early load of
63773         the return address.
63774         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63775         __builtin_frame_address.
63776
63777         dup3 for GNU Hurd.
63778         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63779         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63780         implement dup3 and do some further code clean-ups.
63781         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63782         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63783
63784 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63785
63786         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63787
63788         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63789         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63790         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63791         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63792         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63793         d->port.lock.
63794
63795         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63796         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63797         when handler == SIG_ERR, not when handler != SIG_ERR.
63798
63799 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63800
63801         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63802         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63803         definitions.
63804
63805         accept4 for GNU Hurd.
63806         * include/sys/socket.h (__libc_accept4): New prototype.
63807         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63808         to implement __libc_accept4.
63809         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63810         __libc_accept4.
63811         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63812
63813         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63814         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63815         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63816         signal-defines.sym.
63817
63818 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63819
63820         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63821
63822 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63823
63824         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63825         assertion on O_CLOEXEC flag.
63826         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63827         * hurd/intern-fd.c: Likewise.
63828         * hurd/port2fd.c: Likewise.
63829
63830 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63831
63832         [BZ #3906]
63833         * bits/in.h (IPV6_PKTINFO): Define new macro.
63834         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63835
63836 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63837
63838         [BZ #13954]
63839         [BZ #13955]
63840         [BZ #13956]
63841         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63842         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63843         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63844         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63845         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63846         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63847         * math/libm-test.inc (logb_test) : Additional logb tests.
63848
63849 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63850             Andreas Jaeger  <aj@suse.de>
63851
63852         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63853         * configure: Regenerated.
63854         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63855         * config.make.in (link-obsolete-rpc): New substituted variable.
63856         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63857         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63858         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63859         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63860         so that libc.a contains the symbols.
63861         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63862         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63863         * sunrpc/auth_none.c: Likewise.
63864         * sunrpc/auth_unix.c: Likewise.
63865         * sunrpc/authdes_prot.c: Likewise.
63866         * sunrpc/authuxprot.c: Likewise.
63867         * sunrpc/clnt_gen.c: Likewise.
63868         * sunrpc/clnt_perr.c: Likewise.
63869         * sunrpc/clnt_raw.c: Likewise.
63870         * sunrpc/clnt_simp.c: Likewise.
63871         * sunrpc/clnt_tcp.c: Likewise.
63872         * sunrpc/clnt_udp.c: Likewise.
63873         * sunrpc/clnt_unix.c: Likewise.
63874         * sunrpc/des_crypt.c: Likewise.
63875         * sunrpc/des_soft.c: Likewise.
63876         * sunrpc/get_myaddr.c: Likewise.
63877         * sunrpc/key_call.c: Likewise.
63878         * sunrpc/key_prot.c: Likewise.
63879         * sunrpc/netname.c: Likewise.
63880         * sunrpc/pm_getmaps.c: Likewise.
63881         * sunrpc/pm_getport.c: Likewise.
63882         * sunrpc/pmap_clnt.c: Likewise.
63883         * sunrpc/pmap_prot.c: Likewise.
63884         * sunrpc/pmap_prot2.c: Likewise.
63885         * sunrpc/pmap_rmt.c: Likewise.
63886         * sunrpc/publickey.c: Likewise.
63887         * sunrpc/rpc_cmsg.c: Likewise.
63888         * sunrpc/rpc_common.c: Likewise.
63889         * sunrpc/rpc_dtable.c: Likewise.
63890         * sunrpc/rpc_prot.c: Likewise.
63891         * sunrpc/rpc_thread.c: Likewise.
63892         * sunrpc/rtime.c: Likewise.
63893         * sunrpc/svc.c: Likewise.
63894         * sunrpc/svc_auth.c: Likewise.
63895         * sunrpc/svc_raw.c: Likewise.
63896         * sunrpc/svc_run.c: Likewise.
63897         * sunrpc/svc_tcp.c: Likewise.
63898         * sunrpc/svc_udp.c: Likewise.
63899         * sunrpc/svc_unix.c: Likewise.
63900         * sunrpc/svcauth_des.c: Likewise.
63901         * sunrpc/xcrypt.c: Likewise.
63902         * sunrpc/xdr.c: Likewise.
63903         * sunrpc/xdr_array.c: Likewise.
63904         * sunrpc/xdr_float.c: Likewise.
63905         * sunrpc/xdr_intXX_t.c: Likewise.
63906         * sunrpc/xdr_mem.c: Likewise.
63907         * sunrpc/xdr_rec.c: Likewise.
63908         * sunrpc/xdr_ref.c: Likewise.
63909         * sunrpc/xdr_sizeof.c: Likewise.
63910         * sunrpc/xdr_stdio.c: Likewise.
63911
63912 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63913
63914         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63915         change.  Update copyright years.
63916
63917 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63918
63919         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63920
63921 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63922             Joseph Myers  <joseph@codesourcery.com>
63923             Paul Pluzhnikov  <ppluzhnikov@google.com>
63924
63925         [BZ #14012]
63926         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63927         requiring rpcgen.
63928         [cross-compiling] (extra-libs): Likewise.
63929         [cross-compiling] (extra-libs-others): Likewise.
63930         [cross-compiling] (librpcsvc-routines): Likewise.
63931         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63932         [cross-compiling] (omit-deps): Likewise.
63933         (sunrpc-CPPFLAGS): New variable.
63934         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63935         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63936         (cross-rpcgen-objs): New variable.
63937         (extra-objs): Append $(cross-rpcgen-objs).
63938         ($(cross-rpcgen-objs)): New rule.
63939         ($(objpfx)cross-rpcgen): Likewise.
63940         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63941         comment.
63942         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63943         ($(objpfx)x%.stmp): Likewise.
63944         * sunrpc/proto.h [IS_IN_build] (_): Define.
63945         [IS_IN_build] (_libc_intl_domainname): Likewise.
63946
63947 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63948
63949         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63950         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63951         and R_X86_64_TPOFF64.
63952
63953 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63954
63955         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63956         sysdeps/unix/sysv/syscalls.list.
63957         (stime): Likewise.
63958         (utime): Likewise.
63959         * sysdeps/unix/sysv/syscalls.list: Remove file.
63960
63961 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         [BZ #3440]
63964         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63965         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63966         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63967         (__LC_IDENTIFICATION): Make these macros useful in #if
63968         expressions, as required by C99.
63969
63970 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63971
63972         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63973         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63974         after this.
63975
63976 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63977
63978         * stdlib/longlong.h: Updated from GCC.
63979
63980 2012-05-09  Andreas Jaeger  <aj@suse.de>
63981
63982         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63983         default is first entry.
63984         (run_mode): Set type.
63985         (main): Remove informal message about syslog.
63986         (options): Fix typo.
63987
63988         [BZ #14053]
63989         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63990         to asm.
63991         (lrint): Likewise.
63992         (llrintf): Likewise.
63993         (llrint): Likewise.
63994         (rint): Likewise.
63995         (rintf): Likewise.
63996         (nearbyint): Likewise.
63997         (nearbyintf): Likewise.
63998
63999 2012-05-09  Andreas Jaeger  <aj@suse.de>
64000             Pedro Alves  <palves@redhat.com>
64001
64002         * nscd/nscd.c (run_mode): Use enum.
64003         (main): Cleanup coding style issue.
64004
64005 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
64006             Andreas Jaeger  <aj@suse.de>
64007
64008         * nscd/nscd.c (go_background): Replaced with...
64009         (run_mode): ... this.
64010         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
64011         (options): Add -F --foreground.
64012         (main): Implement it.
64013         (parse_opt): Parse it.
64014
64015 2012-05-09  Andreas Jaeger  <aj@suse.de>
64016
64017         [BZ #14083]
64018         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
64019         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
64020         -Wconversion warning.
64021         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
64022         Likewise.
64023
64024 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
64025
64026         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
64027         == 0.
64028         (LC_ALL): Use macro-int-constant.
64029         (LC_COLLATE): Likewise.
64030         (LC_CTYPE): Likewise.
64031         (LC_MESSAGES): Likewise.
64032         (LC_MONETARY): Likewise.
64033         (LC_NUMERIC): Likewise.
64034         (LC_TIME): Likewise.
64035         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
64036         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64037         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64038         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
64039         Specify type.
64040         [C99-based standards] (float_t): Expect type.
64041         [C99-based standards] (double_t): Expect type.
64042         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
64043         type.
64044         [C99-based standards] (HUGE_VALL): Likewise.
64045         [C99-based standards] (INFINITY): Likewise.
64046         [C99-based standards] (NAN): Likewise.
64047         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
64048         [C99-based standards] (FP_NAN): Likewise.
64049         [C99-based standards] (FP_NORMAL): Likewise.
64050         [C99-based standards] (FP_SUBNORMAL): Likewise.
64051         [C99-based standards] (FP_ZERO): Likewise.
64052         [C99-based standards] (FP_FAST_FMA): Use
64053         optional-macro-int-constant.  Specify type.  Require == 1.
64054         [C99-based standards] (FP_FAST_FMAF): Likewise.
64055         [C99-based standards] (FP_FAST_FMAL): Likewise.
64056         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
64057         [C99-based standards] (FP_ILOGBNAN): Likewise.
64058         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
64059         Specify type.
64060         [C99-based standards] (MATH_ERREXCEPT): Likewise.
64061         [C99-based standards] (math_errhandling): Specify type.
64062         [ISO99 || ISO11] (signgam): Do not allow.
64063         [non-C99-based standards] (copysignf): Do not allow.
64064         [non-C99-based standards] (exp2f): Likewise.
64065         [non-C99-based standards] (log2f): Likewise.
64066         [non-C99-based standards] (modff): Allow.
64067         [non-C99-based standards] (erff): Do not allow.
64068         [non-C99-based standards] (erfcf): Likewise.
64069         [non-C99-based standards] (gammaf): Likewise.
64070         [non-C99-based standards] (hypotf): Likewise.
64071         [non-C99-based standards] (j0f): Likewise.
64072         [non-C99-based standards] (j1f): Likewise.
64073         [non-C99-based standards] (jnf): Likewise.
64074         [non-C99-based standards] (lgammaf): Likewise.
64075         [non-C99-based standards] (tgammaf): Likewise.
64076         [non-C99-based standards] (y0f): Likewise.
64077         [non-C99-based standards] (y1f): Likewise.
64078         [non-C99-based standards] (ynf): Likewise.
64079         [non-C99-based standards] (isnanf): Likewise.
64080         [non-C99-based standards] (acoshf): Likewise.
64081         [non-C99-based standards] (asinhf): Likewise.
64082         [non-C99-based standards] (atanhf): Likewise.
64083         [non-C99-based standards] (cbrtf): Likewise.
64084         [non-C99-based standards] (expm1f): Likewise.
64085         [non-C99-based standards] (ilogbf): Likewise.
64086         [non-C99-based standards] (log1pf): Likewise.
64087         [non-C99-based standards] (logbf): Likewise.
64088         [non-C99-based standards] (nextafterf): Likewise.
64089         [non-C99-based standards] (remainderf): Likewise.
64090         [non-C99-based standards] (rintf): Likewise.
64091         [non-C99-based standards] (scalbf): Likewise.
64092         [non-C99-based standards] (copysignl): Likewise.
64093         [non-C99-based standards] (exp2l): Likewise.
64094         [non-C99-based standards] (log2l): Likewise.
64095         [non-C99-based standards] (modfl): Allow.
64096         [non-C99-based standards] (erfl): Do not allow.
64097         [non-C99-based standards] (erfcl): Likewise.
64098         [non-C99-based standards] (gammal): Likewise.
64099         [non-C99-based standards] (hypotl): Likewise.
64100         [non-C99-based standards] (j0l): Likewise.
64101         [non-C99-based standards] (j1l): Likewise.
64102         [non-C99-based standards] (jnl): Likewise.
64103         [non-C99-based standards] (lgammal): Likewise.
64104         [non-C99-based standards] (tgammal): Likewise.
64105         [non-C99-based standards] (y0l): Likewise.
64106         [non-C99-based standards] (y1l): Likewise.
64107         [non-C99-based standards] (ynl): Likewise.
64108         [non-C99-based standards] (isnanl): Likewise.
64109         [non-C99-based standards] (acoshl): Likewise.
64110         [non-C99-based standards] (asinhl): Likewise.
64111         [non-C99-based standards] (atanhl): Likewise.
64112         [non-C99-based standards] (cbrtl): Likewise.
64113         [non-C99-based standards] (expm1l): Likewise.
64114         [non-C99-based standards] (ilogbl): Likewise.
64115         [non-C99-based standards] (log1pl): Likewise.
64116         [non-C99-based standards] (logbl): Likewise.
64117         [non-C99-based standards] (nextafterl): Likewise.
64118         [non-C99-based standards] (remainderl): Likewise.
64119         [non-C99-based standards] (rintl): Likewise.
64120         [non-C99-based standards] (scalbl): Likewise.
64121         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64122         [non-C99-based standards] (FP_*): Do not allow.
64123         [C99-based standards] (FP_*): Change to
64124         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64125         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64126         allow.
64127         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
64128         (SIG_ERR): Likewise.
64129         [X/Open-based standards] (SIG_HOLD): Likewise.
64130         (SIG_IGN): Likewise.
64131         (SIGABRT): Use macro-int-constant.  Specify type.  Require
64132         positive value.
64133         (SIGFPE): Likewise.
64134         (SIGILL): Likewise.
64135         (SIGINT): Likewise.
64136         (SIGSEGV): Likewise.
64137         (SIGTER): Likewise.
64138         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
64139         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
64140         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
64141         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
64142         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
64143         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
64144         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
64145         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
64146         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
64147         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
64148         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
64149         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
64150         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
64151         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
64152         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
64153         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
64154         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
64155         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
64156         [X/Open-based standards] (SIGTRAP): Likewise.
64157         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
64158         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
64159         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
64160         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
64161         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64162         allow.
64163
64164 2012-05-08  Ian Wienand  <ianw@vmware.com>
64165
64166         [BZ #14080]
64167         * time/tzset.c (__tzset_parse_tz): Update default rules for
64168         daylight time changes in the Energy Policy Act of 2005.
64169
64170 2012-05-09  Andreas Jaeger  <aj@suse.de>
64171
64172         [BZ #13983]
64173         * elf/ldconfig.c (parse_conf): Change string to make clear that
64174         ldconfig only issued a warning if ld.so.conf does not exist.
64175
64176 2012-05-08  David S. Miller  <davem@davemloft.net>
64177
64178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
64179         movxtod instead of popping the value on the stack.
64180
64181         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64182
64183 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
64184
64185         * config.h.in: Add HAVE_ARM_PCS_VFP.
64186
64187 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
64188
64189         [BZ #13979]
64190         * include/features.h: Warn if user requests __FORTIFY_SOURCE
64191         checking but the checks are disabled for any reason.
64192
64193 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
64194
64195         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
64196         and ELF64_R_TYPE with ELFW(R_TYPE).
64197
64198 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
64199
64200         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
64201         (ulimit): Likewise.
64202
64203         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
64204         (settimeofday): Likewise.
64205
64206 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
64207
64208         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
64209         a struct th_u2 inside the union, and move tu_block/tu_code into
64210         a new th_u3 union of tu_block/tu_code inside of that.  Move
64211         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
64212         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
64213         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
64214         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
64215         (th_stuff): Change to th_u1.tu_stuff.
64216         (th_data): Define.
64217         (th_msg): Change to th_u1.th_u2.tu_data.
64218
64219 2012-05-07  David S. Miller  <davem@davemloft.net>
64220
64221         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64222
64223         [BZ #14074]
64224         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
64225         (SETUP_PIC_REG): Use it.
64226         (SETUP_PIC_REG_LEAF): Use it.
64227
64228 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
64229
64230         [BZ #13885]
64231         [BZ #13923]
64232         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64233         USE_AS_EXPM1L.
64234         (EXPL_FINITE): Likewise.
64235         (FLDLOG): Likewise.
64236         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64237         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64238         e_expl.S.
64239         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64240         USE_AS_EXPM1L.
64241         (EXPL_FINITE): Likewise.
64242         (FLDLOG): Likewise.
64243         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64244         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64245         e_expl.S.
64246         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
64247         test of -max_value argument for long double.
64248         * sysdeps/i386/fpu/libm-test-ulps: Update.
64249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64250
64251 2012-05-06  David S. Miller  <davem@davemloft.net>
64252
64253         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
64254         quad soft-float symbols whose references which are compiler
64255         generated.
64256         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
64257
64258 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
64259
64260         [BZ #13884]
64261         [BZ #13914]
64262         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64263         USE_AS_EXP10L.
64264         (EXPL_FINITE): Likewise.
64265         (FLDLOG): Likewise.
64266         (c0): Likewise.
64267         (c1): Likewise.
64268         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64269         Adjust comments for base varying.
64270         (__expl_finite): Change alias to EXPL_FINITE.
64271         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
64272         e_expl.S.
64273         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
64274         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
64275         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
64276         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
64277         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64278         USE_AS_EXP10L.
64279         (EXPL_FINITE): Likewise.
64280         (FLDLOG): Likewise.
64281         (c0): Likewise.
64282         (c1): Likewise.
64283         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64284         Adjust comments for base varying.
64285         (__expl_finite): Change alias to EXPL_FINITE.
64286         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
64287         tests for bugs.
64288         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64289
64290         [BZ #14064]
64291         * math/libm-test.inc (check_float_internal): Correct ulp
64292         calculation for subnormal expected results.
64293
64294 2012-05-06  Andreas Jaeger  <aj@suse.de>
64295
64296         * Makeconfig (+math-flags): New, set to -frounding-math.
64297         (+cflags): Add +math-flags so that all of glibc gets compiled with
64298         it.
64299
64300         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
64301
64302 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
64303
64304         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
64305         Disable one test.
64306
64307         [BZ #13787]
64308         [BZ #13922]
64309         [BZ #14036]
64310         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
64311         (__ieee754_expl): Allow for and saturate large arguments.
64312         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
64313         (u_threshold): Likewise.
64314         (__exp): Call __ieee754_exp before checking for overflow and
64315         underflow.
64316         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
64317         (u_threshold): Likewise.
64318         (__expf): Call __ieee754_expf before checking for overflow and
64319         underflow.
64320         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
64321         (u_threshold): Likewise.
64322         (__expl): Call __ieee754_expl before checking for overflow and
64323         underflow.
64324         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
64325         (__ieee754_expl): Allow for and saturate large arguments.
64326         * math/libm-test.inc (exp_test): Add another test.  Do not allow
64327         missing overflow exception on overflow.
64328         (expm1_test): Do not allow missing overflow exception on overflow.
64329
64330         * sysdeps/i386/fpu/e_expl.c: Move to ...
64331         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
64332         rather than using inline asm.
64333         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
64334         * sysdeps/x86_64/fpu/e_expl.S: Copy from
64335         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
64336
64337         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
64338         (nice): Likewise.
64339         (poll): Likewise.
64340         (signal): Likewise.
64341         (time): Likewise.
64342         (times): Likewise.
64343
64344 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64345
64346         * sysdeps/unix/syscalls.list (adjtime): Add entry from
64347         sysdeps/unix/common/syscalls.list.
64348         (fchmod): Likewise.
64349         (fchown): Likewise.
64350         (ftruncate): Likewise.
64351         (getrusage): Likewise.
64352         (gettimeofday): Likewise.
64353         (setpgid): Likewise.
64354         (setregid): Likewise.
64355         (setreuid): Likewise.
64356         (sigaction): Likewise.
64357         (truncate): Likewise.
64358         (vhangup): Likewise.
64359         * sysdeps/unix/common/syscalls.list: Remove file.
64360         * sysdeps/unix/bsd/Implies: Don't include unix/common.
64361         * sysdeps/unix/sysv/linux/Implies: Likewise.
64362
64363 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64364
64365         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64366         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64367         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64368         Moved to ...
64369         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64370         Here.
64371         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64372         to ...
64373         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64374         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64375         to ...
64376         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64377         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64378         to ...
64379         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64380         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64381         to ...
64382         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64383         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64384         to ...
64385         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64386         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64387         to ...
64388         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64389         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64390         to ...
64391         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64392         Here.
64393         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64394         to ...
64395         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64396         Here.
64397         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64398         to ...
64399         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64400         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64401         Moved to ...
64402         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64403         Here.
64404         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64405         to ...
64406         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64407
64408 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64409
64410         * sysdeps/unix/common/bits/dirent.h: Remove file.
64411         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64412
64413         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64414         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64415         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64416         * sysdeps/unix/bsd/isatty.c: Likewise.
64417         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64418         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64419         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64420
64421 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64422
64423         [BZ #13563]
64424         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64425         long double comparison inaccuracies.
64426         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64427         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64428
64429 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64430
64431         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64432         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64433
64434 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64435
64436         [BZ #14049]
64437         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64438         nonzero digits before rounding a hex value.
64439         * stdlib/tst-strtod.c (tests): Add another test.
64440
64441 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64442
64443         * sysdeps/s390/fpu/libm-test-ulps: Update.
64444
64445 2012-05-03  Andreas Jaeger  <aj@suse.de>
64446
64447         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64448         does not get optimized out.
64449         (malloc_opt_barrier): New.
64450
64451 2012-05-03  Andreas Jaeger  <aj@suse.de>
64452             Roland McGrath  <roland@hack.frob.com>
64453
64454         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64455         intermediate file deletion.
64456         (generated): Add .symlist files.
64457
64458 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64459
64460         [BZ #13775]
64461         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64462         Redirect under this condition.
64463         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64464         [__USE_GNU] (__dprintf_chk): Not under this condition.
64465         [__USE_GNU] (__vdprintf_chk): Likewise.
64466         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64467         under this condition.
64468         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64469         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64470         [__USE_XOPEN2K8] (vdprintf): Likewise.
64471         [__USE_GNU] (__dprintf_chk): Not under this condition.
64472         [__USE_GNU] (__vdprintf_chk): Likewise.
64473         [__USE_GNU] (dprintf): Likewise.
64474         [__USE_GNU] (vdprintf): Likewise.
64475
64476 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64477
64478         * elf/Makefile (common-generated): Set this instead of generated for
64479         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64480         $(all-built-dso)-derived lists.
64481
64482 2012-05-03  Andreas Jaeger  <aj@suse.de>
64483
64484         * sysdeps/i386/fpu/libm-test-ulps: Update.
64485
64486         * FAQ: Removed.
64487         * FAQ.in: Likewise.
64488         * scripts/gen-FAQ.pl: Likewise.
64489         * manual/install.texi (Installation): Point to online location of
64490         FAQ.
64491         * Makefile (files-for-dist): Remove FAQ.
64492         (FAQ): Remove.
64493
64494 2012-05-02  Allan McRae  <allan@archlinux.org>
64495
64496         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64497         (LDFLAGS-reldepmod5.so): Likewise.
64498         (LDFLAGS-reldep6mod1.so): Likewise.
64499         (LDFLAGS-reldep6mod4.so): Likewise.
64500         (LDFLAGS-reldep8mod3.so): Likewise.
64501         (LDFLAGS-unload4mod1.so): Likewise.
64502         (LDFLAGS-unload4mod2.so): Likewise.
64503         (LDFLAGS-tst-initorder): Likewise.
64504         (LDFLAGS-tst-initordera2.so): Likewise.
64505         (LDFLAGS-tst-initordera3.so): Likewise.
64506         (LDFLAGS-tst-initordera4.so): Likewise.
64507         (LDFLAGS-tst-initorderb2.so): Likewise.
64508         (LDFLAGS-noload): Likewise.
64509         (LDFLAGS-next): Likewise.
64510         (LDFLAGS-order2mod1.so): Likewise.
64511         (LDFLAGS-order2mod2.so): Likewise.
64512         (LDFLAGS-tst-initorder2): Likewise.
64513         (LDFLAGS-tst-initorder2a.so): Likewise.
64514         (LDFLAGS-tst-initorder2b.so): Likewise.
64515         (LDFLAGS-tst-initorder2c.so): Likewise.
64516         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64517
64518 2012-05-02  David S. Miller  <davem@davemloft.net>
64519
64520         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64521
64522 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64523
64524         [BZ #14055]
64525         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64526
64527 2012-05-02  Andreas Jaeger  <aj@suse.de>
64528
64529         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64530         since we manipulate rounding mode.
64531         (CPPFLAGS-test-idouble.c): Likewise.
64532         (CPPFLAGS-test-ifloat.c): Likewise.
64533         (CFLAGS-test-ldouble.c): Likewise.
64534         (CFLAGS-test-double.c): Likewise.
64535         (CFLAGS-test-float.c): Likewise.
64536         (CFLAGS-test-misc.c): Likewise.
64537         (CFLAGS-test-test-fenv.c): Likewise.
64538
64539 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64540
64541         [BZ #2550]
64542         [BZ #2570]
64543         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64544         comparisons to determine direction to adjust input.
64545
64546 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64547
64548         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64549         output to the target.
64550
64551         * scripts/localplt.awk: New file.
64552         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64553         (check-localplt-CFLAGS): Variable removed.
64554         ($(all-built-dso:=.jmprel)): New static pattern rule.
64555         (generated): Add those targets.
64556         (localplt-built-dso): New variable.
64557         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64558
64559         * elf/check-localplt.c: File removed.
64560
64561         * scripts/check-execstack.awk: New file.
64562         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64563         (check-execstack-CFLAGS): Variable removed.
64564         ($(objpfx)check-execstack.h): Target removed.
64565         ($(objpfx)execstack-default): New target.
64566         (generated): Add that instead of check-execstack.h.
64567         ($(all-built-dso:=.phdr)): New static pattern rule.
64568         (generated): Add those targets.
64569         * elf/check-execstack.c: File removed.
64570
64571         * scripts/check-textrel.awk: New file.
64572         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64573         (check-textrel-CFLAGS): Variable removed.
64574         (all-built-dso): Use := to define.o
64575         ($(all-built-dso:=.dyn)): New static pattern rule.
64576         (generated): Add those targets.
64577         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64578         * config.make.in (READELF): New substituted variable.
64579         * elf/check-textrel.c: File removed.
64580
64581 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64582
64583         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64584         allow.
64585         * conform/data/ctype.h-data [C99-based standards] (isblank):
64586         Expect function.
64587         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64588         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64589         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64590         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64591         Specify type.  Require positive value.
64592         (EILSEQ): Likewise.
64593         (ERANGE): Likewise.
64594         [ISO || POSIX] (EILSEQ): Do not expect.
64595         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64596         Specify type.  Require positive value.
64597         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64598         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64599         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64600         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64601         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64602         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64603         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64604         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64605         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64606         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64607         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64608         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64609         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64610         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64611         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64612         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64613         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64614         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64615         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64616         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64617         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64618         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64619         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64620         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64621         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64622         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64623         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64624         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64625         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64626         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64627         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64628         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64629         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64630         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64631         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64632         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64633         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64634         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64635         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64636         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64637         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64638         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64639         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64640         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64641         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64642         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64643         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64644         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64645         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64646         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64647         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64648         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64649         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64650         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64651         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64652         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64653         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64654         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64655         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64656         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64657         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64658         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64659         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64660         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64661         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64662         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64663         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64664         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64665         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64666         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64667         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64668         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64669         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64670         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64671         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64672         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64673         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64674         Require >= 2.
64675         (FLT_ROUNDS): Expect as macro, not constant.
64676         (FLT_MANT_DIG): Use macro-int-constant.
64677         (DBL_MANT_DIG): Likewise.
64678         (LDBL_MANT_DIG): Likewise.
64679         (FLT_DIG): Likewise.
64680         (DBL_DIG): Likewise.
64681         (LDBL_DIG): Likewise.
64682         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64683         (DBL_MIN_EXP): Likewise.
64684         (LDBL_MIN_EXP): Likewise.
64685         (FLT_MAX_EXP): Use macro-int-constant.
64686         (DBL_MAX_EXP): Likewise.
64687         (LDBL_MAX_EXP): Likewise.
64688         (FLT_MAX_10_EXP): Likewise.
64689         (DBL_MAX_10_EXP): Likewise.
64690         (LDBL_MAX_10_EXP): Likewise.
64691         (FLT_MAX): Use macro-constant.
64692         (DBL_MAX): Likewise.
64693         (LDBL_MAX): Likewise.
64694         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64695         (DBL_EPSILON): Likewise.
64696         (LDBL_EPSILON): Likewise.
64697         (FLT_MIN): Likewise.
64698         (DBL_MIN): Likewise.
64699         (LDBL_MIN): Likewise.
64700         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64701         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64702         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64703         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64704         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64705         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64706         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64707         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64708         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64709         [ISO11] (FLT_TRUE_MIN): Likewise.
64710         [ISO11] (LDBL_TRUE_MIN): Likewise.
64711         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64712         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64713         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64714         (SCHAR_MAX): Likewise.
64715         (UCHAR_MAX): Likewise.
64716         (CHAR_MIN): Likewise.
64717         (CHAR_MAX): Likewise.
64718         (MB_LEN_MAX): Use macro-int-constant.
64719         (SHRT_MIN): Use macro-int-constant.  Specify type.
64720         (SHRT_MAX): Likewise.
64721         (USHRT_MAX): Likewise.
64722         (INT_MAX): Likewise.
64723         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64724         bound negative.
64725         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64726         bound with "U".
64727         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64728         bound with "L".
64729         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64730         bound negative.  Suffix upper bound with "L".
64731         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64732         bound with "UL".
64733         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64734         Specify type.
64735         [C99-based standards] (LLONG_MAX): Likewise.
64736         [C99-based standards] (ULLONG_MAX): Likewise.
64737         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64738         == 0.
64739         [ISO11] (max_align_t): Require type.
64740         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64741
64742         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64743         from $CFLAGS, without defining away __attribute__ calls.
64744         (checknamespace): Use $CFLAGS_namespace.
64745
64746         * conform/conformtest.pl (@keywords): Only include C99 keywords
64747         for standards based on C99 or C11.
64748
64749         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64750         Disable tests.
64751         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64752         UNIX98]: Likewise.
64753
64754         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64755         usability of symbols in #if.
64756
64757         * conform/conformtest.pl: If macro or constant types start
64758         "promoted:", expect the symbol to be of the following type
64759         promoted by the integer promotions.
64760
64761         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64762         in one place.  Also handle "macro-constant".
64763
64764         * conform/conformtest.pl: Only accept expected macro values with
64765         "==".  Parse all "macro" lines in one place.
64766         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64767
64768         * conform/conformtest.pl: Handle braced types on "constant" lines
64769         instead of handling "typed-constant".
64770         * conform/data/signal.h-data: Use "constant" instead of
64771         "typed-constant".
64772
64773         * conform/conformtest.pl: Handle "optional-" at start of lines in
64774         one place rather than duplicating several cases.  Handle each
64775         format of "macro" line with initial "optional-".
64776
64777         * conform/conformtest.pl: Only accept expected constant or
64778         optional-constant values with "==".  Parse all "constant" lines in
64779         one place.  Parse all "optional-constant" lines in one place.
64780         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64781         * conform/data/fmtmsg.h-data: Likewise.
64782         * conform/data/netinet/in.h-data: Likewise.
64783         * conform/data/tar.h-data: Likewise.
64784         * conform/data/limits.h-data: Use "==" form on "constant" and
64785         "optional-constant" lines.
64786
64787         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64788         Use -std=c99 for XOPEN2K.
64789         (@knownproblems): Remove.
64790         (newtoken): Don't check %isknown.
64791
64792         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64793         Do not expect macro.
64794         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64795         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64796         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64797         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64798         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64799         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64800         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64801         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64802         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64803         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64804         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64805         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64806         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64807         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64808         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64809         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64810         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64811         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64812         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64813         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64814         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64815         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64816         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64817         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64818         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64819         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64820         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64821         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64822         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64823         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64824         [XPG3] (acosh): Likewise.
64825         [XPG3] (asinh): Likewise.
64826         [XPG3] (atanh): Likewise.
64827         [XPG3] (cbrt): Likewise.
64828         [XPG3] (expm1): Likewise.
64829         [XPG3] (ilogb): Likewise.
64830         [XPG3] (log1p): Likewise.
64831         [XPG3] (logb): Likewise.
64832         [XPG3] (nextafter): Likewise.
64833         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64834         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64835         [XPG3] (remainder): Likewise.
64836         [XPG3] (rint): Likewise.
64837         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64838         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64839         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64840         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64841         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64842         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64843         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64844         [UNIX98 || XOPEN2K] (scalb): Expect.
64845         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64846         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64847         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64848         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64849         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64850         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64851         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64852         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64853         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64854         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64855         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64856         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64857         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64858         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64859         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64860         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64861         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64862         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64863         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64864         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64865         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64866         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64867         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64868         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64869         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64870         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64871         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64872         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64873         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64874         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64875         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64876         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64877         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64878         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64879         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64880         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64881         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64882         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64883         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64884         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64885         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64886         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64887         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64888         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64889         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64890         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64891         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64892         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64893         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64894         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64895         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64896         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64897         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64898         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64899         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64900         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64901         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64902         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64903         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64904         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64905         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64906         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64907         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64908         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64909         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64910         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64911         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64912         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64913         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64914         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64915         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64916         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64917         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64918         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64919         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64920         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64921         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64922         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64923         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64924         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64925         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64926         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64927         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64928         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64929         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64930         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64931         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64932         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64933         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64934         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64935         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64936         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64937         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64938         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64939         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64940         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64941         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64942         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64943         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64944         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64945         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64946         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64947         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64948         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64949         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64950         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64951         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64952         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64953         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64954         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64955         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64956         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64957         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64958         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64959         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64960         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64961         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64962         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64963         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64964         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64965         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64966         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64967         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64968         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64969         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64970         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64971         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64972         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64973         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64974         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64975         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64976         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64977         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64978         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64979         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64980         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64981         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64982
64983         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64984         _XOPEN_SOURCE_EXTENDED for XPG4.
64985
64986         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64987
64988         * Makeconfig (localtime): Remove variable.
64989         (inst_localtime-file): Likewise.
64990
64991 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64992
64993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64994         Update.
64995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64996         Update.
64997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64998         Update.
64999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
65000         Update.
65001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
65002         Update.
65003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
65004         Update.
65005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65006         Update.
65007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
65008         Update.
65009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65010         Update.
65011
65012 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
65013
65014         [BZ #2550]
65015         [BZ #2570]
65016         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
65017         comparisons to determine direction to adjust input.
65018         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
65019         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
65020         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
65021         Likewise.
65022         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
65023         Likewise.
65024         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
65025         Likewise.
65026         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
65027         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
65028         Likewise.
65029         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
65030         Likewise.
65031         * math/libm-test.inc (nexttoward_test): Add more tests.
65032
65033 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65034
65035         [BZ #14040]
65036         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
65037         in version GLIBC_2.1, not GLIBC_2.0.
65038         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
65039         Likewise.
65040
65041 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
65042
65043         [BZ #13942]
65044         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
65045         (1 - x) * (1 + x).
65046         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65047         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
65048         * math/libm-test.inc (acos_test): Add more tests.
65049         (asin_test): Likewise.
65050         * sysdeps/i386/fpu/libm-test-ulps: Update.
65051         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65052
65053         [BZ #14034]
65054         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
65055         of square root.
65056         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
65057         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65058         * math/libm-test.inc (acos_test_tonearest): New function.
65059         (acos_test_towardzero): Likewise.
65060         (acos_test_downward): Likewise.
65061         (acos_test_upward): Likewise.
65062         (asin_test_tonearest): Likewise.
65063         (asin_test_towardzero): Likewise.
65064         (asin_test_downward): Likewise.
65065         (asin_test_upward): Likewise.
65066         (main): Call the new functions.
65067         * sysdeps/i386/fpu/libm-test-ulps: Update.
65068         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65069
65070         [BZ #13884]
65071         [BZ #13924]
65072         * math/e_exp10.c: Include <float.h>.
65073         (__ieee754_exp10): Handle underflow here rather than multiplying
65074         large negative argument by M_LN10.
65075         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
65076         of __ieee754_expf.
65077         * math/e_exp10l.c: Include <float.h>.
65078         (__ieee754_exp10l): Handle underflow here rather than multiplying
65079         large negative argument by M_LN10l.
65080         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
65081         spurious overflow exception on underflow.
65082
65083 2012-04-29  Marek Polacek  <polacek@redhat.com>
65084
65085         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
65086         (__fortify_function): New macro.
65087         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
65088         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
65089         __extern_always_inline.
65090         * libio/bits/stdio2.h: Likewise.
65091         * libio/bits/stdio.h: Likewise.
65092         * string/string.h: Likewise.
65093         * string/bits/string3.h: Likewise.
65094         * include/stdio.h: Likewise.
65095         * stdlib/bits/stdlib.h: Likewise.
65096         * stdlib/stdlib.h: Likewise.
65097         * rt/bits/mqueue2.h: Likewise.
65098         * rt/mqueue.h: Likewise.
65099         * posix/bits/unistd.h: Likewise.
65100         * posix/unistd.h: Likewise.
65101         * io/bits/poll2.h: Likewise.
65102         * io/bits/fcntl2.h: Likewise.
65103         * io/fcntl.h: Likewise.
65104         * io/sys/poll.h: Likewise.
65105         * misc/bits/syslog.h: Likewise.
65106         * misc/bits/syslog-ldbl.h: Likewise.
65107         * misc/sys/syslog.h: Likewise.
65108         * socket/bits/socket2.h: Likewise.
65109         * socket/sys/socket.h: Likewise.
65110         * debug/tst-chk1.c: Likewise.
65111         * wcsmbs/bits/wchar2.h: Likewise.
65112         * wcsmbs/bits/wchar-ldbl.h: Likewise.
65113         * wcsmbs/wchar.h: Likewise.
65114
65115 2012-04-29  Andreas Jaeger  <aj@suse.de>
65116
65117         * Makerules (tests): Remove enable-check-abi protection.
65118         (check-abi-warn): Remove.
65119         (check-abi-%): Remove check-abi-warn usage.
65120
65121         * configure.in: Remove check-abi configure option.
65122         * configure: Regenerated.
65123         * config.make.in (enable-check-abi): Remove.
65124
65125 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
65126
65127         [BZ #14033]
65128         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
65129         double functions to double *_finite functions.
65130
65131         [BZ #13941]
65132         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
65133         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
65134         LDBL_MIN_EXP.
65135         * stdio-common/Makefile (tests): Add tst-sprintf3.
65136         * stdio-common/tst-sprintf3.c: New file.
65137
65138         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
65139         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
65140
65141 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65142
65143         * conform/conformtest.pl: Remove duplicate typed-constant
65144         handling.
65145
65146 2012-04-28  David S. Miller  <davem@davemloft.net>
65147
65148         * Makerules (%.abilist): Add vpath on sysdep_dirs.
65149         (check-abi-%): Remove AWK script prerequisite and explicit
65150         abilist directory.
65151         (check-abi): Rewrite to just diff the symlist with the abilist.
65152         (config-tls, config-abi-config): Delete, no longer used.
65153         (update-abi-%): Remove AWK script and explicit abilist directory.
65154         (update-abi): Rewrite to simply compare and conditionally copy the
65155         symlist and the sysdep abilist file.  Remove update-abi-config
65156         checks.
65157         * abilist/ld.abilist: Remove.
65158         * abilist/libBrokenLocale.abilist: Remove.
65159         * abilist/libanl.abilist: Remove.
65160         * abilist/libcrypt.abilist: Remove.
65161         * abilist/libdl.abilist: Remove.
65162         * abilist/librt.abilist: Remove.
65163         * abilist/libthread_db.abilist: Remove.
65164         * abilist/libutil.abilist: Remove.
65165         * scripts/extract-abilist.awk: Remove.
65166         * scripts/merge-abilist.awk: Remove.
65167         * sysdeps/generic/libcidn.abilist: New file.
65168         * sysdeps/generic/libnss_compat.abilist: New file.
65169         * sysdeps/generic/libnss_db.abilist: New file.
65170         * sysdeps/generic/libnss_dns.abilist: New file.
65171         * sysdeps/generic/libnss_files.abilist: New file.
65172         * sysdeps/generic/libnss_hesiod.abilist: New file.
65173         * sysdeps/generic/libnss_nis.abilist: New file.
65174         * sysdeps/generic/libnss_nisplus.abilist: New file.
65175         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
65176         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
65177         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
65178         file.
65179         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
65180         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
65181         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
65182         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
65183         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
65184         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
65185         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
65186         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
65187         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
65188         file.
65189         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
65190         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
65191         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
65192         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65193         file.
65194         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
65195         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
65196         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
65197         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
65198         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
65199         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
65200         file.
65201         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
65202         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
65203         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
65204         file.
65205         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
65206         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
65207         New file.
65208         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
65209         New file.
65210         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
65211         New file.
65212         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
65213         New file.
65214         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
65215         New file.
65216         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
65217         New file.
65218         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
65219         New file.
65220         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
65221         New file.
65222         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
65223         New file.
65224         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
65225         New file.
65226         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
65227         New file.
65228         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
65229         New file.
65230         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
65231         New file.
65232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
65233         file.
65234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
65235         New file.
65236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
65237         New file.
65238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
65239         file.
65240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
65241         New file.
65242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
65243         New file.
65244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
65245         file.
65246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
65247         New file.
65248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65249         New file.
65250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
65251         New file.
65252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
65253         New file.
65254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
65255         New file.
65256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
65257         New file.
65258         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
65259         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
65260         file.
65261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
65262         New file.
65263         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
65264         file.
65265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
65266         file.
65267         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
65268         file.
65269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
65270         file.
65271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
65272         file.
65273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
65274         New file.
65275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
65276         file.
65277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
65278         file.
65279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
65280         New file.
65281         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
65282         file.
65283         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
65284         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
65285         file.
65286         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
65287         New file.
65288         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
65289         file.
65290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
65291         file.
65292         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
65293         file.
65294         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
65295         file.
65296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
65297         file.
65298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
65299         New file.
65300         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
65301         file.
65302         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
65303         file.
65304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
65305         New file.
65306         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
65307         file.
65308         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
65309         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
65310         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
65311         file.
65312         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
65313         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
65314         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
65315         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
65316         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
65317         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
65318         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
65319         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
65320         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
65321         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
65322         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
65323         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
65324         file.
65325         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
65326         New file.
65327         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
65328         file.
65329         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
65330         file.
65331         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
65332         file.
65333         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
65334         file.
65335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
65336         file.
65337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
65338         New file.
65339         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
65340         New file.
65341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
65342         file.
65343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
65344         New file.
65345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
65346         file.
65347         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
65348         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
65349         file.
65350         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
65351         New file.
65352         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
65353         file.
65354         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
65355         file.
65356         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
65357         file.
65358         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
65359         file.
65360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
65361         file.
65362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
65363         New file.
65364         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65365         New file.
65366         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65367         file.
65368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65369         New file.
65370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65371         file.
65372
65373 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65374
65375         * conform/conformtest.pl: Fix typo in handling typed-constant from
65376         allow-header.
65377
65378 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65379
65380         * README: Cut down references to pre-2.6 Linux kernels and
65381         Linuxthreads.  Update lists of configurations in libc and ports
65382         and sort alphabetically.  Say "or newer" with Linux kernel version
65383         requirements.
65384
65385         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65386
65387 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65388
65389         [BZ #887]
65390         * math/libm-test.inc (logb_test_downward): New test to expose
65391         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65392         rounding mode.
65393
65394 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65395
65396         [BZ #14027]
65397         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65398         to be done.
65399         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65400         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65401
65402 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65403
65404         * sysdeps/unix/i386/brk.S: Remove file.
65405         * sysdeps/unix/i386/dl-brk.S: Likewise.
65406         * sysdeps/unix/i386/pipe.S: Likewise.
65407         * sysdeps/unix/i386/sigreturn.S: Likewise.
65408         * sysdeps/unix/i386/syscall.S: Likewise.
65409         * sysdeps/unix/i386/vfork.S: Likewise.
65410         * sysdeps/unix/i386/wait.S: Likewise.
65411
65412         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65413         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65414
65415         * configure.in (arm*-none*): Do not allow without
65416         --enable-hacker-mode.
65417         (netbsd*): Remove case setting base_os.
65418         (386bsd*): Likewise.
65419         (freebsd*): Likewise.
65420         (bsdi*): Likewise.
65421         (osf*): Likewise.
65422         (sunos*): Likewise.
65423         (ultrix*): Likewise.
65424         (newsos*): Likewise.
65425         (dynix*): Likewise.
65426         (*bsd*): Likewise.
65427         (sysv*): Likewise.
65428         (isc*): Likewise.
65429         (esix*): Likewise.
65430         (sco*): Likewise.
65431         (minix*): Likewise.
65432         (irix4*): Likewise.
65433         (irix6*): Likewise.
65434         (solaris[2-9]*): Likewise.
65435         (none): Likewise.
65436         * configure: Regenerated.
65437
65438 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65439
65440         [BZ #11521]
65441         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65442         overflow or cancellation in calculating denominator.
65443         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65444         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65445         down expression to avoid unexpected rounding in newer GCCs.
65446         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65447
65448 2012-04-26  David S. Miller  <davem@davemloft.net>
65449
65450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65451         long-double compat symbols.
65452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65457         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65458         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65459         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65460         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65461         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65465
65466 2012-04-25  David S. Miller  <davem@davemloft.net>
65467
65468         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65469         HWCAP_* values only after the memory barriers have been defined.
65470         (atomic_full_barrier): Define.
65471         (atomic_read_barrier): Define.
65472         (atomic_write_barrier): Define.
65473
65474 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65475
65476         * shlib-versions: Add libgcc_s version information.
65477         * sysdeps/generic/libgcc_s.h: Remove.
65478         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65479         libgcc_s.h.
65480         * sysdeps/gnu/unwind-resume.c: Likewise.
65481         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65482
65483 2012-04-25  David S. Miller  <davem@davemloft.net>
65484
65485         * sysdeps/unix/sparc/brk.S: Delete.
65486         * sysdeps/unix/sparc/dl-brk.S: Delete.
65487         * sysdeps/unix/sparc/pipe.S: Delete.
65488         * sysdeps/unix/sparc/sysdep.S: Delete.
65489         * sysdeps/unix/sparc/sysdep.h: Delete.
65490         * sysdeps/unix/sparc/vfork.S: Delete.
65491         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65492         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65493         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65494         (ret_ERRVAL, r0, r1, MOVE): Define.
65495         (JUMPTARGET): Remove.
65496         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65497         sysdeps/unix/sparc/sysdep.h
65498         (ENTRY, END): Remove.
65499         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65500
65501 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65502
65503         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65504         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65505         -DIS_IN_build.
65506
65507         * timezone/README: Update upstream location and email address for
65508         tzcode and tzdata.
65509         * timezone/zdump.c: Update from tzcode 2012b.
65510         * timezone/zic.c: Likewise.
65511
65512         * configure.in (libc_cv_as_needed): Remove test.
65513         * configure: Regenerated.
65514         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65515         conditional definition.
65516         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65517         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65518         * config.make.in (have-as-needed): Remove variable.
65519
65520 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65521             Paul Pluzhnikov  <ppluzhnikov@google.com>
65522
65523         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65524         strings correctly.
65525
65526 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65527
65528         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65529         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65530         * sysdeps/sh/strlen.S: Likewise.
65531
65532 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65533
65534         * sysdeps/unix/fork.S: Remove file.
65535         * sysdeps/unix/i386/fork.S: Likewise.
65536         * sysdeps/unix/sparc/fork.S: Likewise.
65537
65538         * sysdeps/unix/system.c: Remove file.
65539         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65540
65541         * sysdeps/unix/getegid.S: Remove file.
65542         * sysdeps/unix/geteuid.S: Likewise.
65543
65544 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65545
65546         * scripts/check-localplt.awk: New file.
65547         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65548         of diff.
65549         * scripts/data/localplt-generic.data: Add a comment.
65550
65551         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65552         NODE when __dir_mkfile failed.
65553         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65554         Reported by Ludovic Courtès <ludo@gnu.org>.
65555
65556 2012-04-24  Andreas Jaeger  <aj@suse.de>
65557
65558         * Makerules (common-clean): Also remove gen-as-const-headers
65559         files.
65560
65561 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65562
65563         * Makerules (native-compile): Do not change working directory for
65564         build.  Use $(OUTPUT_OPTION) in command.
65565         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65566
65567 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65568
65569         [BZ #13886]
65570         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65571         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65572         * math/libm-test.inc (floor_test): Add more tests.
65573         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65574
65575 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65576
65577         * sysdeps/unix/getdents.c: Remove file.
65578         * sysdeps/unix/sysv/getdents.c: Likewise.
65579         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65580
65581         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65582         sysdeps/unix/mman/syscalls.list.
65583         (mmap): Likewise.
65584         (mprotect): Likewise.
65585         (msync): Likewise.
65586         (munmap): Likewise.
65587         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65588         * sysdeps/unix/mman/syscalls.list: Remove.
65589         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65590
65591         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65592         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65593         * configure: Regenerated.
65594         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65595         $(libgcc_s_suffix).
65596         * config.make.in (libgcc_s_suffix): Remove variable.
65597
65598 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65599
65600         * sysdeps/unix/sysv/gethostname.c: Move to ...
65601         * sysdeps/posix/gethostname.c: ... here.
65602
65603         * sysdeps/unix/execve.S: Remove file.
65604
65605         * sysdeps/unix/_exit.S: Remove file.
65606
65607 2012-04-23  Andreas Jaeger  <aj@suse.de>
65608
65609         [BZ #13739]
65610         * manual/Makefile: Remove make dist support, there's no
65611         need for a stand-alone documentation tar ball.
65612         (TEXI2DVI): Define always, it's not in Makeconfig.
65613         (dist): Removed.
65614         (tar-it): Removed.
65615         (edition): Removed.
65616         (glibc-doc-$(edition).tar): Removed
65617         (%.Z): Removed.
65618         (%.gz): Removed.
65619         (%.uu): Removed.
65620         (ETAGS): Remove, it's in Makeconfig.
65621         (move-if-change): Remove, it's in Makeconfig.
65622
65623 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         [BZ #13970]
65626         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65627         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65628         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65629         (strtod_l, strtof_l, strtold_l): Remove __wur.
65630         It is not necessarily an error to ignore strtol's return value.
65631         One can reliably look at the stored endptr to decide whether
65632         the number had valid syntax.
65633
65634 2012-04-21  Andreas Jaeger  <aj@suse.de>
65635
65636         [BZ #13739]
65637         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65638
65639 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65640
65641         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65642         * sysdeps/unix/sysv/Versions: Remove file.
65643
65644 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65645
65646         [BZ #13927]
65647         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65648
65649 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65650
65651         [BZ #7064]
65652         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65653         version from __vm86.
65654
65655 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65656
65657         * sysdeps/unix/common/lxstat.c: Remove file.
65658         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65659
65660         * sysdeps/unix/sysv/Makefile: Remove file.
65661
65662         * sysdeps/unix/sysv/direct.h: Remove file.
65663
65664         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65665         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65666         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65667         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65668         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65669         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65670         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65671
65672         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65673
65674         * sysdeps/unix/xmknod.c: Remove file.
65675         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65676
65677         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65678
65679         * sysdeps/unix/sysv/i386/time.S: Remove file.
65680
65681         * sysdeps/unix/fxstat.c: Remove file.
65682         * sysdeps/unix/xstat.c: Likewise.
65683         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65684
65685         * sysdeps/unix/sysv/sigaction.c: Remove file.
65686
65687         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65688         (sysdep_headers): Remove variable.
65689         [termio.h not in sysdep_headers] (generated): Likewise.
65690         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65691         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65692         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65693         * sysdeps/unix/sysv/tcflow.c: Likewise.
65694         * sysdeps/unix/sysv/tcflush.c: Likewise.
65695         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65696         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65697         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65698         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65699         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65700
65701         * sysdeps/unix/siglist.c: Remove file.
65702
65703         * sysdeps/unix/getppid.S: Remove file.
65704
65705         * sysdeps/unix/mkdir.c: Remove file.
65706         * sysdeps/unix/rmdir.c: Likewise.
65707
65708 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65709
65710         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65711         ERR_MAX value.
65712         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65713         errlist-compat value.
65714
65715 2012-04-18  David S. Miller  <davem@davemloft.net>
65716
65717         * sysdeps/generic/memcopy.h (reg_char): Delete.
65718         * debug/strcat_chk.c: Use char, not reg_char.
65719         * debug/strcpy_chk.c: Likewise.
65720         * debug/strncat_chk.c: Likewise.
65721         * debug/strncpy_chk.c: Likewise.
65722         * string/memchr.c: Likewise.
65723         * string/memrchr.c: Likewise.
65724         * string/rawmemchr.c: Likewise.
65725         * string/strcat.c: Likewise.
65726         * string/strchr.c: Likewise.
65727         * string/strchrnul.c: Likewise.
65728         * string/strcmp.c: Likewise.
65729         * string/strcpy.c: Likewise.
65730         * string/strncat.c: Likewise.
65731         * string/strncmp.c: Likewise.
65732         * string/strncpy.c: Likewise.
65733
65734 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65735
65736         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65737         __builtin_memcopy is called when src and dest ranges are known to not
65738         overlap.
65739
65740 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65741
65742         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65743         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65744         fwd_align_merge macro call.
65745         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65746         bwd_align_merge macro call.
65747         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65748
65749 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65750
65751         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65752         bwd_align_merge macros.
65753         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65754         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65755         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65756
65757 2012-04-18  David S. Miller  <davem@davemloft.net>
65758
65759         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65760
65761 2012-04-18  Andreas Jaeger  <aj@suse.de>
65762
65763         [BZ# 6794]
65764         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65765         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65766         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65767
65768         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65769         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65770         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65771
65772         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65773         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65774         Adjust for changed ldbl-128 files.
65775
65776         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65777         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65778         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65779
65780 2012-04-17  David S. Miller  <davem@davemloft.net>
65781
65782         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65783
65784 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65785
65786         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65787         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65788         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65789         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65790         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65791         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65792
65793 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65794
65795         [BZ #6794]
65796         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65797         * math/libm-test.inc: Add ilogb errno and exception tests.
65798         * math/w_ilogb.c: New file: ilogb wrapper.
65799         * math/w_ilogbf.c: New file: ilogbf wrapper.
65800         * math/w_ilogbl.c: New file: ilogbl wrapper.
65801         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65802         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65803         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65804         exception being thrown with 0.0 as argument.
65805         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65806         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65807         exception being thrown with 0.0 as argument.
65808         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65809         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65810         exception being thrown with 0.0 as argument.
65811         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65812         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65813         exception being thrown with 0.0 as argument.
65814         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65815         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65816         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65817         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65818         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65819         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65820         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65821         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65822         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65823
65824 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65825
65826         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65827         with altivec.
65828
65829 2012-04-16  Marek Polacek  <polacek@redhat.com>
65830
65831         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65832
65833 2012-04-16  Marek Polacek  <polacek@redhat.com>
65834
65835         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65836         operands of fdivp instruction.
65837
65838 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65839
65840         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65841         * elf/tst-auditmod3b.c: Likewise.
65842         * elf/tst-auditmod4b.c: Likewise.
65843         * elf/tst-auditmod5b.c: Likewise.
65844         * elf/tst-auditmod6b.c: Likewise.
65845         * elf/tst-auditmod6c.c: Likewise.
65846         * elf/tst-auditmod7b.c: Likewise.
65847         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65848         * sysdeps/x86_64/preconfigure.in: Likewise.
65849         * sysdeps/x86_64/preconfigure: Regenerated.
65850
65851 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65852
65853         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65854         __ILP32__.
65855
65856 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65857
65858         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65859         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65860
65861 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65862
65863         [BZ #13973]
65864         * locale/iso-639.def: Fix gl language name. Spotted by
65865         Yaron Shahrabani.
65866
65867 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65868
65869         [BZ #2074]
65870         * libio/libio.h (__io_write_fn): Update comment.
65871
65872 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65873
65874         [BZ #2074]
65875         * stdio.texi (Hook Functions): The user provided writer function
65876         is not allowed to return -1.
65877
65878 2012-04-11  David S. Miller  <davem@davemloft.net>
65879
65880         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65881
65882 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65883
65884         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65885         Add a leading slash to rtkaio.
65886
65887 2012-04-11  Jim Meyering  <meyering@redhat.com>
65888
65889         [BZ #11959]
65890         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65891         It is not necessarily an error to ignore fwrite's return
65892         value.  One can reliably use ferror to test for errors after
65893         the fact.
65894
65895 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65896
65897         * bits/types.h (__snseconds_t): New type.
65898         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65899
65900         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65901         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65902         (__SNSECONDS_T_TYPE): Likewise.
65903         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65904         (__SNSECONDS_T_TYPE): Likewise.
65905         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65906         (__SNSECONDS_T_TYPE): Likewise.
65907
65908 2012-04-10  Andreas Jaeger  <aj@suse.de>
65909
65910         [BZ #2636]
65911         * manual/time.texi (Processor Time): Return type of times is
65912         elapsed real time since an arbitrary point in the past.
65913         (CPU Time): Move CLK_TCK from here...
65914         (Processor Time): ...to here.  Correct description.
65915         * manual/conf.texi (Constants for Sysconf): Correct description of
65916         _SC_CLK_TCK.
65917
65918 2012-04-10  David S. Miller  <davem@davemloft.net>
65919
65920         [BZ #13967]
65921         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65922         where the is a gap between DT_REL(A) and DT_JMPREL.
65923
65924 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65925
65926         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65927         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65928         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65929
65930 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65931
65932         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65933         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65934         (dl_main): Handle --inhibit-cache.
65935         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65936         _dl_inhibit_cache.
65937         * elf/dl-load.c (_dl_map_object): Use it.
65938         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65939
65940 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65941
65942         [BZ #13872]
65943         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65944         (__ieee754_powl): Saturate large exponents rather than testing for
65945         overflow of y*log2(x).
65946         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65947         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65948         exceptions.
65949
65950         [BZ #11521]
65951         * math/s_ctan.c: Include <float.h>.
65952         (__ctan): Avoid internal overflow or cancellation in calculating
65953         denominator.
65954         * math/s_ctanf.c: Likewise.
65955         * math/s_ctanl.c: Likewise.
65956         * math/s_ctanh.c: Likewise.
65957         * math/s_ctanhf.c: Likewise.
65958         * math/s_ctanhl.c: Likewise.
65959         * math/libm-test.inc (ctan_test): Add more tests.
65960         (ctanh_test): Likewise.
65961         * sysdeps/i386/fpu/libm-test-ulps: Update.
65962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65963
65964 2012-04-09  Andreas Jaeger  <aj@suse.de>
65965
65966         [BZ #6894]
65967         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65968         is an optional BSD extension.
65969
65970         [BZ #10254]
65971         * manual/stdio.texi (Opening Streams): Document additional fopen
65972         parameters.
65973
65974 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65975
65976         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65977         %eax without telling the compiler.
65978
65979 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65980
65981         [BZ # 13963]
65982         * manual/install.texi: Use sourceware.org.
65983
65984 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65985
65986         [BZ #13873]
65987         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65988         (__ieee754_pow): Generate overflow and underflow using huge*huge
65989         and tiny*tiny rather than just returning constant infinity or zero
65990         for large exponents.
65991         * math/libm-test.inc (pow_test): Require overflow exceptions for
65992         applicable cases of large exponents.
65993
65994         [BZ #706]
65995         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65996         (__ieee754_pow): Use iterative multiplication algorithm only for
65997         integer exponents with absolute value below 1024.  Check for odd
65998         integer exponents when using algorithm for real exponents.
65999         * math/libm-test.inc (pow_test): Add more tests.
66000         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
66001
66002 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
66003
66004         [BZ #13705]
66005         * math/libm-test.inc (exp_test): Do not allow overflow exception
66006         on underflow test.
66007
66008 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
66009
66010         [BZ #13705]
66011         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
66012         instead of __kernel_standard_f.
66013
66014 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
66015
66016         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
66017         * sysdeps/x86_64/memset_chk.S: Likewise.
66018
66019 2012-04-08  Andreas Jaeger  <aj@suse.de>
66020
66021         [BZ #10153]
66022         * manual/startup.texi (Environment Access): Describe return value
66023         for putenv and setenv.
66024
66025         [BZ #6895]
66026         * manual/filesys.texi (Directory Entries): Add description for
66027         DT_LNK.
66028
66029         [BZ #6890]
66030         * manual/filesys.texi (Directory Entries): Clarify that it's file
66031         system not operating system in the description of DT_UNKNOWN.
66032
66033         [BZ #6578]
66034         * manual/syslog.texi (closelog): Fix reference, it's openlog.
66035
66036 2012-04-08  Stephen Compall  <s11@member.fsf.org>
66037
66038         [BZ #6649]
66039         * manual/llio.texi (Opening and Closing Files): Add cross
66040         reference to explain mode argument.
66041
66042 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
66043
66044         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
66045         * sysdeps/x86_64/memset_chk.S: Likewise.
66046
66047 2012-04-07  David S. Miller  <davem@davemloft.net>
66048
66049         * elf/elf.h (R_SPARC_WDISP10): Define.
66050         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
66051         R_SPARC_SIZE32.
66052         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
66053         R_SPARC_SIZE64 and R_SPARC_H34.
66054
66055 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
66056
66057         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
66058         conditions and remove no longer applicable assertion.
66059
66060 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66061
66062         * bits/byteswap.h: Include <features.h>.
66063         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
66064         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
66065
66066 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66067
66068         * bits/byteswap.h (__bswap_16): Removed.
66069         Include <bits/byteswap-16.h> to get __bswap_16.
66070         * sysdeps/i386/bits/byteswap.h: Likewise.
66071         * sysdeps/s390/bits/byteswap.h: Likewise.
66072         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66073         * bits/byteswap-16.h: New file.
66074         * sysdeps/i386/bits/byteswap-16.h: Likewise.
66075         * sysdeps/s390/bits/byteswap-16.h: Likewise.
66076         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
66077         * string/Makefile (headers): Add bits/byteswap-16.h.
66078
66079 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
66080
66081         [BZ #13895]
66082         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
66083         extra indirection.
66084         * nss/Makefile (tests-static, tests): Add tst-nss-static.
66085         * nss/tst-nss-static.c: New.
66086
66087 2012-04-06  Robert Millan  <rmh@gnu.org>
66088
66089         [BZ #6486]
66090         * manual/llio.texi (File Position Primitive): lseek
66091         refers to WHENCE when it really means OFFSET.
66092
66093 2012-04-06  Andreas Jaeger  <aj@suse.de>
66094
66095         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
66096         strncmp declarations.
66097
66098         * abilist/libc.abilist: Add __poll and __ppoll.
66099
66100 2012-04-05  David S. Miller  <davem@davemloft.net>
66101
66102         * scripts/check-local-headers.sh: Accept a host triplet in the
66103         path matched by the exclude regexp.
66104
66105         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
66106         definition.
66107         * sysdeps/powerpc/powerpc32/dl-machine.h
66108         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
66109         * sysdeps/s390/s390-32/dl-machine.h
66110         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66111         * sysdeps/sparc/sparc32/dl-machine.h
66112         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66113         * sysdeps/sparc/sparc64/dl-machine.h
66114         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66115
66116         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
66117         lazy binding.
66118         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
66119         undefined symbol errors.
66120
66121         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
66122         DT_NEEDED entries.
66123
66124 2012-04-05  Michael Matz  <matz@suse.de>
66125
66126         [BZ #13592]
66127         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
66128
66129 2012-04-05  Andreas Jaeger  <aj@suse.de>
66130
66131         [BZ #13908]
66132         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
66133         comment.
66134
66135 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66136
66137         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
66138         which ROUND is no valid rounding mode.
66139
66140 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66141
66142         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
66143         read again.
66144         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
66145
66146 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66147
66148         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
66149         an exception using FPU order intentionally.
66150
66151 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66152
66153         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
66154         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
66155         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
66156         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
66157
66158 2012-04-05  Simon Josefsson  <simon@josefsson.org>
66159
66160         [BZ #12340]
66161         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
66162         EINVAL when BUFLEN is too smal.
66163
66164 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66165
66166         [BZ #13553]
66167         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
66168         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
66169
66170 2012-04-03  Andreas Jaeger  <aj@suse.de>
66171
66172         [BZ #13938]
66173         * manual/setjmp.texi (System V contexts): Fix sentence.
66174
66175         [BZ #13926]
66176         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
66177         New macro for this case.
66178         [!__GNUC__] (__bswap_64): New inline function for this case.
66179         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66180         * bits/byteswap.h: Likewise.
66181         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
66182         ull, guard with __GLIBC_HAVE_LONG_LONG.
66183
66184         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
66185         __GLIBC_HAVE_LONG_LONG.
66186
66187         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
66188         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
66189
66190 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
66191
66192         [BZ #13691]
66193         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
66194         inptr and inend, rather than using last_ch.
66195
66196 2012-04-02  David S. Miller  <davem@davemloft.net>
66197
66198         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
66199         * stdio-common/printf-parse.h (read_int): Change return type to
66200         'int', return -1 on INT_MAX overflow.
66201         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
66202         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
66203         overflows INT_MAX.  Check for overflow of in-format-string precision
66204         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
66205         SIZE_MAX not INT_MAX for integer overflow test.
66206         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
66207         skip the construct in the format string but do not record anything.
66208         * stdio-common/bug22.c: Adjust to test both width/prevision
66209         INT_MAX overflow as well as total length INT_MAX overflow.  Check
66210         explicitly for proper errno values.
66211
66212 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66213
66214         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
66215         CHAR_MAX.
66216         * string/test-strcmp.c [! WIDE]: Likewise.
66217         * time/tst-mktime2.c: Likewise for INT_MAX.
66218         * string/test-string.h: #include <sys/param.h> for MIN.
66219
66220         * csu/init-first.c (__libc_init_first): Call __ctype_init.
66221         * sysdeps/i386/init-first.c (init): Likewise.
66222         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
66223         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
66224         * sysdeps/sh/init-first.c (init): Likewise.
66225
66226 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
66227
66228         * po/ru.po: Update from translation team.
66229         * po/vi.po: Likewise.
66230
66231 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66232
66233         * resolv/nss_dns/dns-host.c: Merge copyright years.
66234
66235 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66236
66237         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
66238         Optimize memcpy with prefetch if
66239         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
66240         src, dst pointers have unequal 16 byte alignments.
66241
66242 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66243
66244         [BZ #13928]
66245         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
66246         from a CNAME entry and return the minimum ttl for the query.
66247         (gaih_getanswer_slice): Likewise.
66248
66249 2012-03-30  Jeff Law  <law@redhat.com>
66250
66251         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
66252         due to long keys.
66253         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
66254         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
66255
66256         * resolv/nss_dns/dns-host.c: Update copyright year.
66257
66258 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
66259
66260         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
66261         requests to save a system call.  Fix check that all bytes are sent.
66262
66263         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
66264         comments for sendmmsg.
66265
66266 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66267
66268         [BZ #13691]
66269         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
66270         with only 1 character between 0x0041 and 0x01b0.
66271         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
66272         * wcsmbs/tst-mbsnrtowcs.c: New file.
66273
66274 2012-03-29  David S. Miller  <davem@davemloft.net>
66275
66276         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
66277         small copies by hand.
66278
66279 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66280
66281         [BZ #13761]
66282         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
66283         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
66284         group memberships.
66285
66286 2012-03-28  David S. Miller  <davem@davemloft.net>
66287
66288         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
66289         that branches into memcpy.
66290         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
66291         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
66292         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
66293         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
66294         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
66295         bits.
66296         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
66297         implementation too.
66298         * sysdeps/sparc/mempcpy.S: New file.
66299
66300         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
66301         the IFUNC routine in the libc case.
66302         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
66303
66304         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
66305         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
66306         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
66307         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
66308         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
66309         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
66310         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
66311         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
66312
66313         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
66314         loop to 256 bytes instead of 64 bytes and fix test signedness.
66315
66316         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
66317         * sysdeps/sparc/sparc32/Makefile: rather than here...
66318         * sysdeps/sparc/sparc64/Makefile: and here.
66319
66320 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
66321
66322         * malloc/mallocbug.c: Avoid warnings about unused variables.
66323
66324 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66325
66326         [BZ #13760]
66327         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
66328         in the right place. Discard and retry query if response is
66329         larger than input buffer size.
66330
66331 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
66332
66333         [BZ #369]
66334         [BZ #2678]
66335         [BZ #3866]
66336         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
66337         x for large integer exponent.
66338         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
66339         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
66340         sign of result as needed afterwards.
66341         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
66342         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
66343         result for underflowing pow the same as for overflow.
66344         (__kernel_standard_l): Handle powl overflow and underflow here
66345         rather than calling __kernel_standard.
66346         * math/libm-test.inc (pow_test): Add more tests.
66347
66348         [BZ #3868]
66349         [BZ #13879]
66350         [BZ #13910]
66351         [BZ #13911]
66352         [BZ #13912]
66353         [BZ #13913]
66354         [BZ #13915]
66355         [BZ #13916]
66356         [BZ #13917]
66357         [BZ #13918]
66358         [BZ #13919]
66359         [BZ #13920]
66360         [BZ #13921]
66361         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
66362         * sysdeps/ieee754/k_standard.c: Include <float.h>.
66363         (__kernel_standard_l): New function.
66364         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66365         __kernel_standard.
66366         * math/w_acosl.c (__acosl): Likewise.
66367         * math/w_asinl.c (__asinl): Likewise.
66368         * math/w_atan2l.c (__atan2l): Likewise.
66369         * math/w_atanhl.c (__atanhl): Likewise.
66370         * math/w_coshl.c (__coshl): Likewise.
66371         * math/w_exp10l.c (__exp10l): Likewise.
66372         * math/w_exp2l.c (__exp2l): Likewise.
66373         * math/w_fmodl.c (__fmodl): Likewise.
66374         * math/w_hypotl.c (__hypotl): Likewise.
66375         * math/w_j0l.c (__j0l, __y0l): Likewise.
66376         * math/w_j1l.c (__j1l, __y1l): Likewise.
66377         * math/w_jnl.c (__jnl, __ynl): Likewise.
66378         * math/w_lgammal.c (__lgammal): Likewise.
66379         * math/w_log10l.c (__log10l): Likewise.
66380         * math/w_log2l.c (__log2l): Likewise.
66381         * math/w_logl.c (__logl): Likewise.
66382         * math/w_powl.c (__powl): Likewise.
66383         * math/w_remainderl.c (__remainderl): Likewise.
66384         * math/w_scalbl.c (sysv_scalbl): Likewise.
66385         * math/w_sinhl.c (__sinhl): Likewise.
66386         * math/w_sqrtl.c (__sqrtl): Likewise.
66387         * math/w_tgammal.c (__tgammal): Likewise.
66388         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66389         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66390         * math/libm-test.inc (acos_test): Add more tests.
66391         (acosh_test): Likewise.
66392         (asin_test): Likewise.
66393         (atanh_test): Likewise.
66394         (exp_test): Likewise.
66395         (exp10_test): Likewise.
66396         (exp2_test): Likewise.
66397         (expm1_test): Likewise.
66398         (lgamma_test): Likewise.
66399         (log_test): Likewise.
66400         (log10_test): Likewise.
66401         (log1p_test): Likewise.
66402         (log2_test): Likewise.
66403         (pow_test): Do not allow some spurious overflow exceptions.
66404         (sqrt_test): Add more tests.
66405         (tgamma_test): Likewise.
66406         (y0_test): Likewise.
66407         (y1_test): Likewise.
66408         (yn_test): Likewise.
66409
66410 2012-03-27  Anton Blanchard  <anton@samba.org>
66411
66412         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66413         MAP_HUGETLB.
66414         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66415         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66416         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66417
66418 2012-03-27  David S. Miller  <davem@davemloft.net>
66419
66420         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66421
66422         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66423         have-as-vis3 check.
66424
66425 2012-03-27  Andreas Jaeger  <aj@suse.de>
66426
66427         * sysdeps/x86_64/elf/configure.in: Moved to ...
66428         * sysdeps/x86_64/configure.in: ... here.
66429         * sysdeps/x86_64/elf/start.S: Moved to ...
66430         * sysdeps/x86_64/start.S: ... here.
66431         * sysdeps/x86_64/elf/configure: Delete.
66432
66433         * sysdeps/x86_64/configure.in: Merge contents from
66434         sysdeps/i386/configure.in (without i686 check).
66435
66436         * sysdeps/i386/elf/Versions: Merge into ...
66437         * sysdeps/i386/Versions: ... this.
66438         * sysdeps/i386/elf/Versions: Delete file.
66439         * sysdeps/i386/elf/start.S: Moved to ...
66440         * sysdeps/i386/start.S: ...here.
66441         * sysdeps/i386/elf/configure.in: Merge into...
66442         * sysdeps/i386/configure.in: ...here.
66443         * sysdeps/i386/elf/configure.in: Delete file.
66444         * sysdeps/i386/elf/configure: Delete file.
66445
66446         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66447         * debug/backtracesyms.c: ... here.
66448         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66449         * debug/backtracesymsfd.c: ... here.
66450         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66451         * sysdeps/generic/ifunc-sel.h: ... here.
66452
66453         * sysdeps/unix/i386/start.c: Delete file.
66454         * sysdeps/unix/sparc/start.c: Delete file.
66455         * sysdeps/unix/start.c: Delete file.
66456
66457         * sysdeps/sh/elf/configure.in: Moved to ...
66458         * sysdeps/sh/configure.in: ... here.
66459         * sysdeps/sh/elf/start.S: Moved to ...
66460         * sysdeps/sh/start.S: ... here.
66461         * sysdeps/sh/elf/configure: Delete file.
66462
66463         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66464         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66465         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66466         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66467         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66468         * sysdeps/powerpc/powerpc64/start.S: here.
66469         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66470         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66471         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66472         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66473         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66474
66475         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66476         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66477         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66478         * sysdeps/powerpc/powerpc32/start.S: ... here.
66479         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66480         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66481         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66482
66483         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66484         * sysdeps/powerpc/ifunc-sel.h: ... here.
66485         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66486         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66487
66488         * sysdeps/sparc/elf/configure.in: Moved to ...
66489         * sysdeps/sparc/configure.in: ... here.
66490         * sysdeps/sparc/elf/configure: Delete file.
66491         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66492         * sysdeps/sparc/sparc32/start.S: ... here.
66493         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66494         * sysdeps/sparc/sparc64/start.S: ... here.
66495         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66496         * sysdeps/sparc/sparc32/Makefile: ... this.
66497         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66498         * sysdeps/sparc/sparc64/Makefile: ... this.
66499
66500         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66501         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66502         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66503         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66504         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66505         * sysdeps/s390/s390-32/setjmp.S: ... here.
66506         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66507         * sysdeps/s390/s390-32/configure.in: ... here.
66508         * sysdeps/s390/s390-32/elf/configure: Delete file.
66509         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66510         * sysdeps/s390/s390-32/start.S: ... here.
66511
66512         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66513         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66514         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66515         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66516         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66517         * sysdeps/s390/s390-64/setjmp.S: ... here.
66518         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66519         * sysdeps/s390/s390-64/configure.in: ... here
66520         * sysdeps/s390/s390-64/elf/configure: Delete file.
66521         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66522         * sysdeps/s390/s390-64/start.S: ... here.
66523         * sysdeps/s390/s390-64/elf/configure: Delete.
66524
66525         * configure.in: Remove support for elf directories in sysdeps.
66526
66527         * configure: Regenerated.
66528         * sysdeps/i386/configure: Regenerated.
66529         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66530         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66531         * sysdeps/s390/s390-32/configure: Regenerated.
66532         * sysdeps/s390/s390-64/configure: Regenerated.
66533         * sysdeps/sh/configure: Regenerated.
66534         * sysdeps/sparc/configure: Regenerated.
66535         * sysdeps/x86_64/configure: Regenerated.
66536
66537 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66538
66539         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66540
66541         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66542         denormal result into account.
66543
66544 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66545
66546         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66547         Reported by Allan McRae <allan@archlinux.org>.
66548
66549 2012-03-23  Jeff Law  <law@redhat.com>
66550
66551         * nss/getnssent.c (__nss_getent): Fix typo.
66552
66553 2012-03-23  David S. Miller  <davem@davemloft.net>
66554
66555         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66556
66557 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66558
66559         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66560         to pad to uint64_t for each field.
66561         (dl_tls_index): Replace unsigned long with uint64_t.
66562
66563 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66564         Paul Pluzhnikov  <ppluzhnikov@google.com>
66565
66566         [BZ #6528]
66567         * grp/Makefile (otherlibs): Don't set it.
66568         * inet/Makefile (otherlibs): Likewise.
66569         * login/Makefile (otherlibs): Likewise.
66570         * nscd/Makefile (otherlibs): Likewise.
66571         * posix/Makefile (otherlibs): Likewise.
66572         * pwd/Makefile (otherlibs): Likewise.
66573         * rt/Makefile (otherlibs): Likewise.
66574         * sunrpc/Makefile (otherlibs): Likewise.
66575         * nss/Makefile (otherlibs): Likewise.
66576         Add libnss_files to routines and static-only-routines.
66577         ($(objpfx)getent): Remove rule.
66578         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66579         static-only-routines.
66580
66581 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66582
66583         [BZ #13892]
66584         * math/s_cexp.c: Include <float.h>.
66585         (__cexp): Handle exp result overflowing not necessarily
66586         overflowing both real and imaginary parts of result.
66587         * math/s_cexpf.c: Likewise.
66588         * math/s_cexpl.c: Likewise.
66589         * math/libm-test.inc (cexp_test): Add more tests.
66590         * sysdeps/i386/fpu/libm-test-ulps: Update.
66591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66592
66593 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66594
66595         * include/link.h (ELFW): New macro.
66596         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66597         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66598
66599 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66600
66601         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66602         with uint64_t.
66603
66604 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66605
66606         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66607         declaration.
66608         (struct La_x32_retval): Likewise.
66609
66610 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66611
66612         * sysdeps/x86_64/preconfigure.in: New file.
66613         * sysdeps/x86_64/preconfigure: New generated file.
66614
66615 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66616
66617         [BZ #13824]
66618         * math/e_exp2l.c: Include <float.h>.
66619         (__ieee754_exp2l): Handle overflow and underflow cases
66620         separately.  Only pass fractional part of argument to
66621         __ieee754_expl.
66622         * math/libm-test.inc (exp2_test): Add more tests.
66623
66624         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66625         negating x to take absolute value.
66626         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66627         Likewise.
66628         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66629         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66630         Likewise.
66631         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66632         computing low part if x was negated.
66633         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66634
66635 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66636
66637         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66638         la_x32_gnu_pltexit.
66639         (pltexit): Cast int_retval to ptrdiff_t.
66640         * elf/tst-auditmod3b.c: Likewise.
66641         * elf/tst-auditmod4b.c: Likewise.
66642         * elf/tst-auditmod5b.c: Likewise.
66643         * elf/tst-auditmod6b.c: Likewise.
66644         * elf/tst-auditmod6c.c: Likewise.
66645         * elf/tst-auditmod7b.c: Likewise.
66646
66647         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66648         and x32_gnu_pltexit.
66649
66650         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66651         __ELF_NATIVE_CLASS.
66652         (La_x32_regs): New macro.
66653         (La_x32_retval): Likewise.
66654         (la_x32_gnu_pltenter): New function prototype.
66655         (la_x32_gnu_pltexit): Likewise.
66656
66657 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66658
66659         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66660         exponent.
66661
66662         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66663
66664         * configure.in (libc_cv_cc_nofma): Check for option to disable
66665         generation of FMA instructions.
66666         * configure: Regenerate.
66667         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66668         * sysdeps/ieee754/dbl-64/Makefile: New file.
66669         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66670         Remove brandred-fma4.
66671         (CFLAGS-brandred-fma4.c): Remove.
66672         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66673         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66674         define.
66675         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66676         define.
66677
66678 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66679
66680         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66681         LLONG_MAX != LONG_MAX.
66682         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66683         (_fitoa_word): Likewise.
66684         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66685         LLONG_MAX != LONG_MAX.
66686         * stdio-common/_itowa.h: Include <_itoa.h>.
66687         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66688         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66689         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66690         only if not defined.
66691         (_ITOA_WORD_TYPE): Likewise.
66692         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66693         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66694
66695 2012-03-21  David S. Miller  <davem@davemloft.net>
66696
66697         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66698
66699 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66700
66701         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66702         of x86_64 when setting libc_cv_slibdir, libdir and
66703         libc_cv_localedir.
66704         * sysdeps/unix/sysv/linux/configure: Regenerated.
66705
66706 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66707
66708         * manual/lang.texi (Old Varargs): Remove section.
66709         (How Variadic): Update menu.
66710         (va_start): Do not mention varargs.h.
66711
66712 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66713             Joseph Myers  <joseph@codesourcery.com>
66714
66715         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66716         link test.
66717         * configure: Regenerated.
66718
66719 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66720
66721         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66722         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66723         conformtest.pl
66724
66725 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66726
66727         * NOTES: Remove.
66728         * Makefile (files-for-dist): Remove NOTES.
66729         (NOTES): Remove rule.
66730         * README: Don't refer to NOTES.
66731         * manual/creature.texi: Don't include macros.texi.
66732         * manual/intro.texi (creature.texi): Remove comment referring to
66733         NOTES.
66734
66735         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66736         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66737         * configure: Regenerated.
66738         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66739         LIBC_TRY_CC_OPTION.
66740         (libc_cv_as_i686): Likewise.
66741         (libc_cv_cc_avx): Likewise.
66742         (libc_cv_cc_sse2avx): Likewise.
66743         (libc_cv_cc_fma4): Likewise.
66744         (libc_cv_cc_novzeroupper): Likewise.
66745         * sysdeps/i386/configure: Regenerated.
66746
66747         [BZ #13883]
66748         * sysdeps/i386/fpu/s_cexp.S: Remove.
66749         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66750         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66751         * math/libm-test.inc (cexp_test): Add more tests.
66752         * sysdeps/i386/fpu/libm-test-ulps: Update.
66753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66754
66755 2012-03-21  Allan McRae  <allan@archlinux.org>
66756
66757         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66758
66759 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66760
66761         [BZ #13871]
66762         * math/w_exp2.c: Do not include <float.h>.
66763         (o_threshold, u_threshold): Remove.
66764         (__exp2): Calculate result before checking finiteness and calling
66765         __kernel_standard.
66766         * math/w_exp2f.c: Likewise.
66767         * math/w_exp2l.c: Likewise.
66768         * math/libm-test.inc (exp2_test): Require overflow exception for
66769         1e6 input.
66770
66771         [BZ #3866]
66772         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66773         range of signed 64-bit integers before using fistpll.  Remove
66774         checks for whether integers fit in mantissa bits.
66775         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66776         the range of signed 32-bit integers before using fistpl.  Remove
66777         checks for whether integers fit in mantissa bits.
66778         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66779         (__ieee754_powl): Test for y outside the range of signed 64-bit
66780         integers before using fistpll.  Reduce 64-bit values to 63-bit
66781         ones as needed.
66782         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66783         divide-by-zero is raised for zero to large negative powers.
66784         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66785         (__ieee754_powl): Test for y outside the range of signed 64-bit
66786         integers before using fistpll.  Reduce 64-bit values to 63-bit
66787         ones as needed.
66788         * math/libm-test.inc (pow_test): Add more tests.
66789
66790 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66791
66792         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66793         <stdio-common/_itoa.h>.
66794         * debug/segfault.c: Likewise.
66795         * elf/dl-cache.c: Likewise.
66796         * elf/dl-minimal.c: Likewise.
66797         * elf/dl-misc.c: Likewise.
66798         * elf/dl-sysdep.c: Likewise.
66799         * elf/dl-version.c: Likewise.
66800         * elf/rtld.c: Likewise.
66801         * hurd/hurdsock.c: Likewise.
66802         * hurd/lookup-retry.c: Likewise.
66803         * malloc/malloc.c: Likewise.
66804         * malloc/mtrace.c: Likewise.
66805         * nscd/nscd_getgr_r.c: Likewise.
66806         * nscd/nscd_getpw_r.c: Likewise.
66807         * nscd/nscd_getserv_r.c: Likewise.
66808         * posix/getopt_init.c: Likewise.
66809         * posix/wordexp.c: Likewise.
66810         * stdio-common/_itoa.c: Likewise.
66811         * stdio-common/printf_fphex.c: Likewise.
66812         * stdio-common/vfprintf.c: Likewise.
66813         * string/_strerror.c: Likewise.
66814         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66815         * sysdeps/i386/i686/hp-timing.h: Likewise.
66816         * sysdeps/mach/_strerror.c: Likewise.
66817         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66818         * sysdeps/mach/hurd/sethostid.c: Likewise.
66819         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66820         * sysdeps/mach/xpg-strerror.c: Likewise.
66821         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66822         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66823         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66824         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66825         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66826         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66827         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66828         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66829         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66830         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66831         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66832         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66833         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66834         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66835         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66836         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66837         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66838         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66839         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66840         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66841         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66842
66843         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66844
66845         * stdio-common/_itoa.h: Moved to ...
66846         * sysdeps/generic/_itoa.h: Here.
66847
66848         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66849
66850         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66851         instead of "_itoa.h" and "_itowa.h".
66852         * stdio-common/vfprintf.: Likewise.
66853
66854 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66855
66856         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66857         <bits/wordsize.h>.
66858         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66859         (__signbit): Likwise.
66860         (llrintf): Likwise.
66861         (llrint): Likwise.
66862
66863 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66864
66865         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66866         __WORDSIZE != 64.
66867
66868 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66869
66870         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66871         OVERFLOW_EXCEPTION_OK.
66872         * math/libm-test.inc ("Philosophy"): Update comment about
66873         exception testing.
66874         (OVERFLOW_EXCEPTION): Define.
66875         (OVERFLOW_EXCEPTION_OK): Likewise.
66876         (INVALID_EXCEPTION_OK): Renumber.
66877         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66878         (IGNORE_ZERO_INF_SIGN): Likewise.
66879         (test_exceptions): Handle FE_OVERFLOW.
66880         (exp10_test): Expect overflow exceptions.
66881         (exp2_test): Likewise.
66882         (expm1_test): Likewise.
66883         (nextafter_test): Likewise.
66884         (pow_test): Likewise.
66885         (scalbn_test): Likewise.
66886         (scalbln_test): Likewise.
66887
66888 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66889
66890         * sysdeps/x86_64/bits/atomic.h
66891         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66892         64bit integer.
66893         (atomic_exchange_acq): Likewise.
66894         (__arch_exchange_and_add_body): Likewise.
66895         (__arch_add_body): Likewise.
66896         (atomic_add_negative): Likewise.
66897         (atomic_add_zero): Likewise.
66898
66899 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66900
66901         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66902         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66903
66904 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66905
66906         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66907         Check __x86_64__ instead of __WORDSIZE.
66908
66909 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66910
66911         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66912
66913 2012-03-19  David S. Miller  <davem@davemloft.net>
66914
66915         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66916
66917         * sysdeps/sparc/fpu/fenv_private.h: New file.
66918         * sysdeps/sparc/fpu/math_private.h: Use it.
66919         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66920         Remove.
66921         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66922         (libc_feholdexcept_setroundl): Remove.
66923         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66924         Remove.
66925         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66926         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66927
66928 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66929
66930         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66931         int64_t instead of long int.
66932         (INSERT_WORDS64): Likwise.
66933
66934 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66935
66936         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66937         _Unwind_GetCFA return to _Unwind_Ptr first.
66938
66939 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66940
66941         [BZ #13629]
66942         * math/s_clog.c: Include <float.h>.
66943         (__clog): Scale large or subnormal inputs.
66944         * math/s_clogf.c: Likewise.
66945         * math/s_clogl.c: Likewise.
66946         * math/s_clog10.c: Include <float.h>.
66947         (M_LOG10_2): Define.
66948         (__clog10): Scale large or subnormal inputs.
66949         * math/s_clog10f.c: Likewise.
66950         * math/s_clog10l.c: Likewise.
66951         * math/libm-test.inc (clog_test): Add more tests.
66952         (clog10_test): Likewise.
66953         * sysdeps/i386/fpu/libm-test-ulps: Update.
66954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66955
66956         [BZ #11451]
66957         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66958         x and y.
66959         * math/libm-test.inc (atan2_test): Add another test.
66960
66961         * Makerules (common-objdir-compile): Remove.
66962         * sysdeps/unix/Makefile (config-generated): Do not add
66963         $(unix-generated) to variable.
66964         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66965         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66966         Remove rule.
66967         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66968         Likewise.
66969         [generic bits/local_lim.h] (before-compile): Do not append to
66970         variable.
66971         [generic bits/local_lim.h] (common-generated): Likewise.
66972         [generic sys/param.h] (before-compile): Do not append to variable.
66973         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66974         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66975         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66976         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66977         include.
66978         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66979         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66980         [generic sys/param.h] ($(addprefix
66981         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66982         [generic sys/param.h] (common-generated): Do not append to
66983         variable.
66984         [generic sys/param.h] (sysdep_headers): Likewise.
66985         [generic bits/errno.h] (before-compile): Do not append to
66986         variable.
66987         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66988         rule.
66989         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66990         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66991         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66992         [generic bits/errno.h] (common-generated): Do not append to
66993         variable.
66994         [generic bits/ioctls.h] (before-compile): Do not append to
66995         variable.
66996         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66997         rule.
66998         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66999         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
67000         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
67001         rule.
67002         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
67003         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
67004         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
67005         [generic bits/ioctls.h] (common-generated): Do not append to
67006         variable.
67007         [generic sys/syscall.h] (syscall.h): Remove variable.
67008         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
67009         rule.
67010         [generic sys/syscall.h] (before-compile): Do not append to
67011         variable.
67012         [generic sys/syscall.h] (common-generated): Likewise.
67013         * sysdeps/unix/errnos-tmpl.c: Remove file.
67014         * sysdeps/unix/errnos.awk: Likewise.
67015         * sysdeps/unix/ioctls-tmpl.c: Likewise.
67016         * sysdeps/unix/ioctls.awk: Likewise.
67017         * sysdeps/unix/mk-local_lim.c: Likewise.
67018         * sysdeps/unix/snarf-ioctls: Likewise.
67019
67020 2012-03-19  Richard Henderson  <rth@twiddle.net>
67021
67022         * sysdeps/i386/fpu/fenv_private.h: New file.
67023         * sysdeps/i386/fpu/math_private.h: Use it.
67024         (math_opt_barrier, math_force_eval): Remove.
67025         (libc_feholdexcept_setround_53bit): Remove.
67026         (libc_feupdateenv_53bit): Remove.
67027         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67028         (math_opt_barrier, math_force_eval): Remove.
67029         (libc_feholdexcept): Remove.
67030         (libc_feholdexcept_setround): Remove.
67031         (libc_fetestexcept, libc_fesetenv): Remove.
67032         (libc_feupdateenv_test): Remove.
67033         (libc_feupdateenv, libc_feholdsetround): Remove.
67034         (libc_feresetround): Remove.
67035
67036         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
67037         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
67038
67039         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
67040         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
67041         (libc_feupdateenv_testl): New.
67042         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
67043         (libc_feupdateenv_testf): New.
67044         (libc_feupdateenv): Use libc_feupdateenv_test.
67045         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
67046         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
67047
67048         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
67049         (libc_feholdsetroundf, libc_feholdsetroundl): New.
67050         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
67051         (libc_feresetround_noex): New.
67052         (libc_feresetround_noexf): New.
67053         (libc_feresetround_noexl): New.
67054         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
67055         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
67056         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
67057         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
67058         SET_RESTORE_ROUND.
67059         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
67060         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
67061         (__cos): Likewise.
67062         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
67063         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
67064         SET_RESTORE_ROUND_NOEX.
67065         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
67066         SET_RESTORE_ROUND_NOEXF.
67067         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
67068         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
67069         (libc_feholdsetroundf): New.
67070         (libc_feresetround, libc_feresetroundf): New.
67071
67072         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
67073         (libc_feholdexcept_setround_53bit): Convert from macro to function.
67074         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
67075
67076         * sysdeps/generic/math_private.h: Include <fenv.h>.
67077         (default_libc_feholdexcept): New.
67078         (default_libc_feholdexcept_setround): New.
67079         (default_libc_fesetenv, default_libc_feupdateenv): New.
67080         (libc_feholdexcept): Only define if undefined.
67081         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
67082         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
67083         (libc_feholdexcept_setroundl): Likewise.
67084         (libc_feholdexcept_setround_53bit): Likewise.
67085         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
67086         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
67087         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
67088         (libc_feupdateenv_53bit): Likewise.
67089         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
67090         (libc_feholdexcept): Convert from macro to inline function.
67091         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
67092         (libc_fesetenv, libc_feupdateenv): Likewise.
67093
67094         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
67095         not previously defined.
67096         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
67097         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
67098         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
67099         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
67100         * sysdeps/ieee754/flt-32/math_private.h: New file.
67101         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
67102         math_private.h below SET_FLOAT_WORD.
67103         (__isnan, __isinf_ns, __finite): Remove.
67104         (__isnanf, __isinf_nsf, __finitef): Remove.
67105
67106 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
67107
67108         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67109
67110 2012-03-17  David S. Miller  <davem@davemloft.net>
67111
67112         [BZ #6471]
67113         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
67114         for 2.16.
67115
67116 2012-03-16  David S. Miller  <davem@davemloft.net>
67117
67118         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
67119         warnings.
67120
67121         [BZ #6471]
67122         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
67123         properly.
67124         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
67125         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
67126         sysdep_routines when subdir is sysvipc.
67127         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
67128         __getshmlba helper.
67129
67130         * sysdeps/sparc/fpu/libm-test/ulps: Update.
67131
67132 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67133
67134         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
67135         [__LP64__].
67136
67137 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67138
67139         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
67140         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
67141         (__lround): Renamed to ...
67142         (__llround): This.  Replace long int with long long int.
67143         Define lround functions as aliases of llround functions.
67144         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
67145
67146 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67147
67148         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
67149         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
67150         adresses to uintptr_t.  Replace "long int" and "unsigned long
67151         int" with "greg_t" on va_arg.
67152
67153 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67154
67155         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
67156         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
67157
67158         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
67159         Move e_machine check before EI_CLASS check.  Handle x32
67160         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
67161         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
67162         SKIP_EM_IA_64 and include
67163         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
67164
67165         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
67166         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
67167         (add_system_dir): New macro.
67168
67169         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
67170         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
67171
67172 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67173
67174         [BZ #2551]
67175         [BZ #2552]
67176         [BZ #2553]
67177         [BZ #2554]
67178         [BZ #2562]
67179         [BZ #2563]
67180         [BZ #2565]
67181         [BZ #2566]
67182         [BZ #2576]
67183         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
67184         (y0): Likewise.
67185         * math/w_j0f.c (j0f): Likewise.
67186         (y0f): Likewise.
67187         * math/w_j0l.c (__j0l): Likewise.
67188         (__y0l): Likewise.
67189         * math/w_j1.c (j1): Likewise.
67190         (y1): Likewise.
67191         * math/w_j1f.c (j1f): Likewise.
67192         (y1f): Likewise.
67193         * math/w_j1l.c (__j1l): Likewise.
67194         (__y1l): Likewise.
67195         * math/w_jn.c (jn): Likewise.
67196         (yn): Likewise.
67197         * math/w_jnf.c (jnf): Likewise.
67198         (ynf): Likewise.
67199         * math/w_jnl.c (__jnl): Likewise.
67200         (__ynl): Likewise.
67201         * math/libm-test.inc (j0_test): Add more tests.
67202         (j1_test): Likewise.
67203         (jn_test): Likewise.  Add trailing semicolon to existing test.
67204         (y0_test): Likewise.
67205         (y1_test): Likewise.
67206         * sysdeps/i386/fpu/libm-test-ulps: Update.
67207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67208
67209         [BZ #13851]
67210         [BZ #13854]
67211         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
67212         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
67213         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
67214         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
67215         (__tanl): Set errno for infinite argument.
67216         * sysdeps/i386/fpu/mptan.c: Remove.
67217         * sysdeps/i386/fpu/s_tan.S: Likewise.
67218         * sysdeps/i386/fpu/s_tanl.S: Likewise.
67219         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
67220         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
67221         * math/libm-test.inc (tan_test): Add more tests and enable more
67222         tests for double and long double.
67223         * sysdeps/i386/fpu/libm-test-ulps: Update.
67224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67225
67226 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
67227
67228         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
67229         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
67230
67231 2012-03-16  Roland McGrath  <roland@hack.frob.com>
67232
67233         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
67234         * configure.in: Use it for both main tree and add-ons.
67235         * configure: Regenerated.
67236
67237 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67238
67239         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
67240
67241 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67242
67243         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
67244         in comment.
67245
67246         [BZ #13851]
67247         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
67248         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
67249         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
67250         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
67251         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
67252         infinite argument.
67253         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
67254         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
67255         != 0 for prec == 2.
67256         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
67257         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
67258         * sysdeps/i386/fpu/s_cosl.S: Likewise.
67259         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
67260         * sysdeps/i386/fpu/s_sinl.S: Likewise.
67261         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
67262         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
67263         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
67264         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
67265         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
67266         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
67267         * math/libm-test.inc (cos_test): Add more tests and enable more
67268         tests for long double.
67269         (sin_test): Likewise.
67270         (sincos_test): Likewise.
67271         * sysdeps/i386/fpu/libm-test-ulps: Update.
67272         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67273
67274 2012-03-16  David S. Miller  <davem@davemloft.net>
67275
67276         * sysdeps/sparc/fpu/math_private.h: New file.
67277
67278 2012-03-15  David S. Miller  <davem@davemloft.net>
67279
67280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
67281         file.
67282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
67283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
67284         file.
67285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
67286         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
67287         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
67288         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
67289         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
67290         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
67291         sysdep routines.
67292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67293
67294         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
67295         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
67296
67297         * sysdeps/sparc/sparc-ifunc.h: New file.
67298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
67299         sparc-ifunc.h
67300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
67302         Likewise.
67303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
67304         Likewise.
67305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
67306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
67307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67309         Likewise.
67310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
67311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
67312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
67313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
67314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
67315         Likewise.
67316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
67317         Likewise.
67318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
67319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
67320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
67321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
67322         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67323         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67324         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
67325         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
67326         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67327         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67328         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
67329         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
67330         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
67331         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
67332         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
67333         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
67334         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
67335         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
67336         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
67337         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
67338         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
67339         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
67340         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
67341         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
67342
67343 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67344
67345         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
67346         scaling.
67347         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67348
67349 2012-03-15  Andreas Jaeger  <aj@suse.de>
67350
67351         [BZ #13852]
67352         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
67353         ieee754/flt-32 implementation for sin, cos and sincos.
67354         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
67355         * sysdeps/i386/fpu/s_cosf.S: Likewise.
67356         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
67357         * sysdeps/i386/fpu/s_sinf.S: Likewise.
67358         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
67359         ieee754/flt-32 implementation for tan.
67360
67361         * math/libm-test.inc (cos_test): Enable some large input tests for
67362         float as well
67363         (sin_test): Likewise.
67364         (sincos_test): Likewise.
67365         (tan_test): Add tests for large input.
67366
67367         * sysdeps/i386/fpu/libm-test-ulps: Update.
67368
67369 2012-03-15  Andreas Jaeger  <aj@suse.de>
67370
67371         [BZ #13658]
67372         * math/libm-test.inc (cos_test): Add more test cases.
67373         (sin_test): Likewise.
67374         (sincos_test): Likewise.
67375
67376 2012-03-15  Andreas Jaeger  <aj@suse.de>
67377
67378         [BZ #13837]
67379         * math/libm-test.inc (cos_test): Add a test case for large input
67380         value.
67381         (sin_test): Likewise.
67382         (sincos_test): Likewise.
67383
67384 2012-03-15  Andreas Jaeger  <aj@suse.de>
67385             Joseph Myers  <joseph@codesourcery.com>
67386
67387         [BZ #13658]
67388         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67389         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67390         * sysdeps/i386/fpu/branred.c: Likewise.
67391         * sysdeps/i386/fpu/dosincos.c: Likewise.
67392         * sysdeps/i386/fpu/mpa.c: Likewise.
67393         * sysdeps/i386/fpu/s_cos.S: Likewise.
67394         * sysdeps/i386/fpu/s_sin.S: Likewise.
67395         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67396         * sysdeps/i386/fpu/sincos32.c: Likewise.
67397
67398         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67399         Define.
67400         (libc_feupdateenv_53bit): Define.
67401         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67402         Define.
67403         (libc_feupdateenv_53bit): Define.
67404
67405         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67406         53 bit (without extend i386 double precision).
67407
67408         * math/libm-test.inc (sincos_test): Add tests for large input.
67409         (sin): Likewise.
67410         (cos): Likewise.
67411
67412         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67413
67414 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67415
67416         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67417
67418 2012-03-15  David S. Miller  <davem@davemloft.net>
67419
67420         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67421         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67422         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67423         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67424         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67425         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67428         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67429         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67430         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67431         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67432         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67433         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67435         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67436         file.
67437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67439         file.
67440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67442         file.
67443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67445         file.
67446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67447         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67448         fmin/fmax sysdep routines.
67449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67450
67451 2012-03-14  David S. Miller  <davem@davemloft.net>
67452
67453         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67454         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67455         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67456         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67457         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67458         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67459         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67460         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67461         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67462         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67463         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67464         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67465         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67466         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67467         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67468         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67469         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67470         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67471         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67472         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67473         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67474         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67475         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67476         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67477         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67478         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67479         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67480         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67481         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67482         routines.
67483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67484         file.
67485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67487         file.
67488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67490         file.
67491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67493         file.
67494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67496         file.
67497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67499         file.
67500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67501         file.
67502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67503         file.
67504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67505         file.
67506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67507         New file.
67508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67509         file.
67510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67511         file.
67512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67514         file.
67515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67517         file.
67518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67520         file.
67521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67523         VIS3 routines.
67524
67525         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67526         New file.
67527
67528         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67529
67530         * sysdeps/sparc/configure.in: New file.
67531         * sysdeps/sparc/configure: Generate.
67532         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67533         * configure: Regenerate.
67534         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67535         * config.make.in (have-as-vis3): New.
67536         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67537         available use -Av9d instead of -Av9a.
67538         * sysdeps/sparc/sparc64/Makefile: Likewise.
67539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67541         New file.
67542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67543         file.
67544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67545         New file.
67546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67547         file.
67548         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67549         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67550         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67551         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67552         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67553
67554         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67555         fzeros/fnegs to load 0x80000000 into a float register instead of
67556         using the stack.
67557         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67558
67559 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67560
67561         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67562         bits/syscall.h.
67563         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67564         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67565         ($(inst_includedir)/bits/syscall.h): Remove rule.
67566         ($(objpfx)bits/syscall.d): Include instead of
67567         $(objpfx)syscall-list.d.
67568         (generated): Change syscall-list.h and syscall-list.d to
67569         bits/syscall.h and bits/syscall.d.
67570
67571 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67572
67573         [BZ #13846]
67574         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67575
67576 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67577
67578         [BZ #13841]
67579         * math/s_csqrt.c: Include <float.h>.
67580         (__csqrt): Scale large or subnormal inputs.
67581         * math/s_csqrtf.c: Likewise.
67582         * math/s_csqrtl.c: Likewise.
67583         * math/libm-test.inc (csqrt_test): Add more tests.
67584         * sysdeps/i386/fpu/libm-test-ulps: Update.
67585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67586
67587         [BZ #13840]
67588         * math/libm-test.inc (hypot_test): Add more tests.
67589
67590 2012-03-13  David S. Miller  <davem@davemloft.net>
67591
67592         [BZ #13840]
67593         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67594         double-precision for the calculation instead of scaling.
67595
67596 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67597
67598         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67599         manipulate bits before adding and subtracting TWO52[sx].
67600         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67601         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67602         Likewise.
67603         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67604
67605 2012-03-13  David S. Miller  <davem@davemloft.net>
67606
67607         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67608         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67609         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67610         rtld-global-offsets.h
67611         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67612
67613         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67614         large parameters.
67615
67616         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67617
67618         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67619         'err' in the ifdef scope in which it is actually used.
67620
67621         * nss/nss_db/db-init.c: Include string.h
67622
67623 2012-03-12  David S. Miller  <davem@davemloft.net>
67624
67625         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67626         masking out of the most significant byte of random value used.
67627         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67628         Fix coding style in previous change.
67629
67630         * sysdeps/unix/sysv/linux/kernel-features.h
67631         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67632         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67633         expression.
67634         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67635         later.
67636
67637 2012-03-11  David S. Miller  <davem@davemloft.net>
67638
67639         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67640         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67641         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67642         for 'resultvar' otherwise things get truncated on 64-bit.
67643
67644         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67645         Fix masking out of the most significant byte of random value used.
67646
67647         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67648
67649 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67650
67651         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67652
67653 2012-03-09  David S. Miller  <davem@davemloft.net>
67654
67655         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67656         variables with appropriate CPP guards.
67657         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67658         from the frame pointer, not the stack pointer.  Correct layout
67659         comments.  Fix test on resulting framesize and the management of
67660         the outregs buffer for pltexit.  Preserve floating point return
67661         values across _dl_call_pltexit call.
67662         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67663         framesize and the management of the outregs buffer for pltexit.
67664         Preserve floating point return values across _dl_call_pltexit
67665         call.
67666         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67667         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67668         (la_sparc64_gnu_pltexit): New functions.
67669         (print_exit): Fix format string for return register value.
67670
67671 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67672
67673         * sunrpc/Makefile (others): Add rpcgen.
67674         ($(objpfx)rpcgen): Remove special build rule and dependency on
67675         libc.
67676         * sunrpc/rpcgen.c: New file.
67677
67678 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67679
67680         [BZ #13673]
67681         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67682         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67683         * sysdeps/i386/crti.S: Likewise.
67684         * sysdeps/i386/crtn.S: Likewise.
67685         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67686         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67687         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67688         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67689         * sysdeps/sh/crti.S: Likewise.
67690         * sysdeps/sh/crtn.S: Likewise.
67691         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67692
67693         [BZ #13673]
67694         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67695         with URL.
67696         * locale/programs/locfile-kw.gperf: Likewise.
67697         * locale/programs/charmap-kw.h: Regenerated.
67698         * locale/programs/locfile-kw.h: Likewise.
67699
67700         [BZ #13673]
67701         * intl/plural.y: Replace FSF snail mail address with URL.
67702         * intl/plural.c: Regenerated.
67703
67704 2012-03-09  Richard Henderson  <rth@twiddle.net>
67705
67706         * include/math_private.h: Remove file.
67707         * math/math_private.h: Move file ...
67708         * sysdeps/generic/math_private.h: ... here.
67709
67710         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67711         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67712         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67713
67714         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67715         and <math_private.h>.
67716         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67717         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67718         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67719         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67720         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67721         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67722         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67723         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67724         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67725         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67726         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67727         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67728         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67729         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67730         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67731         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67732         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67733         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67734         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67735         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67736         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67737         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67738         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67739         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67740         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67741         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67742         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67743         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67744         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67745         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67746         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67747         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67748         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67749         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67750         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67751         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67752         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67753         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67754         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67755         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67756         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67757         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67758         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67759         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67760         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67761         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67762         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67763         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67764         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67765         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67766         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67767         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67768         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67769         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67770         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67771         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67772         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67773         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67774         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67775         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67776         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67777         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67778         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67779         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67780         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67781         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67782         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67783         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67784         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67785         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67786         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67787         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67788         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67789         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67790         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67791         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67792         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67793         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67794         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67795         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67796         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67797         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67798         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67799         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67800         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67801         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67802         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67803         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67804         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67805         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67806         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67807         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67808         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67809         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67810         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67811         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67812         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67813         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67814         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67815         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67816         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67817         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67818         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67819         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67820         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67821         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67822         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67823         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67824         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67825         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67826         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67827         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67828         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67829         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67830         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67831         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67832         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67833         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67834         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67835         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67836         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67837         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67838         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67839         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67840         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67841         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67842         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67843         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67844         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67845         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67846         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67847         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67848         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67849         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67850         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67851         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67852         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67853         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67854         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67855         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67856         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67857         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67858         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67859         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67860         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67861         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67862         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67863         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67864         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67865         * sysdeps/ieee754/k_standard.c: Likewise.
67866         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67867         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67868         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67869         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67870         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67871         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67872         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67873         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67874         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67875         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67876         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67877         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67878         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67879         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67880         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67881         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67882         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67883         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67884         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67885         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67886         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67887         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67888         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67889         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67890         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67891         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67892         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67893         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67894         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67895         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67896         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67897         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67898         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67899         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67900         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67901         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67902         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67903         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67904         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67905         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67906         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67907         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67908         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67909         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67910         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67911         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67912         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67913         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67914         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67915         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67916         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67917         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67918         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67919         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67920         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67921         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67922         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67923         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67924         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67925         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67926         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67927         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67928         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67929         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67930         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67931         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67932         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67933         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67934         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67935         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67936         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67937         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67938         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67939         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67940         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67941         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67942         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67943         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67944         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67945         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67946         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67947         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67948         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67949         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67950         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67951         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67952         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67953         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67954         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67955         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67956         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67957         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67958         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67959         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67960         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67961         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67962         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67963         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67964         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67965         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67966         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67967         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67968         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67969         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67970         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67971         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67972         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67973         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67974         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67975         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67976         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67977         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67978         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67979         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67980         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67981         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67982         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67983         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67984         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67985         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67986         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67987         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67988         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67989         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67990         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67991         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67992         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67993         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67994         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67995         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67996         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67997         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67998         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67999         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
68000         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
68001         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
68002         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
68003         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
68004         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
68005         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
68006         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
68007         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
68008         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
68009         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
68010         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
68011         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
68012         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
68013         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
68014         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
68015         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
68016         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
68017         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
68018         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
68019         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
68020         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
68021         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
68022         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
68023         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
68024         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
68025         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
68026         * sysdeps/ieee754/s_lib_version.c: Likewise.
68027         * sysdeps/ieee754/s_matherr.c: Likewise.
68028         * sysdeps/ieee754/s_signgam.c: Likewise.
68029         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
68030         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
68031         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
68032         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
68033         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
68034         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
68035         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
68036         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
68037         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
68038         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
68039         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
68040         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
68041         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
68042         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
68043         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
68044         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
68045         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
68046         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
68047         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
68048         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
68049         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
68050
68051 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68052
68053         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
68054         * sunrpc/rpc_main.c: Likewise.
68055         * sunrpc/rpc_svcout.c: Likewise.
68056
68057 2012-03-09  David S. Miller  <davem@davemloft.net>
68058
68059         * include/math_private.h: New file.
68060
68061 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68062
68063         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
68064         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
68065         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
68066         from <bits/socket_type.h>.
68067         (enum __socket_type): Don't define here.
68068         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
68069         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68070         bits/socket_type.h.
68071
68072         [BZ #13566]
68073         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
68074         checking __USE_GNU.
68075
68076         * Makerules ($(inst_includedir)/%.h): New rule.
68077         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
68078         (install-others): Remove variable setting.
68079         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
68080
68081 2012-03-08  Richard Henderson  <rth@twiddle.net>
68082
68083         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
68084         from macro to inline function; merge with the
68085         !__LIBC_INTERNAL_MATH_INLINES version.
68086         (__ieee754_sqrtf): Likewise.
68087
68088         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
68089         to inline function.
68090         (__rintf, __floor, __floorf): Likewise.
68091
68092         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
68093         macro to inline function.
68094         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
68095
68096         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
68097         not <math/math_private.h>.
68098
68099 2012-03-08  David S. Miller  <davem@davemloft.net>
68100
68101         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
68102         copyright year.
68103         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
68104
68105 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
68106
68107         * resolv/gai_misc.c (handle_requests): Fix struct timespec
68108         normalization.
68109         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
68110         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
68111
68112 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
68113
68114         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
68115         be defined individually, they must be defined as a block.  Define
68116         S for printing a string instead of hidint the different by using a
68117         macro for adding the 'l'.
68118         * stdio-common/tst-fphex-wide.c: Adjust.
68119
68120 2012-03-07  Marek Polacek  <polacek@redhat.com>
68121
68122         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
68123
68124 2012-03-08  Marek Polacek  <polacek@redhat.com>
68125
68126         [BZ #13806]
68127         * stdio-common/Makefile (tests): Add tst-fphex-wide.
68128         * stdio-common/tst-fphex.c: Define a few macros to make the
68129         test reusable.  Use them.
68130         * stdio-common/tst-fphex-wide.c: New file.
68131
68132 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
68133
68134         [BZ #6911]
68135         * manual/macros.texi (gnusystems): New macro.
68136         (nongnusystems): Likewise.
68137         (gnulinuxhurdsystems): Likewise.
68138         (gnuhurdsystems): Likewise..
68139         (gnulinuxsystems): Likewise.
68140         * manual/charset.texi: Use new macros or @theglibc{} to refer to
68141         variants of the GNU system, not "GNU system".
68142         * manual/conf.texi: Likewise.
68143         * manual/errno.texi: Likewise.  Update example of errno macro
68144         expansion.
68145         * manual/filesys.texi: Likewise.
68146         (getumask): Document as specific to GNU/Hurd.
68147         * manual/install.texi: Likewise.  Reword some references to
68148         GNU/Linux.
68149         * manual/intro.texi: Likewise.
68150         * manual/io.texi: Likewise.
68151         (File Name Portability): Detail which constraints are inapplicable
68152         to all GNU systems and which are only inapplicable to GNU/Hurd.
68153         * manual/job.texi: Likewise.
68154         * manual/llio.texi: Likewise.
68155         (O_NOCTTY): Document as present on GNU/Linux.
68156         * manual/maint.texi: Likewise.
68157         * manual/memory.texi: Likewise.
68158         * manual/pattern.texi: Likewise.
68159         * manual/pipe.texi: Likewise.
68160         * manual/process.texi: Likewise.
68161         * manual/resource.texi: Likewise.
68162         (RUSAGE_CHILDREN): Remove statement about specifying a particular
68163         child on GNU/Hurd.
68164         * manual/setjmp.texi: Likewise.
68165         * manual/signal.texi: Likewise.
68166         * manual/startup.texi: Likewise.
68167         * manual/stdio.texi: Likewise.
68168         * manual/terminal.texi: Likewise.
68169         (ONLCR): Document as POSIX.
68170         (OXTABS): Document availability on GNU/Linux as XTABS.
68171         (ONOEOT): Document availability separately from other bits.
68172         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
68173         * manual/time.texi: Likewise.
68174         * manual/users.texi: Likewise.
68175         * INSTALL: Regenerated.
68176         * sysdeps/gnu/errlist.c: Regenerated.
68177
68178         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
68179         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
68180         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
68181         puts.
68182         * configure: Regenerated.
68183
68184 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
68185
68186         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
68187         default includes instead of AC_HEADER_CHECK.
68188         * sysdeps/i386/configure: Regenerated.
68189
68190         [BZ #10716]
68191         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
68192         * math/s_cacoshf.c (__cacoshf): Likewise.
68193         * math/s_cacoshl.c (__cacoshl): Likewise.
68194         * math/s_casinh.c (__casinh): Set signs of result from argument.
68195         * math/s_casinhf.c (__casinhf): Likewise.
68196         * math/s_casinhl.c (__casinhl): Likewise.
68197         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
68198         (casinh_test): Add more tests.
68199         * sysdeps/i386/fpu/libm-test-ulps: Update.
68200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68201
68202 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
68203
68204         * po/zh_TW.po: Update from translation team.
68205
68206         * login/Makefile (distribute): Remove variable.
68207         * catgets/Makefile: Likewise.
68208         * mach/Makefile: Likewise.
68209         * malloc/Makefile: Likewise.
68210         * misc/Makefile: Likewise.
68211         * iconv/Makefile: Likewise.
68212         * nscd/Makefile: Likewise.
68213         * hurd/Makefile: Likewise.
68214         * manual/Makefile: Likewise.
68215         * locale/Makefile: Likewise.
68216         * intl/Makefile: Likewise.
68217         * conform/Makefile: Likewise.
68218         * nss/Makefile: Likewise.
68219         * time/Makefile: Likewise.
68220         * soft-fp/Makefile: Likewise.
68221         * dirent/Makefile: Likewise.
68222         * gmon/Makefile: Likewise.
68223         * po/Makefile: Likewise.
68224         * rt/Makefile: Likewise.
68225         * socket/Makefile: Likewise.
68226         * math/Makefile: Likewise.
68227         * signal/Makefile: Likewise.
68228         * debug/Makefile: Likewise.
68229         * elf/Makefile: Likewise.
68230         * timezone/Makefile: Likewise.
68231         * stdlib/Makefile: Likewise.
68232         * iconvdata/Makefile: Likewise.
68233         * sunrpc/Makefile: Likewise.
68234         * io/Makefile: Likewise.
68235         * argp/Makefile: Likewise.
68236         * inet/Makefile: Likewise.
68237         * hesiod/Makefile: Likewise.
68238         * grp/Makefile: Likewise.
68239         * csu/Makefile: Likewise.
68240         * wctype/Makefile: Likewise.
68241         * crypt/Makefile: Likewise.
68242         * libio/Makefile: Likewise.
68243         * string/Makefile: Likewise.
68244         * nis/Makefile: Likewise.
68245         * resolv/Makefile: Likewise.
68246         * stdio-common/Makefile: Likewise.
68247         * wcsmbs/Makefile: Likewise.
68248         * dlfcn/Makefile: Likewise.
68249         * posix/Makefile: Likewise.
68250
68251         [BZ #6959]
68252         * timezone/Makefile: Don't install timezone files, just the programs
68253         and scripts.
68254
68255 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
68256
68257         * nss/databases.def: Add missing gshadow entry.
68258
68259         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
68260
68261 2012-03-06  Marek Polacek  <polacek@redhat.com>
68262
68263         [BZ #13726]
68264         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
68265         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
68266         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
68267         * stdio-common/tst-long-dbl-fphex.c: New file.
68268
68269 2012-03-06  David S. Miller  <davem@davemloft.net>
68270
68271         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68272         (set_obp_int): New function.
68273         (get_obp_int): New function.
68274         (__get_clockfreq_via_dev_openprom): Likewise.
68275         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
68276         Avoid unused variable warnings on 'val' and use builtin_expect.
68277         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
68278         __builtin_expect.
68279         (INLINE_CLONE_SYSCALL): Likewise.
68280
68281 2012-03-05  David S. Miller  <davem@davemloft.net>
68282
68283         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68284
68285 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
68286
68287         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68288
68289         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
68290         only for |x| >= 40.
68291         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68292
68293 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
68294
68295         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
68296         Replace gettimeofday with __vdso_gettimeofday.
68297
68298         * sysdeps/unix/sysv/linux/x86_64/init-first.c
68299         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
68300         __vdso_clock_gettime and __vdso_getcpu.
68301
68302         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
68303         time with __vdso_time.
68304
68305 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68306
68307         * manual/lang.texi (size_t): Note types to which size_t may be
68308         equivalent with the GNU C Library, but do not describe when
68309         differences between them are significant.
68310
68311 2012-03-05  Andreas Jaeger  <aj@suse.de>
68312
68313         * sysdeps/i386/fpu/libm-test-ulps: Update.
68314
68315 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68316
68317         [BZ #3976]
68318         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
68319         (__ieee754_pow): Save and restore rounding mode and use
68320         round-to-nearest for main computations.
68321         * math/libm-test.inc (pow_test_tonearest): New function.
68322         (pow_test_towardzero): Likewise.
68323         (pow_test_downward): Likewise.
68324         (pow_test_upward): Likewise.
68325         (main): Call the new functions.
68326         * sysdeps/i386/fpu/libm-test-ulps: Update.
68327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68328
68329         [BZ #3976]
68330         * math/libm-test.inc (cosh_test_tonearest): New function.
68331         (cosh_test_towardzero): Likewise.
68332         (cosh_test_downward): Likewise.
68333         (cosh_test_upward): Likewise.
68334         (sinh_test_tonearest): Likewise.
68335         (sinh_test_towardzero): Likewise.
68336         (sinh_test_downward): Likewise.
68337         (sinh_test_upward): Likewise.
68338         (main): Call the new functions.
68339         * sysdeps/i386/fpu/libm-test-ulps: Update.
68340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68341
68342 2012-03-05  Tom de Vries  <tom@codesourcery.com>
68343
68344         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
68345         default stack guard is set in last bytes.
68346         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
68347
68348 2012-03-05  Kees Cook  <keescook@chromium.org>
68349
68350         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
68351
68352         [BZ #13656]
68353         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
68354         possibly allocate from heap instead of stack.
68355         * stdio-common/bug-vfprintf-nargs.c: New file.
68356         * stdio-common/Makefile (tests): Add nargs overflow test.
68357
68358 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
68359
68360         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68361
68362 2012-03-03  Marek Polacek  <polacek@redhat.com>
68363
68364         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68365         * math/math_private.h: Likewise.
68366         * stdlib/tst-strtod.c: Likewise.
68367         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68368         * sysdeps/x86_64/bits/atomic.h: Likewise.
68369
68370 2012-03-02  David S. Miller  <davem@davemloft.net>
68371
68372         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68373         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68374         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68375         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68376         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68377         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68378         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68379         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68380
68381 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68382
68383         [BZ #13792]
68384         * manual/examples/README: New file, says the example source files
68385         can be used under GPL>=2.
68386         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68387         line containing just "*/".
68388         * manual/examples/add.c: Add copyright header (GPL>=2).
68389         * manual/examples/argp-ex1.c: Likewise.
68390         * manual/examples/argp-ex2.c: Likewise.
68391         * manual/examples/argp-ex3.c: Likewise.
68392         * manual/examples/argp-ex4.c: Likewise.
68393         * manual/examples/atexit.c: Likewise.
68394         * manual/examples/db.c: Likewise.
68395         * manual/examples/dir.c: Likewise.
68396         * manual/examples/dir2.c: Likewise.
68397         * manual/examples/execinfo.c: Likewise.
68398         * manual/examples/filecli.c: Likewise.
68399         * manual/examples/filesrv.c: Likewise.
68400         * manual/examples/fmtmsgexpl.c: Likewise.
68401         * manual/examples/genpass.c: Likewise.
68402         * manual/examples/inetcli.c: Likewise.
68403         * manual/examples/inetsrv.c: Likewise.
68404         * manual/examples/isockad.c: Likewise.
68405         * manual/examples/longopt.c: Likewise.
68406         * manual/examples/memopen.c: Likewise.
68407         * manual/examples/memstrm.c: Likewise.
68408         * manual/examples/mkfsock.c: Likewise.
68409         * manual/examples/mkisock.c: Likewise.
68410         * manual/examples/mygetpass.c: Likewise.
68411         * manual/examples/pipe.c: Likewise.
68412         * manual/examples/popen.c: Likewise.
68413         * manual/examples/rprintf.c: Likewise.
68414         * manual/examples/search.c: Likewise.
68415         * manual/examples/select.c: Likewise.
68416         * manual/examples/setjmp.c: Likewise.
68417         * manual/examples/sigh1.c: Likewise.
68418         * manual/examples/sigusr.c: Likewise.
68419         * manual/examples/stpcpy.c: Likewise.
68420         * manual/examples/strdupa.c: Likewise.
68421         * manual/examples/strftim.c: Likewise.
68422         * manual/examples/strncat.c: Likewise.
68423         * manual/examples/subopt.c: Likewise.
68424         * manual/examples/swapcontext.c: Likewise.
68425         * manual/examples/termios.c: Likewise.
68426         * manual/examples/testopt.c: Likewise.
68427         * manual/examples/testpass.c: Likewise.
68428         * manual/examples/timeval_subtract.c: Likewise.
68429
68430         [BZ #13792]
68431         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68432         function to ...
68433         * manual/timeval_subtract.c.texi: ... here, new file.
68434
68435 2012-03-02  David S. Miller  <davem@davemloft.net>
68436
68437         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68438
68439 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68440
68441         [BZ #3976]
68442         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68443         (__sin): Save and restore rounding mode and use round-to-nearest
68444         for all computations.
68445         (__cos): Save and restore rounding mode and use round-to-nearest
68446         for all computations.
68447         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68448         <fenv.h>.
68449         (tan): Save and restore rounding mode and use round-to-nearest for
68450         all computations.
68451         * math/libm-test.inc (cos_test_tonearest): New function.
68452         (cos_test_towardzero): Likewise.
68453         (cos_test_downward): Likewise.
68454         (cos_test_upward): Likewise.
68455         (sin_test_tonearest): Likewise.
68456         (sin_test_towardzero): Likewise.
68457         (sin_test_downward): Likewise.
68458         (sin_test_upward): Likewise.
68459         (tan_test_tonearest): Likewise.
68460         (tan_test_towardzero): Likewise.
68461         (tan_test_downward): Likewise.
68462         (tan_test_upward): Likewise.
68463         (main): Call the new functions.
68464         * sysdeps/i386/fpu/libm-test-ulps: Update.
68465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68466
68467         [BZ #10135]
68468         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68469         small n, then large n, before computing and testing k+n.
68470         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68471         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68472         Likewise.
68473         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68474         Likewise.
68475         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68476         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68477         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68478         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68479         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68480         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68481         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68482         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68483         * math/libm-test.inc (scalbn_test): Add more tests.
68484         (scalbln_test): Likewise.
68485
68486         * manual/filesys.texi (mode_t): Describe constraints on size and
68487         signedness, not exact equivalence to a particular type.
68488         (ino_t): Likewise.
68489         (ino64_t): Likewise.
68490         (dev_t): Likewise.
68491         (nlink_t): Likewise.
68492         (blkcnt_t): Likewise.
68493         (blkcnt64_t): Likewise.
68494         * manual/llio.texi (off_t): Likewise.
68495
68496         [BZ #3976]
68497         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68498         (__ieee754_exp): Save and restore rounding mode and use
68499         round-to-nearest for all computations.
68500         * math/libm-test.inc (exp_test_tonearest): New function.
68501         (exp_test_towardzero): Likewise.
68502         (exp_test_downward): Likewise.
68503         (exp_test_upward): Likewise.
68504         (main): Call the new functions.
68505         * sysdeps/i386/fpu/libm-test-ulps: Update.
68506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68507
68508 2012-03-01  Chris Demetriou  <cgd@google.com>
68509
68510         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68511         have predictable order.
68512
68513 2012-03-01  David S. Miller  <davem@davemloft.net>
68514
68515         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68516
68517         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68518         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68519         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68520         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68521
68522         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68523         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68524         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68525         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68526         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68527         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68528         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68529         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68530         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68531
68532         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68533
68534         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68535         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68536         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68537
68538         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68539         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68540         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68541         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68542         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68543         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68544         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68545         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68546         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68547         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68548         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68549         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68550         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68551         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68552         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68553         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68554         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68555         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68556         * sysdeps/sparc/elf/configure: Regenerated.
68557
68558 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68559
68560         * configure.in (AS, LD): Require binutils 2.20 or later.
68561         * configure: Regenerated.
68562         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68563         as required minimum version.
68564         * INSTALL: Regenerated.
68565
68566         [BZ #2541]
68567         [BZ #4108]
68568         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68569         before squaring exponent.
68570         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68571         bottom long double and 27 bits of top long double before squaring
68572         exponent.
68573         * math/libm-test.inc (erfc_test): Add more tests.
68574         * sysdeps/i386/fpu/libm-test-ulps: Update.
68575         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68577
68578 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68579
68580         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68581         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68582         containing bit-fields.
68583         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68584         * soft-fp/single.h (_FP_UNION_S): Likewise.
68585         * soft-fp/double.h (_FP_UNION_D): Likewise.
68586
68587 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68588
68589         [BZ #13786]
68590         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68591         not include ../strcmp.S.
68592         [USE_AS_STRNCASECMP_L]: Likewise.
68593         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68594         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68595         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68596         (__strncasecmp_l_ia32): Define as alias to
68597         __strncasecmp_l_nonascii.
68598
68599         [BZ #5794]
68600         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68601         * sysdeps/i386/fpu/libm-test-ulps: Update.
68602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68603
68604         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68606
68607 2012-02-29  Jeff Law  <law@redhat.com>
68608
68609         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68610         out of bounds read.
68611
68612 2012-02-29  Marek Polacek  <polacek@redhat.com>
68613
68614         [BZ #13706]
68615         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68616         * elf/Makefile: Add rules to run tst-unused-dep.out.
68617
68618 2012-02-28  David S. Miller  <davem@davemloft.net>
68619
68620         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68621         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68622         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68623         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68624         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68625         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68626
68627 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68628
68629         * math/libm-test.inc (llround_test): Move one test from
68630         lround_test.  Use TEST_f_L in moved test.
68631         (lround_test): Move misplaced test to llround_test.  Add testcase
68632         from bug 2561.
68633
68634 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68635
68636         * sysdeps/x86_64/fpu/e_expf.S: New file.
68637         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68638
68639 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68640
68641         [BZ #13637]
68642         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68643         of remain_len that may cause incomplete multi-byte character and
68644         false match.
68645         * posix/bug-regex33.c: New file.
68646         * posix/Makefile (tests): Add bug-regex33.
68647
68648 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68649
68650         * manual/macros.texi: New file.
68651         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68652         * manual/libc.texinfo: Include macros.texi.
68653         * manual/creatute.texi: Likewise.
68654         * manual/install.texi: Likewise.
68655         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68656         @glibcadj{} in references to the GNU C Library.
68657         * manual/charset.texi: Likewise.
68658         * manual/conf.texi: Likewise.
68659         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68660         when not using those macros.
68661         * manual/creature.texi: Likewise.
68662         * manual/crypt.texi: Likewise.
68663         * manual/errno.texi: Likewise.
68664         * manual/filesys.texi: Likewise.
68665         * manual/header.texi: Likewise.
68666         * manual/install.texi: Likewise.
68667         * manual/intro.texi: Likewise.
68668         * manual/io.texi: Likewise.
68669         * manual/job.texi: Likewise.
68670         * manual/lang.texi: Likewise.
68671         * manual/libc.texiinfo: Likewise.
68672         * manual/llio.texi: Likewise.
68673         * manual/locale.texi: Likewise.
68674         * manual/maint.texi: Likewise.
68675         * manual/math.texi: Likewise.
68676         * manual/memory.texi: Likewise.
68677         * manual/message.texi: Likewise.
68678         * manual/nss.texi: Likewise.
68679         * manual/pattern.texi: Likewise.
68680         * manual/process.texi: Likewise.
68681         * manual/resource.texi: Likewise.
68682         * manual/search.texi: Likewise.
68683         * manual/setjmp.texi: Likewise.
68684         * manual/signal.texi: Likewise.
68685         * manual/socket.texi: Likewise.
68686         * manual/startup.texi: Likewise.
68687         * manual/stdio.texi: Likewise.
68688         * manual/string.texi: Likewise.
68689         * manual/sysinfo.texi: Likewise.
68690         * manual/syslog.texi: Likewise.
68691         * manual/terminal.texi: Likewise.
68692         * manual/time.texi: Likewise.
68693         * manual/users.texi: Likewise.
68694         * INSTALL: Regenerated.
68695         * NOTES: Regenerated.
68696         * sysdeps/gnu/errlist.c: Regenerated.
68697
68698 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68699
68700         * include/dirent.h: Include <dirstream.h> before
68701         <dirent/dirent.h>.
68702
68703 2012-02-28  David S. Miller  <davem@davemloft.net>
68704
68705         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68706         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68707         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68708         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68709
68710 2012-02-27  David S. Miller  <davem@davemloft.net>
68711
68712         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68713         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68714         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68715         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68716
68717         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68718         frame pointer instead of stack pointer relative arg slot.
68719         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68720         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68721         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68722
68723 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68724
68725         [BZ #3992]
68726         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68727
68728 2012-02-27  David S. Miller  <davem@davemloft.net>
68729
68730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68734         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68735         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68736         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68737         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68738
68739 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68740
68741         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68742         later.  Allow versions 5-9.
68743         * configure: Regenerated.
68744         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68745         required minimum version and 4.6 as recommended version.  Do not
68746         mention bugs in GCC 2.7 and 2.8.
68747         * INSTALL: Regenerated.
68748
68749 2012-02-27  David S. Miller  <davem@davemloft.net>
68750
68751         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68752         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68753         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68754         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68755         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68756         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68757         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68758         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68759
68760         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68761         manipulate bits before adding and subtracting TWO112[sx].
68762         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68763
68764 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68765
68766         [BZ #13775]
68767         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68768         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68769         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68770         being in POSIX, because they are in 1003.1-2008.
68771
68772         * rt/tst-aio.c: Include <fcntl.h>.
68773         * rt/tst-aio7.c: Likewise.
68774         * rt/tst-aio64.c: Likewise.
68775
68776         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68777
68778 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68779
68780         * manual/install.texi (--with-headers): Describe headers as
68781         interface headers, not private headers.
68782         (Specific advice for GNU/Linux systems): Describe use of headers
68783         from "make headers_install", not private headers from older
68784         kernels.
68785         * INSTALL: Regenerated.
68786         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68787         Change to 2.6.19.
68788         * sysdeps/unix/sysv/linux/configure: Regenerated.
68789
68790         * manual/llio.texi (fclean): Remove documentation.
68791
68792         * manual/Makefile (libc-texi-generated): New variable.  Include
68793         version.texi.
68794         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68795         $(libc-texi-generated), not duplicated list of files.
68796         (version.texi, stamp-version): New rules.
68797         (realclean): Remove $(libc-texi-generated), not individual files
68798         from that list.  Do not remove dir-add.texinfo.
68799         * manual/libc.texinfo: Comment out uses of edition numbers and
68800         references to printed manual.  Remove last-updated dates.
68801         (EDITION): Comment out.
68802         (ISBN): Likewise.
68803         (VERSION, UPDATED): Remove.
68804         (version.texi): Include.
68805
68806 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68807
68808         * sysdeps/posix/spawni.c: Include <signal.h>.
68809         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68810         * sysdeps/pthread/aio_fsync.c: Likewise.
68811
68812 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68813
68814         * conform/Makefile (tests): Run only when not cross-compiling and
68815         when fast-check is not defined.
68816
68817         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68818         * conform/data/limits.h-data: Fixes for POSIX2008.
68819         * conform/run-conformtest.sh: Run all tests.
68820         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68821         headers.
68822         * include/bits/dlfcn.h: Likewise.
68823         * include/langinfo.h: Likewise.
68824         * include/monetary.h: Likewise.
68825         * include/sys/poll.h: Likewise.
68826
68827         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68828         for __USE_GNU.
68829         * posix/spawn.h: Define __need_sigset_t.
68830         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68831         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68832         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68833         to get sigevent_t only.
68834         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68835         only for __USE_GNU.
68836         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68837         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68838         process_vm_writev only for __USE_GNU.
68839         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68840
68841         * conform/Makefile: For now ignore errors from run-conformtest.
68842         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68843         POSIX to avoid namespace pollution.  Don't prepend headers.
68844         * conform/data/aio.h-data: Fixes for POSIX testing.
68845         * conform/data/fcntl.h-data: Likewise.
68846         * conform/data/glob.h-data: Likewise.
68847         * conform/data/grp.h-data: Likewise.
68848         * conform/data/pthread.h-data: Likewise.
68849         * conform/data/pwd.h-data: Likewise.
68850         * conform/data/signal.h-data: Likewise.
68851         * conform/data/spawn.h-data: Likewise.
68852         * conform/data/stdio.h-data: Likewise.
68853         * conform/data/stdlib.h-data: Likewise.
68854         * conform/data/stropts.h-data: Likewise.
68855         * conform/data/sys/mman.h-data: Likewise.
68856         * conform/data/sys/stat.h-data: Likewise.
68857         * conform/data/sys/types.h-data: Likewise.
68858         * conform/data/sys/wait.h-data: Likewise.
68859         * conform/data/time.h-data: Likewise.
68860         * conform/data/unistd.h-data: Likewise.
68861         * conform/data/utime.h-data: Likewise.
68862
68863         * io/sys/stat.h: fchmod was always in POSIX.
68864         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68865         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68866         * rt/aio.h: Define __need_timespec before including <time.h>.
68867         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68868         struct.  Add forward declaration of pthread_attr_t and use it in
68869         sigevent.
68870         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68871         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68872         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68873         always remove CLK_TCK definition.
68874
68875 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68876
68877         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68878
68879 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68880
68881         * conform/run-conformtest.sh: New file.
68882         * conform/Makefile: Run run-conformtest for tests.
68883         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68884         support.
68885
68886         * conform/data/uchar.h-data: New file.
68887         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68888         * conform/data/arpa/inet.h-data: Likewise.
68889         * conform/data/assert.h-data: Likewise.
68890         * conform/data/complex.h-data: Likewise.
68891         * conform/data/cpio.h-data: Likewise.
68892         * conform/data/ctype.h-data: Likewise.
68893         * conform/data/dirent.h-data: Likewise.
68894         * conform/data/dlfcn.h-data: Likewise.
68895         * conform/data/errno.h-data: Likewise.
68896         * conform/data/fcntl.h-data: Likewise.
68897         * conform/data/float.h-data: Likewise.
68898         * conform/data/fmtmsg.h-data: Likewise.
68899         * conform/data/fnmatch.h-data: Likewise.
68900         * conform/data/ftw.h-data: Likewise.
68901         * conform/data/glob.h-data: Likewise.
68902         * conform/data/grp.h-data: Likewise.
68903         * conform/data/iconv.h-data: Likewise.
68904         * conform/data/inttypes.h-data: Likewise.
68905         * conform/data/langinfo.h-data: Likewise.
68906         * conform/data/libgen.h-data: Likewise.
68907         * conform/data/limits.h-data: Likewise.
68908         * conform/data/locale.h-data: Likewise.
68909         * conform/data/math.h-data: Likewise.
68910         * conform/data/monetary.h-data: Likewise.
68911         * conform/data/mqueue.h-data: Likewise.
68912         * conform/data/ndbm.h-data: Likewise.
68913         * conform/data/net/if.h-data: Likewise.
68914         * conform/data/netdb.h-data: Likewise.
68915         * conform/data/netinet/in.h-data: Likewise.
68916         * conform/data/nl_types.h-data: Likewise.
68917         * conform/data/poll.h-data: Likewise.
68918         * conform/data/pthread.h-data: Likewise.
68919         * conform/data/pwd.h-data: Likewise.
68920         * conform/data/regex.h-data: Likewise.
68921         * conform/data/sched.h-data: Likewise.
68922         * conform/data/search.h-data: Likewise.
68923         * conform/data/semaphore.h-data: Likewise.
68924         * conform/data/setjmp.h-data: Likewise.
68925         * conform/data/signal.h-data: Likewise.
68926         * conform/data/spawn.h-data: Likewise.
68927         * conform/data/stdarg.h-data: Likewise.
68928         * conform/data/stdio.h-data: Likewise.
68929         * conform/data/stdlib.h-data: Likewise.
68930         * conform/data/string.h-data: Likewise.
68931         * conform/data/strings.h-data: Likewise.
68932         * conform/data/stropts.h-data: Likewise.
68933         * conform/data/sys/ipc.h-data: Likewise.
68934         * conform/data/sys/mman.h-data: Likewise.
68935         * conform/data/sys/msg.h-data: Likewise.
68936         * conform/data/sys/resource.h-data: Likewise.
68937         * conform/data/sys/select.h-data: Likewise.
68938         * conform/data/sys/sem.h-data: Likewise.
68939         * conform/data/sys/shm.h-data: Likewise.
68940         * conform/data/sys/socket.h-data: Likewise.
68941         * conform/data/sys/stat.h-data: Likewise.
68942         * conform/data/sys/statvfs.h-data: Likewise.
68943         * conform/data/sys/time.h-data: Likewise.
68944         * conform/data/sys/timeb.h-data: Likewise.
68945         * conform/data/sys/times.h-data: Likewise.
68946         * conform/data/sys/types.h-data: Likewise.
68947         * conform/data/sys/uio.h-data: Likewise.
68948         * conform/data/sys/un.h-data: Likewise.
68949         * conform/data/sys/utsname.h-data: Likewise.
68950         * conform/data/sys/wait.h-data: Likewise.
68951         * conform/data/syslog.h-data: Likewise.
68952         * conform/data/tar.h-data: Likewise.
68953         * conform/data/termios.h-data: Likewise.
68954         * conform/data/utime.h-data: Likewise.
68955         * conform/data/utmpx.h-data: Likewise.
68956         * conform/data/varargs.h-data: Likewise.
68957         * conform/data/wchar.h-data: Likewise.
68958         * conform/data/wctype.h-data: Likewise.
68959         * conform/data/wordexp.h-data: Likewise.
68960
68961         * include/stropts.h: New file.
68962         * include/uchar.h: New file.
68963         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68964         * include/assert.h: Likewise.
68965         * include/ctype.h: Likewise.
68966         * include/dirent.h: Likewise.
68967         * include/dlfcn.h: Likewise.
68968         * include/fcntl.h: Likewise.
68969         * include/fnmatch.h: Likewise.
68970         * include/glob.h: Likewise.
68971         * include/grp.h: Likewise.
68972         * include/libio.h: Likewise.
68973         * include/locale.h: Likewise.
68974         * include/math.h: Likewise.
68975         * include/net/if.h: Likewise.
68976         * include/netdb.h: Likewise.
68977         * include/netinet/in.h: Likewise.
68978         * include/pthread.h: Likewise.
68979         * include/pwd.h: Likewise.
68980         * include/regex.h: Likewise.
68981         * include/sched.h: Likewise.
68982         * include/search.h: Likewise.
68983         * include/setjmp.h: Likewise.
68984         * include/signal.h: Likewise.
68985         * include/stdio.h: Likewise.
68986         * include/stdlib.h: Likewise.
68987         * include/string.h: Likewise.
68988         * include/sys/cdefs.h: Likewise.
68989         * include/sys/mman.h: Likewise.
68990         * include/sys/msg.h: Likewise.
68991         * include/sys/resource.h: Likewise.
68992         * include/sys/select.h: Likewise.
68993         * include/sys/socket.h: Likewise.
68994         * include/sys/stat.h: Likewise.
68995         * include/sys/statvfs.h: Likewise.
68996         * include/sys/time.h: Likewise.
68997         * include/sys/times.h: Likewise.
68998         * include/sys/uio.h: Likewise.
68999         * include/sys/utsname.h: Likewise.
69000         * include/sys/wait.h: Likewise.
69001         * include/termios.h: Likewise.
69002         * include/time.h: Likewise.
69003         * include/ulimit.h: Likewise.
69004         * include/unistd.h: Likewise.
69005         * include/utime.h: Likewise.
69006         * include/wchar.h: Likewise.
69007         * include/wctype.h: Likewise.
69008         * include/wordexp.h: Likewise.
69009
69010         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
69011
69012         * time/time.h: TIME_UTC must be a macro.
69013         Make timespec_get available for ISO C11 only as well.
69014
69015 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
69016
69017         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
69018         Reported by Peng Haitao <penght@cn.fujitsu.com>.
69019
69020 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69021
69022         * configure.in: Use -o not -a in test for unsupported multi-arch.
69023
69024 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69025
69026         * manual/texinfo.tex: Update to version 2012-01-19.16.
69027
69028 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69029
69030         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
69031
69032 2012-02-24  Roland McGrath  <roland@hack.frob.com>
69033
69034         [BZ #13738]
69035         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
69036         * manual/fdl-1.3.texi: New file.
69037         * manual/fdl-1.1.texi: File removed.
69038
69039         [BZ #13738]
69040         * manual/libc.texinfo (FDL_VERSION): New @set.
69041         Use it for mention of FDL in cover text.
69042         (Documentation License): Use it in @include file name.
69043
69044 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69045             Roland McGrath  <roland@hack.frob.com>
69046
69047         [BZ #5461]
69048         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
69049         (not LONG_LONG_MAX and LONG_LONG_MIN.
69050         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
69051         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
69052         name.
69053         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
69054
69055 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69056
69057         [BZ #2547]
69058         [BZ #11365]
69059         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
69060         manipulate bits before adding and subtracting TWO23[sx].
69061         * math/libm-test.inc (nearbyint_test): Add more tests.
69062
69063 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69064
69065         [BZ #2548]
69066         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
69067         bits before adding and subtracting TWO23[sx].
69068         * math/libm-test.inc (rint_test): Add more tests.
69069         (rint_test_tonearest): Likewise.
69070         (rint_test_towardzero): Likewise.
69071         (rint_test_downward): Likewise.
69072         (rint_test_upward: Likewise.
69073
69074 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69075
69076         [BZ #10110]
69077         * include/stdc-predef.h: New file.  Extracted from features.h.
69078         * include/features.h: Include stdc-predef.h.
69079         * Makefile (headers): Add stdc-predef.h.
69080         * CONFORMANCE (Compiler limitations): Update.
69081
69082 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69083
69084         * manual/libc.texinfo (VERSION, UPDATED): Revert.
69085
69086 2012-02-21  David S. Miller  <davem@davemloft.net>
69087
69088         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
69089         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69090
69091 2012-02-20  David S. Miller  <davem@davemloft.net>
69092
69093         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
69094         using a normal save/restore sequence, rather than allocating a
69095         dummy stack frame just to store a frame pointer and restore.
69096         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69097
69098 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69099
69100         * manual/install.texi: Fix stray word in line-wrapped comment.
69101
69102 2012-02-20  David S. Miller  <davem@davemloft.net>
69103
69104         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
69105         both binutils and gcc support GOTDATA.
69106
69107         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
69108         "rd %pc" in the PIC register setup sequences.
69109
69110         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
69111         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
69112         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
69113         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
69114         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
69115         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
69116         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69117         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69118         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
69119         (SYSCALL_ERROR_HANDLER): Likewise.
69120         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
69121         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
69122         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
69123         (SYSCALL_ERROR_HANDLER): Likewise.
69124
69125         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
69126         (HAVE_GCC_GOTDATA): New.
69127         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
69128         relocation support in both binutils and gcc.
69129         * sysdeps/sparc/elf/configure: Regenerate.
69130
69131         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
69132         * sysdeps/sparc/sparc32/elf/configure: Delete.
69133         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
69134         * sysdeps/sparc/sparc64/elf/configure: Delete.
69135         * sysdeps/sparc/elf/configure.in: New file.
69136         * sysdeps/sparc/elf/configure: Generate.
69137
69138         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
69139         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
69140         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
69141         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
69142         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
69143
69144 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69145
69146         * manual/install.texi: Do not mention specific glibc version
69147         numbers.
69148         * manual/libc.texinfo (VERSION, UPDATED): Update.
69149         (@copying): Use @copyright{} and range of years.
69150
69151 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69152
69153         [BZ #13695]
69154         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
69155         [crti.S not in sysdirs] (generated): Do not append.
69156         [crti.S not in sysdirs] (omit-deps): Likewise.
69157         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
69158         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
69159         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
69160         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69161         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
69162         Likewise.
69163         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
69164         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
69165         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
69166         * csu/defs.awk: Remove file.
69167         * sysdeps/generic/initfini.c: Likewise.
69168         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
69169         variable.
69170         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
69171         Likewise.
69172
69173 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69174
69175         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
69176         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
69177         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
69178         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
69179         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69180         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
69181         <bits/epoll.h>.
69182         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
69183         (__EPOLL_PACKED): Define to empty if not defined by
69184         <bits/epoll.h>.
69185         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
69186         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69187         bits/epoll.h.
69188
69189 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69190
69191         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
69192         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
69193         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
69194         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
69195         <bits/timerfd.h>.
69196         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
69197         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69198         bits/timerfd.h.
69199
69200 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69201
69202         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
69203         in C locale.
69204         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
69205         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
69206         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
69207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69208
69209 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
69210
69211         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69212         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69213
69214 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
69215
69216         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
69217         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
69218         defined.
69219         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
69220         Likewise.
69221         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
69222         entry for 2.16.
69223
69224 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
69225
69226         * math/w_acos.c: Use non-signaling floating-point comparisons.
69227         * math/w_acosf.c: Likewise.
69228         * math/w_acosh.c: Likewise.
69229         * math/w_acoshf.c: Likewise.
69230         * math/w_acoshl.c: Likewise.
69231         * math/w_acosl.c: Likewise.
69232         * math/w_asin.c: Likewise.
69233         * math/w_asinf.c: Likewise.
69234         * math/w_asinl.c: Likewise.
69235         * math/w_atanh.c: Likewise.
69236         * math/w_atanhf.c: Likewise.
69237         * math/w_atanhl.c: Likewise.
69238         * math/w_exp2.c: Likewise.
69239         * math/w_exp2f.c: Likewise.
69240         * math/w_exp2l.c: Likewise.
69241         * math/w_j0.c: Likewise.
69242         * math/w_j0f.c: Likewise.
69243         * math/w_j0l.c: Likewise.
69244         * math/w_j1.c: Likewise.
69245         * math/w_j1f.c: Likewise.
69246         * math/w_j1l.c: Likewise.
69247         * math/w_jn.c: Likewise.
69248         * math/w_jnf.c: Likewise.
69249         * math/w_log.c: Likewise.
69250         * math/w_log10.c: Likewise.
69251         * math/w_log10f.c: Likewise.
69252         * math/w_log10l.c: Likewise.
69253         * math/w_log2.c: Likewise.
69254         * math/w_log2f.c: Likewise.
69255         * math/w_log2l.c: Likewise.
69256         * math/w_logf.c: Likewise.
69257         * math/w_logl.c: Likewise.
69258         * math/w_sqrt.c: Likewise.
69259         * math/w_sqrtf.c: Likewise.
69260         * math/w_sqrtl.c: Likewise.
69261         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
69262         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
69263         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
69264         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
69265         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
69266
69267 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69268
69269         [BZ #9739]
69270         * manual/string.texi (strnlen): Use correct parameter name in
69271         equivalent expression.
69272
69273 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69274
69275         [BZ #11174]
69276         * manual/users.texi (seteuid): Consistently use neweuid for
69277         argument name.
69278
69279 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69280
69281         [BZ #13704]
69282         * manual/nss.texi (Services in the NSS configuration): Correct
69283         list of services in example configuration file.
69284
69285 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
69286
69287         [BZ #11322]
69288         * manual/arith.texi: Remove statements about negative zero
69289         behaving identically to zero.
69290
69291 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69292
69293         [BZ #5993]
69294         * manual/install.texi: Do not document upgrading from libc5.
69295
69296 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69297
69298         [BZ #4596]
69299         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
69300
69301 2012-02-18  David S. Miller  <davem@davemloft.net>
69302
69303         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
69304         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
69305         %o7 across the call.
69306         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
69307         instead.
69308         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
69309         SETUP_PIC_REG_LEAF.
69310         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
69311         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
69312         * sysdeps/sparc/crtn.S: Likewise.
69313
69314 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
69315
69316         * aout/Makefile: Remove.
69317
69318 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
69319
69320         [BZ #13058]
69321         * manual/examples/argp-ex1.c (main): Format definition in GNU
69322         style.
69323         * manual/examples/argp-ex2.c (main): Likewise.
69324         * manual/examples/argp-ex3.c (main): Likewise.
69325         * manual/examples/argp-ex4.c (main): Likewise.
69326         * manual/examples/longopt.c (main): Use new-style prototype
69327         definition.
69328         * manual/examples/strncat.c (main): Specify return type and use
69329         (void) for arguments.
69330         * manual/examples/subopt.c (main): Use char **argv argument.
69331
69332 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69333
69334         [BZ #5077]
69335         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
69336         rounding modes.
69337
69338 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
69339
69340         [BZ #6907]
69341         * manual/string.texi (strchr): Change when strchrnul is
69342         recommended.
69343
69344 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
69345
69346         [BZ #174]
69347         * manual/locale.texi (setlocale): Document LOCPATH.
69348
69349 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69350
69351         [BZ #10210]
69352         * manual/process.texi (execle): Move @dots{} before last argument.
69353
69354 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
69355
69356         [BZ #12047]
69357         * manual/charset.texi (Generic Charset Conversion): Fix typo
69358         (LC_TYPE -> LC_CTYPE).
69359
69360 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
69361
69362         [BZ #5805]
69363         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69364         (scalbnf): Likewise.
69365         (scalbnl): Likewise.
69366         (scalbln): Likewise.
69367         (scalblnf): Likewise.
69368         (scalblnl): Likewise.
69369         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69370         (vwarnx): Likewise.
69371         (verr): Likewise.
69372         (verrx): Likewise.
69373         * manual/filesys.texi (telldir): Use braces around return type.
69374         * manual/llio.texi (mmap): Add space after comma.
69375         (mmap64): Likewise.
69376         * manual/math.texi (jn): Use @var{} on parameter names.
69377         (jnf): Likewise.
69378         (jnl): Likewise.
69379         (yn): Likewise.
69380         (ynf): Likewise.
69381         (ynl): Likewise.
69382         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69383         line.
69384         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69385         "...".
69386         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69387         (sched_get_priority_max): Likewise.
69388         * manual/signal.texi (sigvec): Add space after comma.
69389         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69390         names.
69391         (if_indextoname): Likewise.
69392         (if_freenameindex): Likewise.
69393         (sendto): Use ',' instead of '.' in prototype.
69394         * manual/startup.texi (syscall): Use @dots{} instead of literal
69395         "...".
69396         * manual/stdio.texi (__fpending): Separate initial words of
69397         paragraph from @deftypefun line.
69398         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69399         "...".
69400         (vsyslog): Use @var{} on parameter names.
69401         * manual/terminal.texi (stty): Use @var{} on parameter names.
69402         * manual/users.texi (getutmp): Use @var{} on parameter names.
69403         (getutmpx): Likewise.
69404
69405 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69406
69407         [BZ #6884]
69408         * manual/stdio.texi (fopen): Fix typos in description of
69409         ",ccs=STRING".
69410
69411 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69412
69413         [BZ #4026]
69414         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69415         get clock_id definition.
69416
69417 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69418
69419         [BZ #4822]
69420         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69421         (madvise): Cast every argument to void on its own.
69422
69423 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69424
69425         [BZ #9902]
69426         * manual/startup.texi (Exit Status): Fix typo.
69427
69428 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69429
69430         [BZ #10140]
69431         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69432         * manual/examples/argp-ex2.c: Likewise.
69433         * manual/examples/argp-ex3.c: Likewise.
69434
69435 2012-02-16  Richard Henderson  <rth@redhat.com>
69436
69437         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69438         * sysdeps/s390/s390-32/initfini.c: Remove.
69439         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69440         * sysdeps/s390/s390-64/initfini.c: Remove.
69441
69442 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69443
69444         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69445         compiler output for sysdeps/generic/initfini.c.
69446         * sysdeps/sh/elf/initfini.c: Remove file.
69447
69448 2012-02-16  David S. Miller  <davem@davemloft.net>
69449
69450         [BZ #11494]
69451         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69452
69453         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69454         * sysdeps/sparc/crti.S: New file.
69455         * sysdeps/sparc/crtn.S: New file.
69456         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69457         * sysdeps/sparc/sparc64/Makefile: Likewise.
69458
69459 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69460
69461         [BZ #3335]
69462         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69463
69464 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69465
69466         [BZ #4822]
69467         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69468
69469         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69470         (write, read, close): Likewise.
69471         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69472
69473 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69474
69475         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69476         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69477         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69478         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69479         <bits/signalfd.h>.
69480         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69481         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69482         bits/signalfd.h.
69483
69484 2012-02-14  Marek Polacek  <polacek@redhat.com>
69485
69486         * sysdeps/x86_64/crti.S: New file.
69487         * sysdeps/x86_64/crtn.S: New file.
69488         * sysdeps/x86_64/elf/initfini.c: Remove file.
69489
69490 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69491
69492         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69493         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69494         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69495         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69496         <bits/inotify.h>.
69497         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69498         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69499         bits/inotify.h.
69500
69501 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69502
69503         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69504         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69505         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69506         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69507         <bits/eventfd.h>.
69508         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69509         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69510         bits/eventfd.h.
69511
69512 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69513
69514         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69515         __feraiseexcept instead of feraiseexcept.
69516
69517         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69518         nanosleep invocations.
69519         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69520         strings, and add error checking for a nanosleep invocations.
69521
69522 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69523
69524         Replace FSF snail mail address with URLs, as per GNU coding standards.
69525         Most of the snail mail addresses were wrong anyway, and omitting
69526         them makes the source code easier to maintain.  Almost all of the
69527         changes are to license notices and to locale LC_IDENTIFICATION
69528         addresses, except for this one:
69529         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69530         not its snail mail address.
69531
69532 2012-02-09  Richard Henderson  <rth@twiddle.net>
69533
69534         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69535         of kernel-features.h.
69536
69537         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69538
69539 2012-02-08  Marek Polacek  <polacek@redhat.com>
69540
69541         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69542         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69543         * sysdeps/gnu/_G_config.h: Likewise.
69544         * sysdeps/generic/_G_config.h: Likewise.
69545
69546 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69547
69548         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69549         tests.
69550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69551
69552         * sysdeps/powerpc/powerpc32/crti.S: New file.
69553         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69554         * sysdeps/powerpc/powerpc64/crti.S: New file.
69555         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69556
69557         * Makeconfig (have-initfini): Don't set.
69558         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69559         * configure.in (nopic_initfini): Don't substitute.
69560         * config.h.in (HAVE_INITFINI): Don't #undef.
69561         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69562         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69563
69564 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69565
69566         Support crti.S and crtn.S provided directly by architectures.
69567         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69568         [crti.S in sysdirs] (omit-deps): Likewise.
69569         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69570         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69571         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69572         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69573         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69574         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69575         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69576         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69577         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69578         compiler output for sysdeps/generic/initfini.c.
69579         * sysdeps/i386/elf/Makefile: Remove file.
69580         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69581
69582 2012-02-07  Marek Polacek  <polacek@redhat.com>
69583
69584         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69585         * sysdeps/gnu/_G_config.h: Likewise.
69586         * sysdeps/mach/hurd/_G_config.h: Likewise.
69587
69588 2012-02-07  Marek Polacek  <polacek@redhat.com>
69589
69590         * math/Makefile (tests): Add tst-CMPLX2.
69591         * math/tst-CMPLX2.c: New file.
69592
69593 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69594
69595         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69596
69597         * math/libm-test.inc (jn_test): Add missing L suffix.
69598
69599 2012-02-06  Marek Polacek  <polacek@redhat.com>
69600
69601         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69602         * sysdeps/i386/fpu/e_powf.S: Likewise.
69603         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69604         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69605         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69606         * sysdeps/i386/fpu/e_pow.S: Likewise.
69607         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69608         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69609         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69610         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69611         * sysdeps/i386/fpu/e_log2.S: Likewise.
69612         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69613         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69614         * sysdeps/i386/fpu/e_powl.S: Likewise.
69615         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69616         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69617         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69618         * sysdeps/i386/fpu/e_logl.S: Likewise.
69619         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69620         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69621         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69622         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69623         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69624         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69625         * sysdeps/i386/fpu/e_log.S: Likewise.
69626         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69627         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69628         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69629         * sysdeps/i386/fpu/e_logf.S: Likewise.
69630         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69631         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69632         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69633         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69634         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69635         * sysdeps/i386/fpu/e_log10.S: Likewise.
69636         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69637         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69638         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69639         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69640         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69641         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69642         * sysdeps/i386/asm-syntax.h: Likewise.
69643         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69644         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69645         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69646         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69647         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69648         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69649         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69650         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69651         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69652         * sysdeps/powerpc/sysdep.h: Likewise.
69653         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69654         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69655
69656 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69657
69658         [BZ #411]
69659         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69660
69661 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69662
69663         * sysdeps/i386/sysdep.h: Include <features.h>.
69664         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69665         version.
69666
69667 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69668
69669         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69670         Define.
69671         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69672         LOAD_PIC_REG_STR.
69673
69674 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69675
69676         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69677         (SETUP_PIC_REG): Use GET_PC_THUNK.
69678         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69679         macro.
69680
69681 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69682
69683         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69684         for non-PIC compilation.
69685         (SETUP_PIC_REG): Add .p2align directive.
69686         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69687         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69688         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69689         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69690         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69691         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69692         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69693         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69694         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69695         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69696         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69697         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69698         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69699         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69700         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69701         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69702         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69703         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69704         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69705         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69706         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69707         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69708         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69709         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69710         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69711         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69712         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69713         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69714         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69715         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69716         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69717         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69718         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69719         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69720         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69721         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69722         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69723         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69724         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69725         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69726         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69727
69728 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69729
69730         * math/tst-CMPLX.c: Include <stdio.h>.
69731
69732 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69733
69734         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69735         float.
69736         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69737         * sysdeps/sparc/bits/mathdef.h: Likewise.
69738
69739 2012-01-31  Marek Polacek  <polacek@redhat.com>
69740
69741         * libio/libio.h: Don't define _PARAMS.
69742         * locale/programs/config.h: Don't define PARAMS.
69743         * stdlib/strtol_l.c: Likewise.
69744         (__strtol_l): Remove PARAMS from the prototype.
69745
69746 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69747
69748         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69749         names.  Just use the correct names.  Remove unnecessary wrapper
69750         functions.
69751         * malloc/arena.c: Likewise.
69752         * malloc/hooks.c: Likewise.
69753
69754         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69755         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69756         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69757
69758 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69759
69760         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69761         into tail calls.
69762         (update_get_addr): New function.
69763         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69764         GET_ADDR_MODULE parameter.
69765
69766 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69767
69768         * crypt/cert.c: Remove __STDC__ conditionals.
69769         * crypt/crypt-entry.c: Likewise.
69770         * crypt/crypt_util.c: Likewise.
69771         * libio/filedoalloc.c: Likewise.
69772         * libio/fileops.c: Likewise.
69773         * libio/genops.c: Likewise.
69774         * libio/iofclose.c: Likewise.
69775         * libio/iofdopen.c: Likewise.
69776         * libio/iofopen.c: Likewise.
69777         * libio/iofopen64.c: Likewise.
69778         * libio/iogetdelim.c: Likewise.
69779         * libio/iopopen.c: Likewise.
69780         * libio/obprintf.c: Likewise.
69781         * libio/oldfileops.c: Likewise.
69782         * libio/oldiofclose.c: Likewise.
69783         * libio/oldiofdopen.c: Likewise.
69784         * libio/oldiofopen.c: Likewise.
69785         * libio/oldiopopen.c: Likewise.
69786         * libio/wfiledoalloc.c: Likewise.
69787         * libio/wgenops.c: Likewise.
69788         * locale/programs/xmalloc.c: Likewise.
69789         * misc/syslog.c: Likewise.
69790         * stdio-common/xbug.c: Likewise.
69791         * string/memchr.c: Likewise.
69792         * string/memcmp.c: Likewise.
69793         * string/memrchr.c: Likewise.
69794         * string/rawmemchr.c: Likewise.
69795         * sysdeps/posix/getcwd.c: Likewise.
69796         * time/strftime_l.c: Likewise.
69797
69798 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69799
69800         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69801         * config.make.in (config-cflags-sse2avx): Define.
69802         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69803         Fix typo.
69804
69805 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69806
69807         * scripts/config.guess: Update from upstream config git repository.
69808         * scripts/config.sub: Likewise.
69809
69810 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69811
69812         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69813         (EM_NUM): Update.
69814         (R_TILEPRO_*, R_TILEGX_*): New macros.
69815
69816         * scripts/firstversions.awk: Fix bug in version range handling.
69817
69818         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69819
69820         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69821
69822         * include/sys/epoll.h: New file.
69823         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69824         libc_hidden_def.
69825
69826 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69827
69828         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69829         Avoid unnecessary __WORDSIZE == 64 test.
69830         (fmaxf): Use VEX format if possible.
69831         (fmax): Likewise.
69832         (fminf): Likewise.
69833         (fmin): Likewise.
69834
69835         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69836         * math/math_private.h: Remove libc_fegetround* and
69837         libc_fesetround*.
69838         * sysdeps/i386/configure.in: Check for -msse2avx.
69839         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69840         also if SSE2AVX is defined.
69841         Remove libc_fegetround* and libc_fesetround*.
69842         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69843         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69844         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69845         of HAS_YMM_USABLE.
69846         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69847         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69848         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69849         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69850         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69851
69852         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69853
69854 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69855
69856         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69857         size is not set.
69858         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69859
69860 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69861
69862         [BZ #13618]
69863         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69864         relocation.
69865         * Makeconfig (libm): Define.
69866         * elf/Makefile: Add rules to build and run tst-relsort1.
69867         * elf/tst-relsort1.c: New file.
69868         * elf/tst-relsort1mod1.c: New file.
69869         * elf/tst-relsort1mod2.c: New file.
69870
69871 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69872
69873         * math/s_ldexp.c: Remove __STDC__ conditionals.
69874         * math/s_ldexpf.c: Likewise.
69875         * math/s_ldexpl.c: Likewise.
69876         * math/s_nextafter.c: Likewise.
69877         * math/s_nexttowardf.c: Likewise.
69878         * math/s_significand.c: Likewise.
69879         * math/s_significandf.c: Likewise.
69880         * math/s_significandl.c: Likewise.
69881         * math/w_jnl.c: Likewise.
69882         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69883         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69884         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69885         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69886         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69887         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69888         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69889         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69890         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69891         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69892         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69893         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69894         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69895         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69896         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69897         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69898         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69899         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69900         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69901         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69902         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69903         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69904         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69905         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69906         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69907         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69908         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69909         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69910         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69911         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69912         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69913         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69914         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69915         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69916         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69917         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69918         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69919         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69920         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69921         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69922         * sysdeps/ieee754/k_standard.c: Likewise.
69923         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69924         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69925         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69926         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69927         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69928         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69929         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69930         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69931         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69932         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69933         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69934         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69935         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69936         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69937         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69938         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69939         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69940         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69941         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69942         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69943         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69944         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69945         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69946         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69947         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69948         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69949         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69950         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69951         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69952         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69953         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69954         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69955         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69956         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69957         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69958         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69959         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69960         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69961         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69962         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69963         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69964         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69965         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69966         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69967         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69968         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69969         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69970         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69971         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69972         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69973         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69974         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69975         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69976         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69977         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69978         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69979         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69980         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69981         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69982         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69983         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69984         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69985         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69986         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69987         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69988         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69989         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69990         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69991         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69992         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69993         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69994         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69995         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69996         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69997         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69998         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69999         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
70000         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
70001         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
70002         * sysdeps/ieee754/s_matherr.c: Likewise.
70003         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
70004         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
70005         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
70006         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
70007
70008 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70009
70010         * crypt/md5.h: Remove __STDC__ conditionals.
70011         * libio/libioP.h: Likewise.
70012         * locale/programs/config.h: Likewise.
70013         * sysdeps/generic/sysdep.h: Likewise.
70014         * sysdeps/i386/asm-syntax.h: Likewise.
70015         * sysdeps/s390/asm-syntax.h: Likewise.
70016         * sysdeps/unix/sysdep.h: Likewise.
70017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
70018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
70019
70020 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70021
70022         * libio/libio.h: Remove __STDC__ conditionals.
70023         * malloc/obstack.h: Likewise.
70024         * math/complex.h: Likewise.
70025         * math/math.h: Likewise.
70026         * sysdeps/generic/_G_config.h: Likewise.
70027         * sysdeps/gnu/_G_config.h: Likewise.
70028         * sysdeps/mach/hurd/_G_config.h: Likewise.
70029         * sysdeps/powerpc/bits/mathdef.h: Likewise.
70030         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
70031         * sysdeps/sparc/bits/mathdef.h: Likewise.
70032
70033 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
70034
70035         [BZ #13583]
70036         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
70037         Clean up HAS_* macros.
70038         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
70039         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
70040         possible.
70041         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
70042         HAS_AVX.
70043         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70044         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70045         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70046         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70047         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70048
70049 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
70050
70051         * elf/tst-unique3.cc (gets): Remove declaration.
70052         * elf/tst-unique3lib.cc (gets): Likewise.
70053         * elf/tst-unique3lib2.cc (gets): Likewise.
70054         * elf/tst-unique4.cc (gets): Likewise.
70055
70056 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
70057
70058         * include/stdio.h: Add C++ protection.  Add gets declarations and
70059         definitions.
70060         * debug/tst-chk1.c: Don't declare gets here.
70061         * stdio-common/tst-gets.c: Likewise.
70062
70063 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70064
70065         * posix/glob: Remove directory.
70066
70067 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70068
70069         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
70070
70071 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
70072
70073         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
70074         of the non-standard EPFNOSUPPORT.
70075
70076 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70077
70078         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
70079         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
70080         ANYWHERE set to 1 only on KERN_NO_SPACE error.
70081
70082 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
70083
70084         * wcsmbs/uchar.h: Test __STDC_VERSION__.
70085
70086 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
70087
70088         * nscd/aicache.c (addhstaiX): Do not cache negative results of
70089         transient errors.
70090         * nscd/grpcache.c (cache_addgr): Likewise.
70091         * nscd/hstcache.c (cache_addhst): Likewise.
70092         * nscd/initgrcache.c (addinitgroupsX): Likewise.
70093         * nscd/pwdcache.c (cache_addpw): Likewise.
70094         * nscd/servicescache.c (cache_addserv): Likewise.
70095
70096 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
70097
70098         * malloc/malloc.c: Various cleanups.
70099         * malloc/hooks.c: Likewise.
70100
70101         * stdlib/Makefile (tests): Add bug-fmtmsg1.
70102         * stdlib/bug-fmtmsg1.c: New file.
70103
70104         * stdlib/fmtmsg.c (init): Add missing unlock.
70105         Patch by Peng Haitao <penght@cn.fujitsu.com>.
70106
70107 2012-01-12  Marek Polacek  <polacek@redhat.com>
70108
70109         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
70110         and _GNU_SOURCE.
70111
70112 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
70113
70114         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
70115         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
70116         macro to ensure uniqueness of label name.
70117         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70118         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70119
70120 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
70121
70122         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
70123
70124         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
70125         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
70126         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
70127         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
70128
70129 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
70130
70131         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
70132
70133         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
70134         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
70135         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
70136
70137         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
70138
70139         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
70140         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
70141         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
70142         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
70143
70144         * math/bits/math-finite.h: Add ldexp support.
70145
70146 2012-01-10  Marek Polacek  <polacek@redhat.com>
70147
70148         * locale/programs/localedef.h (show_archive_content): Add noreturn
70149         attribute.
70150
70151 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
70152
70153         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
70154
70155 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70156
70157         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
70158
70159         * io/Makefile (headers): Add bits/poll2.h.
70160
70161 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
70162
70163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
70164         typo #include statement.
70165
70166 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70167
70168         * include/sys/cdefs.h: Define __attribute_alloc_size.
70169         * catgets/gencat.c: Add alloc_size attribute and apply consistently
70170         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
70171         * elf/pldd.c: Likewise.
70172         * iconv/iconv_charmap.c: Likewise.
70173         * iconv/iconvconfig.c: Likewise.
70174         * iconv/strtab.c: Likewise.
70175         * locale/programs/locale.c: Likewise.
70176         * locale/programs/localedef.h: Likewise.
70177         * locale/programs/simple-hash.c: Likewise.
70178         * nscd/nscd.h: Likewise.
70179         * nss/makedb.c: Likewise.
70180         * sysdeps/generic/ldconfig.h: Likewise.
70181         * locale/programs/localedef.c: Remove xmalloc prototype.
70182         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
70183
70184 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
70185
70186         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
70187         appropriate.
70188
70189 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70190
70191         * math/Makefile (tests): Add tst-CMPLX.
70192         * math/tst-CMPLX.c: New file.
70193
70194         * math/complex.h (CMPLXL): Fix typo.
70195
70196         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
70197         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
70198         GLIBC_2.16.
70199         * debug/tst-chk1.c: Add poll and ppoll tests.
70200         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
70201         * include/sys/poll.h: Add hidden proto for ppoll.
70202         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
70203         * sysdeps/mach/hurd/ppoll.c: Likewise.
70204         * io/ppoll.c: Likewise.
70205         * debug/poll_chk.c: New file.
70206         * debug/ppoll_chk.c: New file.
70207         * include/bits/poll2.h: New file.
70208         * io/bits/poll2.h: New file.
70209
70210         [BZ #1350]
70211         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
70212
70213         * configure.in: static is always set to yes.  Remove.
70214         * config.make.in: Don't set build-static.
70215         * Makeconfig: Remove use of build-static.
70216         * dlfcn/Makefile: Likewise.
70217         * elf/Makefile: Likewise.
70218         * math/Makefile: Likewise.
70219         * misc/Makefile: Likewise.
70220         * nptl/Makefile: Likewise.
70221         * sysdeps/mach/hurd/Makefile: Likewise.
70222
70223         * configure.in: PWD_P is not used anymore.
70224         * config.make.in: Remove PWD_P entry.
70225
70226         * configure.in: Remove last remnants of RANLIB.
70227         No need to check for signed size_t anymore.
70228         Don't set libc_commonpagesize and libc_relro_required here for Alpha
70229         and IA-64.
70230         Remove __builtin_expect test because we require at least gcc 3.4.
70231         * aclocal.m4: Likewise.
70232
70233         * wcsmbs/mbrtoc16.c: Implement using towc function.
70234         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70235         * wcsmbs/wcsmbsload.c: Likewise.
70236         * iconv/gconv_simple.c: Likewise.
70237         * iconv/gconv_int.h: Likewise.
70238         * iconv/gconv_builtin.h: Likewise.
70239         * iconv/iconv_prog.c: Remove CHAR16 handling.
70240
70241         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
70242
70243         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
70244
70245         * configure.in: Remove --with-elf and --enable-bounded options.
70246         Dont set base_machine for ia64.  More non-ELF conditions removed.
70247         Remove testing and setting of leading underscore information.
70248         * config.make.in (build-bounded): Set to no.
70249         * config.h.in: Remove NO_UNDERSCORES entry.
70250         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
70251         them.
70252         * csu/start.c: Remove !NO_UNDERSCORE code.
70253         * locale/localeinfo.h: Likewise.
70254         * sysdeps/generic/machine-gmon.h: Likewise.
70255         * sysdeps/generic/sysdep.h: Likewise.
70256         * sysdeps/i386/sysdep.h: Likewise.
70257         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70258         * sysdeps/mach/sysdep.h: Likewise.
70259         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70260         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70261         * sysdeps/sh/sysdep.h: Likewise.
70262         * sysdeps/sparc/sparc32/alloca.S: Likewise.
70263         * sysdeps/unix/i386/sysdep.S: Likewise.
70264         * sysdeps/unix/sparc/start.c: Likewise.
70265         * sysdeps/unix/sparc/sysdep.S: Likewise.
70266         * sysdeps/unix/sparc/sysdep.h: Likewise.
70267         * sysdeps/unix/start.c: Likewise.
70268         * sysdeps/unix/x86_64/sysdep.S: Likewise.
70269         * sysdeps/x86_64/sysdep.h: Likewise.
70270
70271 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
70272
70273         [BZ #13553]
70274         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
70275         for non-gcc.
70276         * argp/argp-fmtstream.h: Use const instead __const.
70277         * argp/argp.h: Likewise.
70278         * assert/assert.h: Likewise.
70279         * bits/fenv.h: Likewise.
70280         * bits/sched.h: Likewise.
70281         * bits/sigset.h: Likewise.
70282         * bits/sigthread.h: Likewise.
70283         * catgets/nl_types.h: Likewise.
70284         * conform/data/pthread.h-data: Likewise.
70285         * crypt/crypt-private.h: Likewise.
70286         * crypt/crypt.h: Likewise.
70287         * crypt/crypt_util.c: Likewise.
70288         * ctype/ctype.h: Likewise.
70289         * debug/execinfo.h: Likewise.
70290         * debug/mbsnrtowcs_chk.c: Likewise.
70291         * debug/mbsrtowcs_chk.c: Likewise.
70292         * debug/wcsnrtombs_chk.c: Likewise.
70293         * debug/wcsrtombs_chk.c: Likewise.
70294         * debug/wcstombs_chk.c: Likewise.
70295         * dirent/dirent.h: Likewise.
70296         * dlfcn/dlfcn.h: Likewise.
70297         * elf/neededtest4.c: Likewise.
70298         * grp/grp.h: Likewise.
70299         * gshadow/gshadow.h: Likewise.
70300         * iconv/gconv.h: Likewise.
70301         * iconv/gconv_int.h: Likewise.
70302         * iconv/gconv_simple.c: Likewise.
70303         * iconv/iconv.h: Likewise.
70304         * iconv/loop.c: Likewise.
70305         * iconv/skeleton.c: Likewise.
70306         * include/aio.h: Likewise.
70307         * include/aliases.h: Likewise.
70308         * include/argz.h: Likewise.
70309         * include/arpa/inet.h: Likewise.
70310         * include/assert.h: Likewise.
70311         * include/dirent.h: Likewise.
70312         * include/dlfcn.h: Likewise.
70313         * include/execinfo.h: Likewise.
70314         * include/fcntl.h: Likewise.
70315         * include/fenv.h: Likewise.
70316         * include/glob.h: Likewise.
70317         * include/grp.h: Likewise.
70318         * include/libintl.h: Likewise.
70319         * include/mntent.h: Likewise.
70320         * include/netdb.h: Likewise.
70321         * include/pwd.h: Likewise.
70322         * include/rpc/netdb.h: Likewise.
70323         * include/sched.h: Likewise.
70324         * include/search.h: Likewise.
70325         * include/shadow.h: Likewise.
70326         * include/signal.h: Likewise.
70327         * include/stdio.h: Likewise.
70328         * include/stdlib.h: Likewise.
70329         * include/string.h: Likewise.
70330         * include/sys/socket.h: Likewise.
70331         * include/sys/stat.h: Likewise.
70332         * include/sys/statfs.h: Likewise.
70333         * include/sys/statvfs.h: Likewise.
70334         * include/sys/syslog.h: Likewise.
70335         * include/sys/time.h: Likewise.
70336         * include/sys/uio.h: Likewise.
70337         * include/time.h: Likewise.
70338         * include/unistd.h: Likewise.
70339         * include/utmp.h: Likewise.
70340         * include/wchar.h: Likewise.
70341         * include/wctype.h: Likewise.
70342         * inet/aliases.h: Likewise.
70343         * inet/arpa/inet.h: Likewise.
70344         * inet/netinet/ether.h: Likewise.
70345         * inet/netinet/in.h: Likewise.
70346         * intl/libintl.h: Likewise.
70347         * io/bits/fcntl2.h: Likewise.
70348         * io/fcntl.h: Likewise.
70349         * io/ftw.h: Likewise.
70350         * io/sys/poll.h: Likewise.
70351         * io/sys/stat.h: Likewise.
70352         * io/sys/statfs.h: Likewise.
70353         * io/sys/statvfs.h: Likewise.
70354         * io/utime.h: Likewise.
70355         * libio/bits/stdio.h: Likewise.
70356         * libio/bits/stdio2.h: Likewise.
70357         * libio/libio.h: Likewise.
70358         * libio/libioP.h: Likewise.
70359         * libio/stdio.h: Likewise.
70360         * locale/lc-ctype.c: Likewise.
70361         * locale/locale.h: Likewise.
70362         * login/utmp.h: Likewise.
70363         * malloc/arena.c: Likewise.
70364         * malloc/malloc.c: Likewise.
70365         * malloc/malloc.h: Likewise.
70366         * malloc/mcheck.c: Likewise.
70367         * malloc/mtrace.c: Likewise.
70368         * math/bits/mathcalls.h: Likewise.
70369         * math/fenv.h: Likewise.
70370         * math/math_private.h: Likewise.
70371         * misc/bits/error.h: Likewise.
70372         * misc/bits/syslog.h: Likewise.
70373         * misc/err.h: Likewise.
70374         * misc/error.h: Likewise.
70375         * misc/fstab.h: Likewise.
70376         * misc/mntent.h: Likewise.
70377         * misc/regexp.h: Likewise.
70378         * misc/search.h: Likewise.
70379         * misc/sgtty.h: Likewise.
70380         * misc/sys/mman.h: Likewise.
70381         * misc/sys/syslog.h: Likewise.
70382         * misc/sys/uio.h: Likewise.
70383         * misc/sys/xattr.h: Likewise.
70384         * misc/ttyent.h: Likewise.
70385         * nis/rpcsvc/ypclnt.h: Likewise.
70386         * nss/nss.h: Likewise.
70387         * posix/bits/unistd.h: Likewise.
70388         * posix/fnmatch.h: Likewise.
70389         * posix/glob.h: Likewise.
70390         * posix/sched.h: Likewise.
70391         * posix/spawn.h: Likewise.
70392         * posix/sys/wait.h: Likewise.
70393         * posix/unistd.h: Likewise.
70394         * posix/wordexp.h: Likewise.
70395         * pwd/pwd.h: Likewise.
70396         * resolv/netdb.h: Likewise.
70397         * resource/sys/resource.h: Likewise.
70398         * rt/aio.h: Likewise.
70399         * rt/bits/mqueue2.h: Likewise.
70400         * rt/mqueue.h: Likewise.
70401         * shadow/shadow.h: Likewise.
70402         * signal/signal.h: Likewise.
70403         * socket/send.c: Likewise.
70404         * socket/sendto.c: Likewise.
70405         * socket/sys/socket.h: Likewise.
70406         * stdio-common/printf.h: Likewise.
70407         * stdlib/bits/stdlib.h: Likewise.
70408         * stdlib/fmtmsg.h: Likewise.
70409         * stdlib/monetary.h: Likewise.
70410         * stdlib/stdlib.h: Likewise.
70411         * stdlib/ucontext.h: Likewise.
70412         * streams/stropts.h: Likewise.
70413         * string/argz.h: Likewise.
70414         * string/bits/string2.h: Likewise.
70415         * string/string.h: Likewise.
70416         * string/strings.h: Likewise.
70417         * sunrpc/rpc/auth.h: Likewise.
70418         * sunrpc/rpc/auth_des.h: Likewise.
70419         * sunrpc/rpc/clnt.h: Likewise.
70420         * sunrpc/rpc/netdb.h: Likewise.
70421         * sunrpc/rpc/pmap_clnt.h: Likewise.
70422         * sunrpc/rpc/xdr.h: Likewise.
70423         * sysdeps/generic/inttypes.h: Likewise.
70424         * sysdeps/generic/net/if.h: Likewise.
70425         * sysdeps/generic/sys/swap.h: Likewise.
70426         * sysdeps/gnu/net/if.h: Likewise.
70427         * sysdeps/gnu/utmpx.h: Likewise.
70428         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70429         * sysdeps/i386/i486/bits/string.h: Likewise.
70430         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70431         * sysdeps/s390/bits/string.h: Likewise.
70432         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70433         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70434         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70435         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70436         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70437         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70438         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70439         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70440         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70441         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70442         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70443         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70444         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70445         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70446         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70447         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70448         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70449         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70450         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70451         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70452         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70453         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70454         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70455         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70456         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70457         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70458         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70459         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70460         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70461         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70462         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70463         * sysvipc/sys/ipc.h: Likewise.
70464         * sysvipc/sys/msg.h: Likewise.
70465         * sysvipc/sys/sem.h: Likewise.
70466         * sysvipc/sys/shm.h: Likewise.
70467         * termios/termios.h: Likewise.
70468         * time/sys/time.h: Likewise.
70469         * time/time.h: Likewise.
70470         * wcsmbs/bits/wchar2.h: Likewise.
70471         * wcsmbs/uchar.h: Likewise.
70472         * wcsmbs/wchar.h: Likewise.
70473         * wctype/wctype.h: Likewise.
70474
70475         [BZ #13551]
70476         * Makeconfig: Remove all but ELF support including AIX support.
70477         * Makerules: Likewise.
70478         * config.h.in: Likewise.
70479         * config.make.in: Likewise.
70480         * configure: Likewise.
70481         * configure.in: Likewise.
70482         * csu/Makefile: Likewise.
70483         * csu/version.c: Likewise.
70484         * debug/Makefile: Likewise.
70485         * dlfcn/Makefile: Likewise.
70486         * elf/Makefile: Likewise.
70487         * extra-lib.mk: Likewise.
70488         * iconv/Makefile: Likewise.
70489         * include/libc-symbols.h: Likewise.
70490         * include/shlib-compat.h: Likewise.
70491         * resolv/Makefile: Likewise.
70492         * resolv/res_libc.c: Likewise.
70493         * rt/Makefile: Likewise.
70494         * sysdeps/i386/asm-syntax.h: Likewise.
70495         * sysdeps/i386/sysdep.h: Likewise.
70496         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70497         * sysdeps/mach/sysdep.h: Likewise.
70498         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70499         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70500         * sysdeps/s390/asm-syntax.h: Likewise.
70501         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70502         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70503         * sysdeps/sh/sysdep.h: Likewise.
70504         * sysdeps/unix/sparc/sysdep.h: Likewise.
70505         * sysdeps/wordsize-32/divdi3.c: Likewise.
70506         * sysdeps/x86_64/sysdep.h: Likewise.
70507
70508         * argp/Versions: Remove _argp_unlock_xxx.
70509
70510         [BZ #13559]
70511         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70512         * abilist/libBrokenLocale.abilist: Likewise.
70513         * abilist/libanl.abilist: Likewise.
70514         * abilist/libc.abilist: Likewise.
70515         * abilist/libcrypt.abilist: Likewise.
70516         * abilist/libdl.abilist: Likewise.
70517         * abilist/libm.abilist: Likewise.
70518         * abilist/libnsl.abilist: Likewise.
70519         * abilist/libpthread.abilist: Likewise.
70520         * abilist/libresolv.abilist: Likewise.
70521         * abilist/librt.abilist: Likewise.
70522         * abilist/libthread_db.abilist: Likewise.
70523         * abilist/libutil.abilist: Likewise.
70524         * abilist/libnss_db.abilist: New file.
70525
70526         * scripts/abilist.awk: Add support for indirect functions.
70527
70528         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70529
70530         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70531
70532         * shlib-versions: Remove entries for ports architectures.
70533
70534         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70535         files in ports.
70536         * elf/stackguard-macros.h: Remove support for IA-64.
70537         * elf/tst-auditmod1.c: Likewise.
70538         * sysdeps/generic/ldsodefs.h: Likewise.
70539
70540         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70541         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70542         configure files.
70543
70544         [BZ #13552]
70545         * configure.in: Remove --enable-omitfp support.
70546         * FAQ.in: Adjust.
70547         * config.make.in: Likewise.
70548         * Makeconfig: Likewise.
70549         * manual/install.texi: Likewise.
70550
70551         In case anyone cares, the IA-64 architecture could move to ports.
70552         * sysdeps/ia64/*: Removed.
70553         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70554         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70555
70556         [BZ #13555]
70557         * configure.in: Remove entries for unsupported architectures.
70558
70559         [BZ #13533]
70560         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70561         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70562         routines.
70563         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70564         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70565         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70566         fall back to using wcrtomb.
70567         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70568         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70569         renaming.
70570         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70571         * wcsmbs/tst-c16c32-1.c: New file.
70572
70573         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70574         local variable.
70575
70576         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70577
70578         * elf/tst-unique3.cc: Add explicit declaration of gets.
70579         * elf/tst-unique3lib.cc: Likewise.
70580         * elf/tst-unique3lib2.cc: Likewise.
70581         * elf/tst-unique4.cc: Likewise.
70582
70583         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70584
70585 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70586
70587         [BZ #13566]
70588         * assert/assert.h (static_assert): Don't define for C++.
70589         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70590         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70591
70592 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70593
70594         * iconv/loop.c (single loop): Fix assertion in storing of
70595         remaining bytes.
70596
70597         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70598
70599 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70600
70601         * posix/getconf.c: Update copyright year.
70602         * nss/getent.c: Likewise.
70603         * nss/makedb.c: Likewise.
70604         * iconv/iconvconfig.c: Likewise.
70605         * iconv/iconv_prog.c: Likewise.
70606         * elf/ldconfig.c: Likewise.
70607         * elf/pldd.c: Likewise.
70608         * elf/sotruss.ksh: Likewise.
70609         * catgets/gencat.c: Likewise.
70610         * csu/version.c: Likewise.
70611         * elf/ldd.bash.in: Likewise.
70612         * elf/sprof.c (print_version): Likewise.
70613         * locale/programs/locale.c: Likewise.
70614         * locale/programs/localedef.c: Likewise.
70615         * login/programs/pt_chown.c: Likewise.
70616         * nscd/nscd.c (print_version): Likewise.
70617         * debug/xtrace.sh: Likewise.
70618         * malloc/memusage.sh: Likewise.
70619         * malloc/mtrace.pl: Likewise.
70620         * debug/catchsegv.sh: Likewise.
70621
70622 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70623
70624         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70625         pure attribute.
70626
70627 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70628
70629         [BZ #13533]
70630         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70631         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70632         transformations.
70633         * iconv/gconv_int.h: Likewise.
70634         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70635         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70636         from libc for GLIBC_2.16.
70637         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70638         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70639         * wcsmbs/uchar.h: Really define mbstate_t.
70640         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70641         * wcsmbs/c16rtomb.c: New file.
70642         * wcsmbs/mbrtoc16.c: New file.
70643         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70644         for C/POSIX locale.
70645         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70646         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70647
70648         * wcsmbs/wchar.h: Add missing __restrict.
70649
70650 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70651
70652         [BZ #13532]
70653         * time/Makefile (routines): Add timespec_get.
70654         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70655         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70656         timespec for ISO C11.
70657         * time/timespec_get.c: New file.
70658         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70659         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70660
70661         [BZ #13531]
70662         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70663         * stdlib/stdlib.h: Declare aligned_alloc.
70664         * Versions.def: Add GLIBC_2.16 for libc.
70665         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70666
70667         [BZ 13527]
70668         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70669         ISO C11.
70670
70671         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70672         code.
70673
70674         [BZ #13528]
70675         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70676
70677         [BZ #13529]
70678         * assert/assert.h (static_assert): Define.
70679
70680         * version.h: Update for 2.16 development version.
70681
70682         [BZ #13526]
70683         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70684         _ISOC11_SOURCE.
70685
70686         * version.h (RELEASE): Bump for 2.15 release.
70687         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70688
70689         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70690         Patch by Marek Polacek <mpolacek@redhat.com>.
70691
70692         * bits/byteswap.h: Protect long long constants with __extension__.
70693         * sysdeps/i386/bits/byteswap.h: Likewise.
70694         * sysdeps/ia64/bits/byteswap.h: Likewise.
70695         * sysdeps/s390/bits/byteswap.h: Likewise.
70696         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70697
70698 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70699
70700         [BZ #13540]
70701         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70702         destination buffer.
70703         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70704
70705 2011-12-23  Marek Polacek  <polacek@redhat.com>
70706
70707         * elf/dl-addr.c (determine_info): Add inline keyword.
70708         * elf/tst-auditmod4b.c (check_avx): Likewise.
70709         * elf/tst-auditmod6b.c (check_avx): Likewise.
70710         * elf/tst-auditmod6c.c (check_avx): Likewise.
70711         * elf/tst-auditmod7b.c (check_avx): Likewise.
70712
70713 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70714
70715         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70716         !__SSE_MATH__.
70717
70718 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70719
70720         [BZ #13540]
70721         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70722         processing for last bytes.
70723
70724 2011-08-06  Bruno Haible  <bruno@clisp.org>
70725
70726         [BZ #13061]
70727         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70728         U+0385, not to U+1FEE.
70729
70730         [BZ #13062]
70731         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70732         entry for U+00A5 U+0301.
70733
70734 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70735
70736         [BZ #13166]
70737         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70738         buffer for the output is too small.
70739
70740         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70741         optimization.
70742
70743         [BZ #13185]
70744         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70745         SSE flags if possible.
70746
70747 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70748
70749         [BZ #13540]
70750         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70751         processing for last bytes.
70752
70753 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70754
70755         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70756         (syscall-list-default-options, syscall-list-default-condition)
70757         (syscall-list-includes): Define.
70758         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70759         list of ABIs and options and #if conditions for each ABI.  Do not
70760         handle common syscalls between ABIs specially.
70761         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70762         Remove.
70763         (syscall-list-variants, syscall-list-32bit-options)
70764         (syscall-list-32bit-condition, syscall-list-64bit-options)
70765         (syscall-list-64bit-condition): Define.
70766         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70767         (syscall-list-variants, syscall-list-32bit-options)
70768         (syscall-list-32bit-condition, syscall-list-64bit-options)
70769         (syscall-list-64bit-condition): Define.
70770         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70771         Remove.
70772         (syscall-list-variants, syscall-list-32bit-options)
70773         (syscall-list-32bit-condition, syscall-list-64bit-options)
70774         (syscall-list-64bit-condition): Define.
70775         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70776         Remove.
70777         (syscall-list-variants, syscall-list-32bit-options)
70778         (syscall-list-32bit-condition, syscall-list-64bit-options)
70779         (syscall-list-64bit-condition): Define.
70780
70781 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70782
70783         * locale/iso-639.def: Add brx entry.
70784
70785         [BZ #13328]
70786         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70787         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70788
70789         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70790         __feraiseexcept_renamed.
70791
70792 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70793
70794         [BZ #13538]
70795         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70796         EPOLLET with unsigned values.
70797         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70798         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70799
70800         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70801         to large cancellation.
70802         * math/s_cacoshf.c: Likewise.
70803         * math/s_cacoshl.c: Likewise.
70804
70805 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70806
70807         [BZ #13305]
70808         [BZ #12786]
70809         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70810         * math/s_cacoshf.c: Likewise.
70811         * math/s_cacoshl.c: Likewise.
70812
70813 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70814
70815         [BZ #13439]
70816         * iconv/gconv.h: Define __GCONV_SWAP.
70817         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70818         * iconvdata/utf-16.c: Likewise.
70819         * iconvdata/utf-32.c: Likewise.
70820
70821 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70822
70823         [BZ #13524]
70824         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70825         numerator after shifting it by one limb.
70826
70827 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70828
70829         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70830         under [__USE_EXTERN_INLINES].
70831
70832 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70833
70834         [BZ #13446]
70835         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70836
70837 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70838
70839         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70840         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70841         optimized code.
70842         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70843         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70844         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70845         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70846         for strncasecmp/strncasecmp_l compilation.
70847         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70848         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70849
70850 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70851
70852         [BZ #13484]
70853         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70854         of __asm__.
70855
70856 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70857
70858         [BZ #13506]
70859         * time/tzfile.c (__tzfile_read): Check values from file header.
70860
70861 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70862
70863         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70864         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70865         * powerpc/powerpc32/dl-start.S: Likewise.
70866         * powerpc/powerpc32/elf/start.S: Likewise.
70867         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70868         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70869         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70870         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70871         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70872         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70873         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70874         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70875         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70876         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70877         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70878         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70879         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70880         * powerpc/powerpc32/memset.S: Likewise.
70881         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70882         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70883         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70884         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70885         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70886         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70887         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70888         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70889         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70890         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70891         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70892         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70893         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70894
70895 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70896
70897         * math/libm-test.inc: Added more nearbyint tests.
70898         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70899         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70900         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70901         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70902
70903 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70904
70905         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70906         FD_CLOEXEC.
70907
70908 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70909
70910         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70911         Add wcscpy-ssse3 wcscpy-c.
70912         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70913         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70914         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70915         * sysdeps/x86_64/wcschr.S: New file.
70916         * sysdeps/x86_64/wcsrchr.S: New file.
70917         * string/test-strcmp.c: Remove checking of wcscmp function for
70918         wrong alignments.
70919         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70920         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70921         wcsrchr-sse2 wcsrchr-c.
70922         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70923         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70924         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70925         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70926         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70927         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70928         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70929         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70930         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70931         * wcsmbc/wcschr.c (WCSCHR): New macro.
70932
70933 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70934
70935         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70936         * wcsmbs/test-wcsrchr.c: New file.
70937         * string/test-strrchr.c: Add wcsrchr support.
70938         (WIDE): New macro.
70939         * wcsmbs/test-wcscpy.c: New file.
70940         * string/test-strcpy.c: Add wcscpy support.
70941         (WIDE): New macro.
70942
70943 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70944
70945         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70946         the inner loop.
70947
70948 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70949
70950         [BZ #13472]
70951         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70952
70953 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70954
70955         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70956         Minor optimizations.
70957
70958         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70959         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70960         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70961
70962 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70963
70964         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70965         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70966         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70967         for gcc to avoid warnings.
70968         * inet/Makefile (tests): Add tst-checks.
70969         * inet/tst-checks.c: New file.
70970
70971         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70972         warning.
70973
70974         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70975         __wmemcmp_sse2.
70976
70977         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70978         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70979
70980         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70981
70982 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70983
70984         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70985         problem.
70986
70987         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70988
70989 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70990
70991         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70992         conditional on GCC version.
70993         (__arch_compare_and_exchange_val_8_acq)
70994         (__arch_compare_and_exchange_val_16_acq)
70995         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70996         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70997         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70998
70999 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
71000
71001         * sysdeps/sh/backtrace.c: New file.
71002
71003 2011-12-02  Andreas Schwab  <schwab@redhat.com>
71004
71005         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
71006         parenthesis.
71007
71008 2011-12-01  Andreas Schwab  <schwab@redhat.com>
71009
71010         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
71011         falling back to utime.
71012
71013 2011-11-30  Andreas Schwab  <schwab@redhat.com>
71014
71015         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
71016         expectations for float.
71017
71018 2011-11-29  Andreas Schwab  <schwab@redhat.com>
71019
71020         * locale/weight.h (findidx): Add parameter len.
71021         * locale/weightwc.h (findidx): Likewise.
71022         * posix/fnmatch_loop.c (FCT): Adjust caller.
71023         * posix/regcomp.c (build_equiv_class): Likewise.
71024         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
71025         * posix/regexec.c (check_node_accept_bytes): Likewise.
71026         * string/strcoll_l.c (STRCOLL): Likewise.
71027         * string/strxfrm_l.c (STRXFRM): Likewise.
71028
71029 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
71030
71031         * Makefile.in: Remove CVSOPT handling.
71032         * configure.in: Remove use of AC_REVISION.
71033         * iconvdata/Makefile (distribute): No need to filter out CVS.
71034         * scripts/list-sources.sh: Remove CVS, subversion and monotone
71035         handling.
71036
71037 2011-11-16  Andreas Schwab  <schwab@redhat.com>
71038
71039         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
71040         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
71041         [USE_AS_STRNCASECMP_L]: Likewise.
71042         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
71043         NO_TLS_DIRECT_SEG_REFS.
71044         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
71045         Fix argument offsets for non-PIC.
71046         [USE_AS_STRNCASECMP_L]: Likewise.
71047         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
71048         NO_TLS_DIRECT_SEG_REFS.
71049
71050 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71051
71052         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
71053         O_CLOEXEC.
71054         * locale/loadlocale.c (_nl_load_locale): Likewise.
71055
71056 2011-11-15  Andreas Schwab  <schwab@redhat.com>
71057
71058         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
71059         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
71060         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
71061         (SYSCALL_GETTIME): Set errno on error.
71062
71063         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
71064         count references to noai6ai_cached.
71065
71066 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71067
71068         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
71069
71070         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
71071         FD_CLOEXEC for /proc/self/maps.
71072
71073         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
71074         FD_CLOEXEC for /proc/meminfo.
71075
71076         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
71077         gai.conf.
71078
71079         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
71080         FD_CLOEXEC for given file.
71081
71082         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
71083
71084         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
71085         FD_CLOEXEC for /etc/hosts.
71086         (_gethtent): Likewise.
71087
71088         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
71089
71090         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
71091         cancellation and set FD_CLOEXEC for /etc/netgroup.
71092
71093         * nss/nss_files/files-key.c (search): Don't allow cancellation when
71094         reading /etc/publickey.
71095
71096         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
71097         allow cancellation when reading /etc/group.
71098
71099         * nss/nss_files/files-alias.c (internal_setent): Don't allow
71100         cancellation.
71101         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
71102
71103         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
71104         when using data file.
71105
71106         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
71107
71108         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
71109         (write_nis_obj): Use "c" and "e" in fopen.
71110
71111         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
71112
71113         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
71114
71115         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
71116
71117         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
71118
71119         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
71120         locale.alias.
71121
71122         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
71123
71124         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
71125
71126         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
71127
71128         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
71129         file parsing and set FD_CLOEXEC.
71130
71131 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71132
71133         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
71134
71135 2011-11-14  Andreas Schwab  <schwab@redhat.com>
71136
71137         * malloc/arena.c (arena_get2): Don't call reused_arena when
71138         _int_new_arena failed.
71139
71140 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71141
71142         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
71143         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
71144         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
71145         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
71146         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
71147         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
71148         to compile strcasecmp and strncasecmp.
71149         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
71150         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
71151
71152         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
71153
71154 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
71155
71156         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
71157         locale-defines.sym to gen-as-const-headers.
71158         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
71159         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
71160         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
71161         to compile strcasecmp and strncasecmp.
71162         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
71163         strcasecmp_l and strncasecmp_l.
71164         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
71165         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
71166         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
71167         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
71168         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
71169         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
71170         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
71171         * sysdeps/i386/i686/multiarch/strncase.S: New file.
71172         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
71173         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
71174         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
71175
71176 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
71177
71178         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
71179         result of SYSDEP_GETTIME_CPU to retval.
71180         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
71181         parameter list to macro.  Remove trailing semicolon.  Adjust users.
71182
71183         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
71184         variable.
71185
71186         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
71187         mantissa words.
71188         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
71189
71190         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
71191         from unused variable.
71192
71193         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
71194         DWARF definitions.
71195         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
71196         for assembling.
71197
71198         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
71199         over namespaces.
71200
71201         * sunrpc/rpc_prot.c (rejected): Fix case value.
71202
71203         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
71204         unsigned long long int to avoid warnings in shift.
71205
71206         * posix/regex_internal.c (re_string_reconstruct): Actually use result
71207         of use of trans.
71208         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
71209         variable tmp.
71210
71211         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
71212         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
71213         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
71214
71215         * nis/nis_table.c (nis_list): Use variable of correct type for
71216         result of __follow_path call.
71217
71218 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71219
71220         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
71221         of math functions ceil, trunc, floor, round, and sqrt, when
71222         avaliable on the platform.
71223         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
71224         name clash.
71225         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71226         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71227         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71228
71229 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
71230
71231         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
71232         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
71233
71234 2011-11-11  Roland McGrath  <roland@hack.frob.com>
71235
71236         * include/unistd.h: Fix __readlink return type.
71237         Reported by Chris Metcalf <cmetcalf@tilera.com>.
71238
71239 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
71240
71241         * stdlib/ucontext.h: Undo last change for makecontext.
71242
71243 2011-11-11  Andreas Schwab  <schwab@redhat.com>
71244
71245         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
71246
71247         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
71248         * setjmp/setjmp.h: Mark functions as non-leaf.
71249         * setjmp/bits/setjmp2.h: Likewise.
71250         * stdlib/ucontext.h: Likewise.
71251
71252 2011-11-10  Andreas Schwab  <schwab@redhat.com>
71253
71254         * malloc/arena.c (_int_new_arena): Don't increment narenas.
71255         (reused_arena): Don't check arena limit.
71256         (arena_get2): Atomically check arena limit.
71257
71258 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
71259
71260         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
71261         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
71262
71263         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
71264         instructions.
71265
71266 2011-11-07  Andreas Schwab  <schwab@redhat.com>
71267
71268         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
71269         handler when locking.
71270
71271         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71272         Fix size of allocated buffer.
71273
71274 2011-11-04  Andreas Schwab  <schwab@redhat.com>
71275
71276         [BZ #10103]
71277         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
71278         declarations for long double functions.
71279         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
71280
71281         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
71282
71283 2011-11-03  Andreas Schwab  <schwab@redhat.com>
71284
71285         * nscd/nscd.c (main): Don't start AVC thread until credentials are
71286         installed.
71287
71288         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
71289         is disabled.
71290
71291 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
71292
71293         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
71294
71295 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
71296
71297         * include/alloca.h (stackinfo_alloca_round): Define.
71298         (extend_alloca): Use it.
71299         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
71300         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
71301         here.
71302
71303         * scripts/check-local-headers.sh: Ignore libaudit.h.
71304
71305         * nscd/Makefile (extra-objs): Make recursively expanded.
71306
71307 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
71308
71309         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
71310         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
71311
71312         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
71313         * posix/tst-rfc3484-2.c: Likewise.
71314         * posix/tst-rfc3484-3.c: Likewise.
71315
71316         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71317         process_vm_writev.
71318         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
71319         process_vm_writev.
71320         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
71321         process_vm_writev from libc using GLIBC_2.15 version.
71322
71323         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
71324
71325 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
71326
71327         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
71328         stack usage.
71329
71330 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
71331
71332         [BZ #13367]
71333         * nss/getent.c (initgroups_keys): Show error message in case no group
71334         names are given.
71335
71336         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
71337         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
71338         __bump_nl_timestamp.
71339         * nscd/connections (nscd_init): When host database is served open
71340         netlink socket and request notification about configuration changes.
71341         (main_loop_poll): Track netlink file descriptor and bump timestamp
71342         in case data becomes available.
71343         (main_loop_epoll): Likewise.
71344         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
71345         (database_pers_head): Add extra_data fileds.
71346         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
71347         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
71348         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
71349         Adjust caller.
71350         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
71351         in6ai data, call __free_in6ai.
71352         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
71353         Add -DHAVE_NETLINK.
71354         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
71355         interface information.  Reuse previous data if netlink timestamp
71356         is not changed.
71357         (__bump_nl_timestamp): New function.
71358         (__free_in6ai): New function.
71359
71360 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
71361
71362         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
71363         close_not_cancel_no_status here.
71364         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71365
71366 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71367
71368         [BZ #13276]
71369         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71370         return value.
71371
71372         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71373         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71374         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71375
71376 2011-07-03  Andreas Jaeger  <aj@suse.de>
71377
71378         [BZ #10709]
71379         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71380         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71381         * math/libm-test.inc (sin_test): Add test case.
71382
71383 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71384
71385         [BZ #13337]
71386         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71387         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71388
71389         * elf/chroot_canon.c (chroot_canon): Cleanups.
71390
71391         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71392
71393         [BZ #13335]
71394         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71395         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71396
71397         * string/test-strchr.c: Make usable for strchrnul testing.
71398         * string/test-strchrnul.c: New file.
71399         * string/Makefile (strop-tests): Add strchrnul.
71400
71401         * po/it.po: Update from translation team.
71402         * po/es.po: Likewise.
71403
71404 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71405
71406         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71407         the three constants needed as parameters.  Drop the others.
71408         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71409         __m128i_strloadu_tolower.
71410         Create and initialize variable zero and use it in all the places
71411         where _mm_setzero_si128 was used.
71412
71413         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71414         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71415         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71416         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71417         anymore.
71418         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71419         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71420         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71421         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71422         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71423         __mpranred, __mptan.
71424         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71425         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71426         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71427         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71428         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71429         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71430         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71431         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71432         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71433
71434 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71435
71436         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71437         redefine if SHARED.
71438         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71439
71440         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71441         wide char related routines to wcsmbs subdir.
71442
71443 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71444
71445         [BZ #13344]
71446         * misc/sys/cdefs.h (__THROWNL): Define.
71447         * posix/unistd.h: Use __THREADNL instead of __THREAD
71448         for memory synchronization functions.
71449
71450 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71451
71452         [BZ #13349]
71453         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71454         doesn't exist.
71455         * manual/stdio.texi (Obstack Streams): Node removed.
71456
71457 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71458
71459         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71460         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71461         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71462
71463         * math/math_private.h (math_force_eval): Allow non-addressable
71464         arguments.
71465         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71466
71467 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71468
71469         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71470         file is not needed.
71471
71472         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71473         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71474         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71475         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71476         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71477         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71478         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71479         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71480         Add AVX variants.
71481         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71482         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71483         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71484         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71485         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71486         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71487         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71488         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71489         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71490         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71491         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71492         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71493         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71494         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71495         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71496         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71497         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71498         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71499         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71500
71501         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71502         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71503
71504         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71505         place.  Use VEX encoding when compiling for AVX.
71506
71507 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71508
71509         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71510         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71511
71512         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71513
71514 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71515
71516         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71517         useless if() expression.
71518         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71519         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71520         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71521         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71522         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71523         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71524         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71525         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71526         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71527         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71528         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71529         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71530         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71531         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71532         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71533         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71534         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71535         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71536         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71537
71538         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71539
71540 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71541
71542         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71543         condition.
71544         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71545
71546 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71547
71548         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71549         .text section.  Avoid duplicate constants.
71550         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71551         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71552         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71553         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71554         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71555         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71556         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71557         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71558         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71559         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71560         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71561         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71562         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71563         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71564         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71565         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71566         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71567         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71568         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71569         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71570         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71571         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71572         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71573         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71574         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71575         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71576         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71577         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71578         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71579         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71580         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71581         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71582         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71583         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71584         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71585         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71586         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71587         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71588         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71589         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71590         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71591         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71592         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71593         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71594         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71595
71596 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71597
71598         * sysdeps/x86_64/dla.h: Move to ...
71599         * sysdeps/x86_64/fpu/dla.h: ...here.
71600         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71601         situations.  Use __builtin_fma only for gcc 4.6 and up.
71602
71603         * config.make.in: Add have-mfma4 entry.
71604         * configure.in: Substitute libc_cv_cc_fma4.
71605         * math/Makefile (dbl-only-routines): Add sincostab.
71606         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71607         Use __sincostab not sincos.
71608         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71609         name is a macro.
71610         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71611         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71612         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71613         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71614         using __copysign.
71615         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71616         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71617         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71618         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71619         and __inv.
71620         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71621         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71622         __copysign.
71623         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71624         define aliases when function name is a macro.
71625         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71626         sysdeps/ieee754/dbl-64/sincos.tbl.
71627         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71628         fma4-enabled routines.
71629         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71630         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71631         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71632         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71633         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71634         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71635         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71636         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71637         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71638         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71639         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71640         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71641         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71642         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71643         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71644         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71645         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71646         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71647         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71648         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71649         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71650         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71651         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71652         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71653         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71654         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71655         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71656         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71657         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71658         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71659
71660         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71661         rename.
71662         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71663         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71664         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71665         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71666         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71667         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71668         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71669         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71670
71671 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71672
71673         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71674
71675 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71676
71677         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71678
71679         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71680         prediction.
71681         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71682
71683         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71684         Remove unused variable magic_bits.
71685         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71686
71687         * string/strnlen.c: Define and use STRNLEN macro.
71688         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71689         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71690         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71691         * wcsmbs/wcslen.c: Define and use WCSLEN.
71692         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71693         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71694         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71695         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71696         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71697         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71698         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71699
71700 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71701
71702         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71703         strnlen-sse2-no-bsf.
71704         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71705         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71706         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71707         Add strnlen support.
71708         (USE_AS_STRNLEN): New macro.
71709         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71710         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71711         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71712         * sysdeps/x86_64/wcslen.S: New file.
71713
71714 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71715
71716         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71717         XMM-moves are used for copying on small sizes.
71718
71719 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71720
71721         * wcsmbs/Makefile (strop-tests): Add wcschr.
71722         * wcsmbs/test-wcschr.c: New file.
71723         * string/test-strchr.c: Update.
71724         Add wcschr support.
71725         (WIDE): New macro.
71726
71727 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71728
71729         * wcsmbs/Makefile (strop-tests): Add wcslen.
71730         * wcsmbs/test-wcslen.c: New file.
71731         * string/test-strlen.c: Update.
71732         Add wcslen support.
71733         (WIDE): New macro.
71734
71735 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71736
71737         * po/it.po: Update from translation team.
71738
71739 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71740
71741         * sysdeps/x86_64/wcscmp.S: Update.
71742         Fix wrong comparison semantics.
71743         wcscmp shall use signed comparison not unsigned.
71744         Don't use substraction to avoid overflow bug.
71745         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71746         * wcsmbc/wcscmp.c: Likewise.
71747         * string/test-strcmp.c: Likewise.
71748         Add new tests to check cases with negative values.
71749
71750 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71751
71752         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71753         * sysdeps/x86_64/dla.h: ...here.  New file.
71754         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71755         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71756         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71757         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71758         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71759         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71760         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71761         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71762         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71763
71764 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71765
71766         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71767         __ynl_finite aliases.
71768
71769 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71770
71771         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71772
71773         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71774         define DLA_FMA.
71775         [DLA_FMA] (EMULV): Use DLA_FMA.
71776         [DLA_FMA] (MUL12): Use EMULV.
71777         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71778         that are not needed.
71779         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71780         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71781         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71782         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71783         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71784         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71785         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71786
71787 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71788
71789         * math/s_nan.c: Undef __nan.
71790         * math/s_nanf.c: Undef __nanf.
71791         * math/s_nanl.c: Undef __nanl.
71792         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71793         "math_private.h".
71794
71795 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71796
71797         * math/s_catan.c: Add branch predictions.
71798         * math/s_catanf.c: Likewise.
71799         * math/s_catanh.c: Likewise.
71800         * math/s_catanhf.c: Likewise.
71801         * math/s_catanhl.c: Likewise.
71802         * math/s_catanl.c: Likewise.
71803         * math/s_cexp.c: Likewise.
71804         * math/s_cexpf.c: Likewise.
71805         * math/s_cexpl.c: Likewise.
71806         * math/s_clog.c: Likewise.
71807         * math/s_clog10.c: Likewise.
71808         * math/s_clog10f.c: Likewise.
71809         * math/s_clog10l.c: Likewise.
71810         * math/s_clogf.c: Likewise.
71811         * math/s_clogl.c: Likewise.
71812         * math/s_csqrt.c: Likewise.
71813         * math/s_csqrtf.c: Likewise.
71814         * math/s_csqrtl.c: Likewise.
71815         * math/s_ctanf.c: Likewise.
71816         * math/s_ctanh.c: Likewise.
71817         * math/s_ctanhf.c: Likewise.
71818         * math/s_ctanhl.c: Likewise.
71819         * math/s_ctanl.c: Likewise.
71820
71821         * math/math_private.h: Define __nan, __nanf, __nanl.
71822         * math/s_cacosh.c: Include <math_private.h>.
71823         * math/s_cacoshl.c: Likewise.
71824         * math/s_casinh.c: Likewise.
71825         * math/s_casinhf.c: Likewise.
71826         * math/s_casinhl.c: Likewise.
71827         * math/s_ccos.c: Rely entire on ccosh.
71828         * math/s_ccosf.c: Rely entire on ccoshf.
71829         * math/s_ccosl.c: Rely entirely on ccoshl.
71830         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71831         Remove tests for FE_INVALID.
71832         * math/s_ccoshf.c: Likewise.
71833         * math/s_ccoshl.c: Likewise.
71834         * math/s_csin.c: Likewise.
71835         * math/s_csinf.c: Likewise.
71836         * math/s_csinh.c Likewise.
71837         * math/s_csinhf.c: Likewise.
71838         * math/s_csinhl.c: Likewise.
71839         * math/s_csinl.c: Likewise.
71840         * math/s_ctan.c: Likewise.
71841         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71842         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71843         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71844
71845 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71846
71847         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71848         compilation problems.
71849
71850         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71851         __builtin_expect.
71852
71853 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71854
71855         * sysdeps/i386/configure.in: Test for -mfma4 option.
71856         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71857         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71858         COMMON_CPUID_INDEX_80000001.
71859         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71860         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71861         use it if FMA3 is not supported.
71862         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71863
71864         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71865         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71866
71867 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71868
71869         [BZ #12892]
71870         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71871         it would create a cycle with a link time dependency.
71872
71873 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71874
71875         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71876         instruction.
71877         * string/Makefile (strop-tests): Add rawmemchr.
71878         * string/test-rawmemchr.c: New file.
71879
71880         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71881         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71882         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71883         when compiling str{,n}casecmp and when AVX is available.  Hook up
71884         new optimized code in initializers.
71885
71886 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71887
71888         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71889         __feraiseexcept instead of feraiseexcept.
71890
71891 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71892
71893         * math/math_private.h: Define defaults for libc_fetestexcept and
71894         libc_feupdateenv.
71895         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71896         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71897         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71898         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71899         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71900         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71901         libc_fetestexcept and libc_feupdateenv.
71902
71903         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71904         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71905         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71906         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71907         libc_feholdexcept_setround.
71908
71909         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71910         Add s_nearbyint-c and s_nearbyintf-c.
71911         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71912         nearbyintf inlines.
71913         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71914         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71915         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71916         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71917
71918         * math/math_private.h: Define defaults for libc_fegetround,
71919         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71920         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71921         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71922         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71923         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71924         standard functions.
71925         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71926         Remove comments and hacks for old compiler versions.
71927         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71928         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71929         libc_feholdexceptl.
71930
71931 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71932
71933         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71934         (__feraiseexcept_renamed): Add __NTH.
71935         (feraiseexcept): Add __NTH.  Rename local variables to fix
71936         namespace violations.
71937
71938 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71939
71940         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71941
71942         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71943
71944         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71945         recently added interfaces.
71946         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71947
71948         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71949         about macro parameter expansion.
71950
71951         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71952         __NO_MATH_INLINES is defined.  Cleanups.
71953
71954         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71955         and __floorf is target has SSE4.1.
71956         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71957         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71958         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71959         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71960
71961         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71962         name.
71963         (floorf): Likewise.
71964
71965         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71966
71967 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71968
71969         * misc/sys/cdefs.h: Fix last change.
71970
71971         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71972         database lookup.
71973
71974 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71975
71976         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71977
71978         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71979         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71980         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71981         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71982         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71983         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71984         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71985         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71986         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71987         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71988         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71989         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71990         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71991         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71992         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71993         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71994         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71995         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71996         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71997         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71998         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71999         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
72000
72001         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
72002         ceil, ceilf, floor, floorf.
72003
72004         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
72005         Perform IRELATIVE relocations last.
72006
72007         * elf/do-rel.h: Add another parameter nrelative, replacing the
72008         local variable with the same name.  Change name of the function
72009         to end in Rel or Rela (uppercase).
72010         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
72011         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
72012         elf_dynamic_do_##reloc function.
72013
72014 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72015
72016         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
72017         is sufficient, at least on modern CPUs.
72018
72019         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
72020
72021         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
72022         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
72023
72024         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
72025         __expl_finite.
72026         * math/bits/math-finite.h: Add entries for exp.
72027         * math/e_expl.c: Add __*_finite alias.
72028         * sysdeps/i386/fpu/e_exp.S: Likewise.
72029         * sysdeps/i386/fpu/e_expf.S: Likewise.
72030         * sysdeps/i386/fpu/e_expl.c: Likewise.
72031         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
72032         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
72033         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
72034         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
72035         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
72036         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
72037         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
72038
72039         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
72040         is sufficient, at least on modern CPUs.
72041
72042         * ctype/ctype-info.c (__ctype_init): Define.
72043         * include/ctype.h (__ctype_init): Declare.
72044         (__ctype_b_loc): The variable is always initialized.
72045         (__ctype_toupper_loc): Likewise.
72046         (__ctype_tolower_loc): Likewise.
72047         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
72048         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
72049
72050 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
72051
72052         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
72053
72054         * configure.in: Also look in $cxxmachine/include for C++ system
72055         headers.
72056
72057 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72058
72059         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
72060         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
72061         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
72062         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
72063         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
72064         (USE_AS_WMEMCMP): New macro.
72065         Fixing indents.
72066         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
72067         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
72068         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
72069         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
72070         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72071         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
72072         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
72073         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
72074         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
72075         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
72076         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
72077         (USE_AS_WMEMCMP): New macro.
72078         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
72079         * sysdeps/string/test-memcmp.c: Update.
72080         Fix simple_wmemcmp.
72081         Add new tests.
72082         * wcsmbs/wmemcmp.c: Update.
72083         (WMEMCMP): New macro.
72084         Fix overflow bug.
72085
72086 2011-10-12  Andreas Jaeger  <aj@suse.de>
72087
72088         [BZ #13268]
72089         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
72090
72091 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72092
72093         * libio/iofwide.c (do_length): Avoid warning.
72094
72095         * ctype/ctype.h (__isctype_f): Add missing __THROW.
72096
72097 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
72098
72099         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
72100
72101         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
72102         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
72103         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
72104         * sysdeps/i386/i686/fpu/e_log.S: New file.
72105         * sysdeps/i386/i686/fpu/e_logf.S: New file.
72106         * sysdeps/i386/i686/fpu/e_logl.S: New file.
72107
72108         * ctype/ctype.h: Add support for inlined isXXX functions when
72109         compiling C++ code.
72110
72111 2011-10-14  Andreas Schwab  <schwab@redhat.com>
72112
72113         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72114
72115         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
72116
72117 2011-10-13  Roland McGrath  <roland@hack.frob.com>
72118
72119         [BZ #13291]
72120         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
72121
72122 2011-10-13  Andreas Schwab  <schwab@redhat.com>
72123
72124         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
72125         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
72126         feraiseexcept.
72127
72128         * sysdeps/x86_64/memrchr.S: Check for zero size.
72129
72130         * string/stratcliff.c: Add memrchr tests.
72131
72132 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72133
72134         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72135         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
72136         rawmemchr-sse2 rawmemchr-sse2-bsf.
72137         * sysdeps/i386/i686/multiarch/memchr.S: New file.
72138         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
72139         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
72140         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
72141         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
72142         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
72143         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
72144         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
72145         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
72146         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
72147         * string/memrchr.c (MEMRCHR): New macro.
72148
72149 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
72150
72151         Add integration with gcc's -ffinite-math-only and optimize wrapper
72152         functions in libm.
72153         * Versions.def: Define GLIBC_2.15 version for libm.
72154         * math/Makefile (headers): Add bits/math-finite.h.
72155         * math/bits/math-finite.h: New file.
72156         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
72157         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
72158         * math/e_acoshl.c: Add __*_finite alias.
72159         * math/e_acosl.c: Likewise.
72160         * math/e_asinl.c: Likewise.
72161         * math/e_atan2l.c: Likewise.
72162         * math/e_atanhl.c: Likewise.
72163         * math/e_coshl.c: Likewise.
72164         * math/e_exp10.c: Likewise.
72165         * math/e_exp10f.c: Likewise.
72166         * math/e_exp10l.c: Likewise.
72167         * math/e_exp2l.c: Likewise.
72168         * math/e_fmodl.c: Likewise.
72169         * math/e_gammal_r.c: Likewise.
72170         * math/e_hypotl.c: Likewise.
72171         * math/e_j0l.c: Likewise.
72172         * math/e_j1l.c: Likewise.
72173         * math/e_jnl.c: Likewise.
72174         * math/e_lgammal_r.c: Likewise.
72175         * math/e_log10l.c: Likewise.
72176         * math/e_log2l.c: Likewise.
72177         * math/e_logl.c: Likewise.
72178         * math/e_powl.c: Likewise.
72179         * math/e_sinhl.c: Likewise.
72180         * math/e_sqrtl.c: Likewise.
72181         * math/e_scalb.c: Completely rewritten and optimized.
72182         * math/e_scalbf.c: Likewise.
72183         * math/e_scalbl.c: Likewise.
72184         * math/w_acos.c: Likewise.
72185         * math/w_acosf.c: Likewise.
72186         * math/w_acosl.c: Likewise.
72187         * math/w_acosh.c: Likewise.
72188         * math/w_acoshf.c: Likewise.
72189         * math/w_acoshl.c: Likewise.
72190         * math/w_asin.c: Likewise.
72191         * math/w_asinf.c: Likewise.
72192         * math/w_asinl.c: Likewise.
72193         * math/w_atan2.c: Likewise.
72194         * math/w_atan2f.c: Likewise.
72195         * math/w_atan2l.c: Likewise.
72196         * math/w_atanh.c: Likewise.
72197         * math/w_atanhf.c: Likewise.
72198         * math/w_atanhl.c: Likewise.
72199         * math/w_exp10.c: Likewise.
72200         * math/w_exp10f.c: Likewise.
72201         * math/w_exp10l.c: Likewise.
72202         * math/w_fmod.c: Likewise.
72203         * math/w_fmodf.c: Likewise.
72204         * math/w_fmodl.c: Likewise.
72205         * math/w_j0.c: Likewise.
72206         * math/w_j0f.c: Likewise.
72207         * math/w_j0l.c: Likewise.
72208         * math/w_j1.c: Likewise.
72209         * math/w_j1f.c: Likewise.
72210         * math/w_j1l.c: Likewise.
72211         * math/w_jn.c: Likewise.
72212         * math/w_jnf.c: Likewise.
72213         * math/w_log.c: Likewise.
72214         * math/w_logf.c: Likewise.
72215         * math/w_logl.c: Likewise.
72216         * math/w_log10.c: Likewise.
72217         * math/w_log10f.c: Likewise.
72218         * math/w_log10l.c: Likewise.
72219         * math/w_log2.c: Likewise.
72220         * math/w_log2f.c: Likewise.
72221         * math/w_log2l.c: Likewise.
72222         * math/w_pow.c: Likewise.
72223         * math/w_powf.c: Likewise.
72224         * math/w_powl.c: Likewise.
72225         * math/w_remainder.c: Likewise.
72226         * math/w_remainderf.c: Likewise.
72227         * math/w_remainderl.c: Likewise.
72228         * math/w_scalb.c: Likewise.
72229         * math/w_scalbf.c: Likewise.
72230         * math/w_scalbl.c: Likewise.
72231         * math/w_sqrt.c: Likewise.
72232         * math/w_sqrtf.c: Likewise.
72233         * math/w_sqrtl.c: Likewise.
72234         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
72235         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
72236         used.
72237         * math/math_private.h: Declare __kernel_standard_f.
72238         * math/w_cosh.c: Remove cruft and optimize a bit.
72239         * math/w_coshf.c: Likewise.
72240         * math/w_coshl.c: Likewise.
72241         * math/w_exp2.c: Likewise.
72242         * math/w_exp2f.c: Likewise.
72243         * math/w_exp2l.c: Likewise.
72244         * math/w_hypot.c: Likewise.
72245         * math/w_hypotf.c: Likewise.
72246         * math/w_hypotl.c: Likewise.
72247         * math/w_lgamma.c: Likewise.
72248         * math/w_lgamma_r.c: Likewise.
72249         * math/w_lgammaf.c: Likewise.
72250         * math/w_lgammaf_r.c: Likewise.
72251         * math/w_lgammal.c: Likewise.
72252         * math/w_lgammal_r.c: Likewise.
72253         * math/w_sinh.c: Likewise.
72254         * math/w_sinhf.c: Likewise.
72255         * math/w_sinhl.c: Likewise.
72256         * math/w_tgamma.c: Likewise.
72257         * math/w_tgammaf.c: Likewise.
72258         * math/w_tgammal.c: Likewise.
72259         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72260         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72261         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
72262         Minor optimizations.  Pretty printing.  Remove cruft.
72263         * sysdeps/i386/fpu/e_acosf.S: Likewise.
72264         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72265         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72266         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72267         * sysdeps/i386/fpu/e_acosl.c: Likewise.
72268         * sysdeps/i386/fpu/e_asin.S: Likewise.
72269         * sysdeps/i386/fpu/e_asinf.S: Likewise.
72270         * sysdeps/i386/fpu/e_atan2.S: Likewise.
72271         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
72272         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
72273         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72274         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72275         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72276         * sysdeps/i386/fpu/e_exp10.S: Likewise.
72277         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
72278         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
72279         * sysdeps/i386/fpu/e_exp2.S: Likewise.
72280         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
72281         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
72282         * sysdeps/i386/fpu/e_fmod.S: Likewise.
72283         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
72284         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
72285         * sysdeps/i386/fpu/e_hypot.S: Likewise.
72286         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
72287         * sysdeps/i386/fpu/e_log.S: Likewise.
72288         * sysdeps/i386/fpu/e_log10.S: Likewise.
72289         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72290         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72291         * sysdeps/i386/fpu/e_log2.S: Likewise.
72292         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72293         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72294         * sysdeps/i386/fpu/e_logf.S: Likewise.
72295         * sysdeps/i386/fpu/e_logl.S: Likewise.
72296         * sysdeps/i386/fpu/e_pow.S: Likewise.
72297         * sysdeps/i386/fpu/e_powf.S: Likewise.
72298         * sysdeps/i386/fpu/e_powl.S: Likewise.
72299         * sysdeps/i386/fpu/e_remainder.S: Likewise.
72300         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
72301         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
72302         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72303         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72304         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72305         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
72306         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
72307         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
72308         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
72309         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
72310         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
72311         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
72312         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72313         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
72314         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
72315         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
72316         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
72317         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
72318         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
72319         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
72320         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
72321         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
72322         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
72323         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
72324         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
72325         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
72326         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
72327         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
72328         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
72329         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
72330         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72331         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72332         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
72333         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
72334         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72335         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
72336         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
72337         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
72338         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
72339         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
72340         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72341         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
72342         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
72343         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
72344         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
72345         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
72346         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
72347         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
72348         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
72349         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
72350         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
72351         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
72352         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72353         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
72354         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
72355         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
72356         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
72357         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
72358         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
72359         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
72360         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
72361         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72362         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
72363         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72364         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72365         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72366         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72367         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72368         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72369         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72370         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72371         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72372         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72373         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72374         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72375         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72376         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72377         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72378         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72379         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72380         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72381         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72382         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72383         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72384         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72385         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72386         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72387         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72388         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72389         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72390         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72391         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72392         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72393         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72394         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72395         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72396         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72397         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72398         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72399         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72400         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72401         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72402         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72403         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72404         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72405         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72406         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72407         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72408         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72409         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72410         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72411         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72412         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72413         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72414         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72415         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72416         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72417         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72418         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72419         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72420         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72421         (__isnanf): Likewise.
72422         (__isinf_ns): Likewise.
72423         (__isinf_nsf): Likewise.
72424         (__finite): Likewise.
72425         (__finitef): Likewise.
72426         (__ieee754_sqrt): Define as macro.
72427         (__ieee754_sqrtf): Define as macro.
72428         (__ieee754_sqrtl): Define as macro.
72429         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72430         inlined copy.
72431         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72432         __FINITE_MATH_ONLY__ consistent.
72433         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72434
72435 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72436
72437         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72438         of rawmemchr.
72439
72440         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72441
72442 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72443
72444         * po/ja.po: Update from translation team.
72445
72446 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72447
72448         * locale/programs/locarchive.c (prepare_address_space): New function.
72449         (create_archive, enlarge_archive, open_archive): Use it.
72450
72451         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72452         inside [SHARED], where it is used.
72453
72454         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72455
72456         * nss/getent.c (netgroup_keys): Remove unused variable.
72457         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72458
72459 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72460
72461         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72462         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72463         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72464         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72465         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72466         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72467         * math/Makefile (libm-calls): Add s_isinf_ns.
72468         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72469         * math/multc3.c: Likewise.
72470         * math/s_casin.c: Likewise.
72471         * math/s_casinf.c: Likewise.
72472         * math/s_casinl.c: Likewise.
72473         * math/s_ccos.c: Likewise.
72474         * math/s_ccosf.c: Likewise.
72475         * math/s_ccosl.c: Likewise.
72476         * math/s_ctan.c: Likewise.
72477         * math/s_ctanf.c: Likewise.
72478         * math/s_ctanh.c: Likewise.
72479         * math/s_ctanhf.c: Likewise.
72480         * math/s_ctanhl.c: Likewise.
72481         * math/s_ctanl.c: Likewise.
72482         * math/w_fmod.c: Likewise.
72483         * math/w_fmodf.c: Likewise.
72484         * math/w_fmodl.c: Likewise.
72485         * math/w_remainder.c: Likewise.
72486         * math/w_remainderf.c: Likewise.
72487         * math/w_remainderl.c: Likewise.
72488         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72489         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72490         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72491         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72492         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72493         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72494         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72495         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72496
72497         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72498         of the number.
72499         * stdio-common/printf_fphex.c: Likewise.
72500         * stdio-common/printf_size.c: Likewise.
72501
72502         * math/e_exp10.c: Include math_private.h using <...> not "...".
72503         * math/e_exp10f.c: Likewise.
72504         * math/e_exp10l.c: Likewise.
72505         * math/e_exp2l.c: Likewise.
72506         * math/e_j0l.c: Likewise.
72507         * math/e_j1l.c: Likewise.
72508         * math/e_jnl.c: Likewise.
72509         * math/e_lgammal_r.c: Likewise.
72510         * math/e_rem_pio2l.c: Likewise.
72511         * math/e_scalb.c: Likewise.
72512         * math/e_scalbf.c: Likewise.
72513         * math/e_scalbl.c: Likewise.
72514         * math/k_cosl.c: Likewise.
72515         * math/k_sinl.c: Likewise.
72516         * math/k_tanl.c: Likewise.
72517         * math/s_cacoshf.c: Likewise.
72518         * math/s_catan.c: Likewise.
72519         * math/s_catanf.c: Likewise.
72520         * math/s_catanh.c: Likewise.
72521         * math/s_catanhf.c: Likewise.
72522         * math/s_catanhl.c: Likewise.
72523         * math/s_catanl.c: Likewise.
72524         * math/s_ccosh.c: Likewise.
72525         * math/s_ccoshf.c: Likewise.
72526         * math/s_ccoshl.c: Likewise.
72527         * math/s_cexp.c: Likewise.
72528         * math/s_cexpf.c: Likewise.
72529         * math/s_cexpl.c: Likewise.
72530         * math/s_clog.c: Likewise.
72531         * math/s_clog10.c: Likewise.
72532         * math/s_clog10f.c: Likewise.
72533         * math/s_clog10l.c: Likewise.
72534         * math/s_clogf.c: Likewise.
72535         * math/s_clogl.c: Likewise.
72536         * math/s_csin.c: Likewise.
72537         * math/s_csinf.c: Likewise.
72538         * math/s_csinh.c: Likewise.
72539         * math/s_csinhf.c: Likewise.
72540         * math/s_csinhl.c: Likewise.
72541         * math/s_csinl.c: Likewise.
72542         * math/s_csqrt.c: Likewise.
72543         * math/s_csqrtf.c: Likewise.
72544         * math/s_csqrtl.c: Likewise.
72545         * math/s_ctan.c: Likewise.
72546         * math/s_ctanf.c: Likewise.
72547         * math/s_ctanh.c: Likewise.
72548         * math/s_ctanhf.c: Likewise.
72549         * math/s_ctanhl.c: Likewise.
72550         * math/s_ctanl.c: Likewise.
72551         * math/s_ldexp.c: Likewise.
72552         * math/s_ldexpf.c: Likewise.
72553         * math/s_ldexpl.c: Likewise.
72554         * math/s_significand.c: Likewise.
72555         * math/s_significandf.c: Likewise.
72556         * math/s_significandl.c: Likewise.
72557         * math/w_acos.c: Likewise.
72558         * math/w_acosf.c: Likewise.
72559         * math/w_acosh.c: Likewise.
72560         * math/w_acoshf.c: Likewise.
72561         * math/w_acoshl.c: Likewise.
72562         * math/w_acosl.c: Likewise.
72563         * math/w_asin.c: Likewise.
72564         * math/w_asinf.c: Likewise.
72565         * math/w_asinl.c: Likewise.
72566         * math/w_atan2.c: Likewise.
72567         * math/w_atan2f.c: Likewise.
72568         * math/w_atan2l.c: Likewise.
72569         * math/w_atanh.c: Likewise.
72570         * math/w_atanhf.c: Likewise.
72571         * math/w_atanhl.c: Likewise.
72572         * math/w_cosh.c: Likewise.
72573         * math/w_coshf.c: Likewise.
72574         * math/w_coshl.c: Likewise.
72575         * math/w_dremf.c: Likewise.
72576         * math/w_exp10.c: Likewise.
72577         * math/w_exp10f.c: Likewise.
72578         * math/w_exp10l.c: Likewise.
72579         * math/w_exp2.c: Likewise.
72580         * math/w_exp2f.c: Likewise.
72581         * math/w_fmod.c: Likewise.
72582         * math/w_fmodf.c: Likewise.
72583         * math/w_fmodl.c: Likewise.
72584         * math/w_hypot.c: Likewise.
72585         * math/w_hypotf.c: Likewise.
72586         * math/w_hypotl.c: Likewise.
72587         * math/w_j0.c: Likewise.
72588         * math/w_j0f.c: Likewise.
72589         * math/w_j0l.c: Likewise.
72590         * math/w_j1.c: Likewise.
72591         * math/w_j1f.c: Likewise.
72592         * math/w_j1l.c: Likewise.
72593         * math/w_jn.c: Likewise.
72594         * math/w_jnf.c: Likewise.
72595         * math/w_jnl.c: Likewise.
72596         * math/w_lgamma.c: Likewise.
72597         * math/w_lgamma_r.c: Likewise.
72598         * math/w_lgammaf.c: Likewise.
72599         * math/w_lgammaf_r.c: Likewise.
72600         * math/w_lgammal.c: Likewise.
72601         * math/w_lgammal_r.c: Likewise.
72602         * math/w_log.c: Likewise.
72603         * math/w_log10.c: Likewise.
72604         * math/w_log10f.c: Likewise.
72605         * math/w_log10l.c: Likewise.
72606         * math/w_log2.c: Likewise.
72607         * math/w_log2f.c: Likewise.
72608         * math/w_log2l.c: Likewise.
72609         * math/w_logf.c: Likewise.
72610         * math/w_logl.c: Likewise.
72611         * math/w_pow.c: Likewise.
72612         * math/w_powf.c: Likewise.
72613         * math/w_powl.c: Likewise.
72614         * math/w_remainder.c: Likewise.
72615         * math/w_remainderf.c: Likewise.
72616         * math/w_remainderl.c: Likewise.
72617         * math/w_scalb.c: Likewise.
72618         * math/w_scalbf.c: Likewise.
72619         * math/w_scalbl.c: Likewise.
72620         * math/w_sinh.c: Likewise.
72621         * math/w_sinhf.c: Likewise.
72622         * math/w_sinhl.c: Likewise.
72623         * math/w_sqrt.c: Likewise.
72624         * math/w_sqrtf.c: Likewise.
72625         * math/w_sqrtl.c: Likewise.
72626         * math/w_tgamma.c: Likewise.
72627         * math/w_tgammaf.c: Likewise.
72628         * math/w_tgammal.c: Likewise.
72629
72630         * po/ja.po: Update from translation team.
72631
72632 2011-09-29  Andreas Jaeger  <aj@suse.de>
72633
72634         [BZ #13179]
72635         * sunrpc/netname.c (netname2host): Fix logic.
72636
72637         [BZ #6779]
72638         [BZ #6783]
72639         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72640         correctly.
72641         * math/w_remainder.c (__remainder): Likewise.
72642         * math/w_remainderf.c (__remainderf): Likewise.
72643         * math/libm-test.inc (remainder_test): Add test cases.
72644
72645 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72646
72647         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72648         sdiv_qrnnd.
72649
72650 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72651
72652         * string/test-memcmp.c: Avoid unncessary #defines.
72653         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72654
72655 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72656
72657         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72658         Use new sse2 version for core i3 - i7 as it's faster
72659         than sse42 version.
72660         (bit_Prefer_PMINUB_for_stringop): New.
72661         * sysdeps/x86_64/rawmemchr.S: Update.
72662         Replace with faster SSE2 version.
72663         * sysdeps/x86_64/memrchr.S: New file.
72664         * sysdeps/x86_64/memchr.S: Update.
72665         Replace with faster SSE2 version.
72666
72667 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72668
72669         * elf/dl-load.c (lose): Add cast to avoid warning.
72670
72671 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72672
72673         * po/ca.po: Update from translation team.
72674
72675         * inet/getnetgrent_r.c: Hook up nscd.
72676         * nscd/Makefile (routines): Add nscd_netgroup.
72677         (nscd-modules): Add netgroupcache.
72678         (CFLAGS-netgroupcache.c): Define.
72679         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72680         (cache_search): Add const to second parameter.
72681         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72682         INNETGR.
72683         (dbs): Add netgrdb entry.
72684         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72685         (verify_persistent_db): Handle netgrdb.
72686         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72687         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72688         GETFDNETGR.
72689         (netgroup_response_header): Define.
72690         (innetgroup_response_header): Define.
72691         (datahead): Add netgroup_response_header and innetgroup_response_header
72692         elements.
72693         * nscd/nscd.conf: Add entries for netgroup cache.
72694         * nscd/nscd.h (dbtype): Add netgrdb.
72695         (_PATH_NSCD_NETGROUP_DB): Define.
72696         (netgroup_iov_disabled): Declare.
72697         (xmalloc, xcalloc, xrealloc): Move declarations here.
72698         (cache_search): Adjust prototype.
72699         Add netgroup-related prototypes.
72700         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72701         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72702         (__nscd_innetgr): Declare.
72703         * nscd/selinux.c (perms): Use access_vector_t as element type and
72704         add netgroup-related initializers.
72705         * nscd/netgroupcache.c: New file.
72706         * nscd/nscd_netgroup.c: New file.
72707         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72708         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72709         For four parameters use innetgr.
72710         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72711         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72712         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72713         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72714
72715         * nscd/connections.c (register_traced_file): Don't register file
72716         for disabled databases.
72717
72718 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72719
72720         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72721
72722         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72723         from tree and freeing node.
72724
72725 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72726
72727         * nss/nsswitch.c (__nss_database_lookup): Handle
72728         nss_parse_service_list out of memory case.
72729
72730 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72731
72732         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72733         out of memory case.
72734
72735 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72736
72737         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72738         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72739         pass it down.
72740         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72741         elf_machine_rela, elf_machine_lazy_rel.
72742         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72743         (ELF_DYNAMIC_DO_REL): Likewise.
72744         (ELF_DYNAMIC_DO_RELA): Likewise.
72745         (ELF_DYNAMIC_RELOCATE): Likewise.
72746         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72747         to ELF_DYNAMIC_DO_REL.
72748         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72749         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72750         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72751         elf_machine_rela.
72752         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72753         skip_ifunc, don't call ifunc function if non-zero.
72754         (elf_machine_rela): Likewise.
72755         (elf_machine_lazy_rel): Likewise.
72756         (elf_machine_lazy_rela): Likewise.
72757         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72758         (elf_machine_lazy_rel): Likewise.
72759         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72760         Likewise.
72761         (elf_machine_lazy_rel): Likewise.
72762         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72763         Likewise.
72764         (elf_machine_lazy_rel): Likewise.
72765         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72766         (elf_machine_lazy_rel): Likewise.
72767         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72768         (elf_machine_lazy_rel): Likewise.
72769         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72770         (elf_machine_lazy_rel): Likewise.
72771         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72772         (elf_machine_lazy_rel): Likewise.
72773         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72774         (elf_machine_lazy_rel): Likewise.
72775         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72776         (elf_machine_lazy_rel): Likewise.
72777
72778 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72779
72780         * nss/nss_files/files-init.c (_nss_files_init): Use static
72781         initialization for all the *_traced_file variables.
72782
72783 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72784
72785         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72786
72787 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72788
72789         [BZ #13226]
72790         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72791
72792 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72793
72794         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72795         Reread the line before reparsing it.
72796
72797 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72798
72799         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72800
72801 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72802             Maxim Kuvyrkov  <maxim@codesourcery.com>
72803             Joseph Myers  <joseph@codesourcery.com>
72804
72805         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72806         if needed for __stack_chk_guard.
72807
72808 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72809
72810         * sysdeps/posix/spawni.c (script_execute): Always define it.
72811         It will be optimized away if unused.
72812         (maybe_script_execute): New function.
72813         (__spawni): Call it.
72814
72815         * Makerules: Don't include tls.make.
72816         (config-tls): Always set to thread.
72817         * tls.make.c: File removed.
72818
72819 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72820
72821         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72822         * config.make.in (CPPFLAGS-config): New substituted variable.
72823
72824 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72825
72826         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72827
72828         [BZ #13192]
72829         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72830         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72831
72832 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72833
72834         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72835         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72836         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72837         (CALL_FAIL): Likewise.
72838         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72839         (CALL_FAIL): Macro removed.
72840         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72841
72842 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72843
72844         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72845         for __FINITE_MATH_ONLY__ == 1.
72846
72847 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72848
72849         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72850         __ieee754_sqrt instead of sqrt.
72851         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72852         __ieee754_sqrtf instead of sqrtf.
72853         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72854         __floorf instead of floorf.
72855         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72856         __floorf, __truncf instead of floorf, truncf.
72857
72858 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72859
72860         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72861
72862         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72863         __extern_always_inline.
72864         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72865         32-bit.
72866
72867 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72868
72869         * elf/rtld.c (dl_main): Also relocate in dependency order when
72870         doing symbol dependency testing.
72871
72872 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72873
72874         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72875         Always define `refsym'.
72876
72877 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72878
72879         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72880         (__FD_ELT): Renamed from __FDELT.
72881         * misc/bits/select2.h (__FD_ELT): Likewise.
72882         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72883         __FD_MASK instead of __FDELT, __FDMASK.
72884         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72885         Likewise.
72886         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72887         Likewise.
72888
72889         * elf/Makefile (gen-ldd): Fix pattern.
72890
72891         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72892         (init_tls): Likewise.
72893
72894 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72895
72896         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72897
72898 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72899
72900         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72901         `struct cmsghdr *' instead of `void *'.
72902         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72903         Likewise.
72904
72905 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72906
72907         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72908         if non-absolute.
72909         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72910         ldd_rewrite_script.
72911
72912 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72913
72914         * configure.in: Remove --with-tls option.
72915         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72916         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72917         out in case it is missing.
72918         * sysdeps/ia64/elf/configure.in: Likewise.
72919         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72920         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72921         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72922         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72923         * sysdeps/sh/elf/configure.in: Likewise.
72924         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72925         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72926         * sysdeps/x86_64/elf/configure.in: Likewise.
72927         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72928         * sysdeps/mach/hurd/tls.h: Likewise.
72929
72930         [BZ #13067]
72931         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72932
72933         [BZ #13090]
72934         * configure.in: Fix use of AC_INIT.
72935
72936         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72937
72938 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72939
72940         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72941         __set_errno.
72942         * malloc/hooks.c: Likewise.
72943
72944         [BZ #11929]
72945         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72946         variables statically.
72947         (narenas): Initialize.
72948         (list_lock): Initialize.
72949         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72950         initializtion of main_arena and list_lock.  Small cleanups.
72951         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72952         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72953         Add initializers to main_arena and mp_.
72954         (malloc_state): Remove pagesize member.  Change all users to use
72955         GLRO(dl_pagesize).
72956
72957         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72958         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72959         is always initialized.
72960
72961         * malloc/malloc.c: Removed unused configurations and dead code.
72962         * malloc/arena.c: Likewise.
72963         * malloc/hooks.c: Likewise.
72964         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72965
72966         * include/tls.h: Removed.  USE___THREAD must always be defined.
72967         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72968         * elf/dl-libc.c: Likewise.
72969         * elf/dl-tsd.c: Likewise.
72970         * include/errno.h: Likewise.
72971         * include/netdb.h: Likewise.
72972         * include/resolv.h: Likewise.
72973         * inet/herrno-loc.c: Likewise.
72974         * inet/herrno.c: Likewise.
72975         * malloc/arena.c: Likewise.
72976         * malloc/hooks.c: Likewise.
72977         * malloc/malloc.c: Likewise.
72978         * resolv/res-state.c: Likewise.
72979         * resolv/res_libc.c: Likewise.
72980         * sysdeps/i386/dl-machine.h: Likewise.
72981         * sysdeps/ia64/dl-machine.h: Likewise.
72982         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72983         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72984         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72985         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72986         * sysdeps/sh/dl-machine.h: Likewise.
72987         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72988         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72989         * sysdeps/unix/i386/sysdep.S: Likewise.
72990         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72991         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72992         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72993         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72994         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72995         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72996         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72997         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72998         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72999         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
73000         * sysdeps/unix/x86_64/sysdep.S: Likewise.
73001         * sysdeps/x86_64/dl-machine.h: Likewise.
73002         * tls.make.c: Likewise.
73003
73004         * configure.in: Remove --with-__thread option.  Make tests for
73005         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
73006         tls_model attribute fail if no support is available.  Remove
73007         USE_IN_LIBIO.
73008         * Makeconfig: Adjust for dropped configure option.  All features are
73009         now mandatory.
73010         * Makerules: Likewise.
73011         * Versions.def: Likewise.
73012         * argp/argp-fmtstream.c: Likewise.
73013         * argp/argp-fmtstream.h: Likewise.
73014         * argp/argp-help.c: Likewise.
73015         * assert/assert.c: Likewise.
73016         * config.h.in: Likewise.
73017         * config.make.in: Likewise.
73018         * configure: Likewise.
73019         * configure.in: Likewise.
73020         * csu/Versions: Likewise.
73021         * csu/init.c: Likewise.
73022         * elf/tst-audit2.c: Likewise.
73023         * elf/tst-tls10.c: Likewise.
73024         * elf/tst-tls10.h: Likewise.
73025         * elf/tst-tls11.c: Likewise.
73026         * elf/tst-tls12.c: Likewise.
73027         * elf/tst-tls14.c: Likewise.
73028         * elf/tst-tlsmod11.c: Likewise.
73029         * elf/tst-tlsmod12.c: Likewise.
73030         * elf/tst-tlsmod13.c: Likewise.
73031         * elf/tst-tlsmod13a.c: Likewise.
73032         * elf/tst-tlsmod14a.c: Likewise.
73033         * elf/tst-tlsmod15b.c: Likewise.
73034         * elf/tst-tlsmod16a.c: Likewise.
73035         * elf/tst-tlsmod16b.c: Likewise.
73036         * elf/tst-tlsmod7.c: Likewise.
73037         * elf/tst-tlsmod8.c: Likewise.
73038         * elf/tst-tlsmod9.c: Likewise.
73039         * gmon/gmon.c: Likewise.
73040         * grp/fgetgrent_r.c: Likewise.
73041         * grp/putgrent.c: Likewise.
73042         * hurd/fopenport.c: Likewise.
73043         * include/libc-symbols.h: Likewise.
73044         * include/tls.h: Likewise.
73045         * intl/gettextP.h: Likewise.
73046         * intl/loadinfo.h: Likewise.
73047         * locale/global-locale.c: Likewise.
73048         * locale/localeinfo.h: Likewise.
73049         * mach/devstream.c: Likewise.
73050         * malloc/arena.c: Likewise.
73051         * malloc/set-freeres.c: Likewise.
73052         * misc/err.c: Likewise.
73053         * misc/getttyent.c: Likewise.
73054         * misc/mntent_r.c: Likewise.
73055         * posix/getopt.c: Likewise.
73056         * posix/wordexp.c: Likewise.
73057         * pwd/fgetpwent_r.c: Likewise.
73058         * resolv/Versions: Likewise.
73059         * resolv/res_hconf.c: Likewise.
73060         * shadow/fgetspent_r.c: Likewise.
73061         * shadow/putspent.c: Likewise.
73062         * stdio-common/printf_fphex.c: Likewise.
73063         * stdio-common/tmpfile.c: Likewise.
73064         * stdlib/abort.c: Likewise.
73065         * stdlib/fmtmsg.c: Likewise.
73066         * sunrpc/auth_unix.c: Likewise.
73067         * sunrpc/clnt_perr.c: Likewise.
73068         * sunrpc/clnt_tcp.c: Likewise.
73069         * sunrpc/clnt_udp.c: Likewise.
73070         * sunrpc/clnt_unix.c: Likewise.
73071         * sunrpc/openchild.c: Likewise.
73072         * sunrpc/svc_simple.c: Likewise.
73073         * sunrpc/svc_tcp.c: Likewise.
73074         * sunrpc/svc_udp.c: Likewise.
73075         * sunrpc/svc_unix.c: Likewise.
73076         * sunrpc/xdr.c: Likewise.
73077         * sunrpc/xdr_array.c: Likewise.
73078         * sunrpc/xdr_rec.c: Likewise.
73079         * sunrpc/xdr_ref.c: Likewise.
73080         * sunrpc/xdr_stdio.c: Likewise.
73081
73082 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73083
73084         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
73085
73086 2011-07-03  Andreas Jaeger  <aj@suse.de>
73087
73088         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
73089         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
73090         regenerate with gen-libm-tests.pl.
73091
73092 2010-05-12  Petr Baudis  <pasky@suse.cz>
73093
73094         [BZ #11589]
73095         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
73096         around j0() zero points by switching to j1().
73097         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73098         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73099         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73100         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73101
73102 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73103
73104         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
73105         instead of 0.
73106         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
73107         instead of 0.
73108         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
73109         Patch in part by Pavel Roskin <proski@gnu.org>.
73110
73111         [BZ #13138]
73112         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
73113         realloc.
73114         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
73115         Free memory block if necessary.
73116
73117         [BZ #12847]
73118         * libio/genops.c (INTDEF): For string streams the _lock pointer can
73119         be NULL.  Don't lock in this case.
73120
73121 2011-09-09  Roland McGrath  <roland@hack.frob.com>
73122
73123         * elf/elf.h (ELFOSABI_GNU): New macro.
73124         (ELFOSABI_LINUX): Define to that.
73125
73126 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
73127
73128         * string/strncat.c (strncat): Undef the symbol in case it has been
73129         defined in bits/string.h.
73130
73131 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73132
73133         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
73134
73135         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
73136         link map.
73137
73138 2011-08-17  Andreas Jaeger  <aj@suse.de>
73139
73140         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
73141
73142 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
73143             Ian Lance Taylor  <iant@google.com>
73144
73145         * math/libm-test.inc (lround_test): New testcase.
73146         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
73147
73148 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
73149
73150         * Makefile: Remove support for automatic cvs check-ins.
73151         * Makerules: Likewise.
73152         * config.make.in: Likewise.
73153         * configure.in: Likewise.
73154         * intl/Makefile: Likewise.
73155         * locale/Makefile: Likewise.
73156         * po/Makefile: Likewise.
73157         * posix/Makefile: Likewise.
73158         * sysdeps/gnu/Makefile: Likewise.
73159         * sysdeps/mach/hurd/Makefile: Likewise.
73160         * sysdeps/sparc/sparc32/Makefile: Likewise.
73161
73162         [BZ #13118]
73163         * posix/Makefile (bug-regex32-ENV): Define.
73164         Patch by John Stanley <jpsinthemix@verizon.net>.
73165
73166         * misc/Makefile (headers): Add bits/select2.h.
73167         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
73168         * misc/bits/select2.h: New file.
73169         * include/bits/select2.h: New file.
73170         * debug/Makefile (routines): Add fdelt_chk.
73171         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
73172         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
73173         FD_ISSET.
73174         * debug/fdelt_chk.c: New file.
73175
73176         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
73177         * wcsmbs/test-wmemcmp.c: Likewise.
73178         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
73179         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
73180
73181 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73182
73183         * string/Makefile (strop-tests): Add memcmp.
73184         * string/test-wmemcmp.c: New file.
73185         * string/test-memcmp.c: Add wmemcmp support.
73186
73187 2011-09-08  Roland McGrath  <roland@hack.frob.com>
73188
73189         [BZ #13153]
73190         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
73191         2011-07-19 change.
73192
73193         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
73194         garbage value in a __mach_port_mod_refs call in the cases of the
73195         task-self and thread-self ports.
73196
73197 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73198
73199         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
73200
73201 2011-09-08  Andreas Schwab  <schwab@redhat.com>
73202
73203         * elf/dl-load.c (lose): Check for non-null L.
73204
73205 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73206
73207         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
73208
73209         * elf/dl-libc.c (dlerror_run): Pass back error code from
73210         dl_catch_error.
73211
73212         [BZ #13123]
73213         * elf/dl-load.c (lose): Free l_origin if it is valid.
73214
73215         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
73216         names.
73217         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
73218         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73219         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73220         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73221         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
73222         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
73223
73224 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73225
73226         * sysdeps/powerpc/fpu/e_hypot.c: New file.
73227         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
73228         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
73229         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
73230         * sysdeps/powerpc/fpu/k_cosf.c: New file.
73231         * sysdeps/powerpc/fpu/k_sinf.c: New file.
73232         * sysdeps/powerpc/fpu/s_cosf.c: New file.
73233         * sysdeps/powerpc/fpu/s_sinf.c: New file.
73234         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
73235         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
73236
73237 2011-08-15  Alan Modra  <amodra@gmail.com>
73238
73239         [BZ #13092]
73240         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
73241         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
73242         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
73243         ppc_mcount to static-only-routines.
73244         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
73245         __mcount_internal.
73246         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
73247         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
73248
73249 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
73250
73251         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
73252         for finite and infinity parameters.
73253
73254 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73255
73256         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
73257         and add nop instructions for throughput optimization.
73258         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
73259
73260 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
73261
73262         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
73263         aligned copy for power7 with vector-scalar instructions.
73264         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
73265
73266 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
73267
73268         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
73269         AVX check.
73270
73271 2011-09-07  Andreas Schwab  <schwab@redhat.com>
73272
73273         [BZ #13144]
73274         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
73275         last change.
73276
73277 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73278
73279         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73280         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
73281         syscall wrapper around clock_gettime in __vdso_clock_gettime.
73282         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
73283         clock_gettime.
73284
73285 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73286
73287         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
73288         Forgot to demangle the pointer.
73289
73290         * sysdeps/i386/sysdep.h: Define atom_text_section.
73291         * sysdeps/x86_64/sysdep.h: Likewise.
73292         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
73293         section with atom_text_section.
73294         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73295         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73296         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
73297         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73298         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
73299
73300         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
73301         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
73302         already be defined.  Change to take two parameters and don't assign
73303         result to variable.  Adjust all users.
73304         Define INTERNAL_GETTIME if not already defined.
73305         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
73306         call.
73307         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
73308         HAVE_CLOCK_GETTIME_VSYSCALL.
73309         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
73310
73311         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
73312         gettimeofday vsyscall, just use time.
73313
73314 2011-09-06  Andreas Schwab  <schwab@redhat.com>
73315
73316         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
73317         <errno.h>.
73318
73319 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73320
73321         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
73322         syscall on x86-64.
73323         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
73324         syscall.
73325         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
73326         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
73327         syscall if possible.
73328
73329 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73330
73331         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
73332         e_ident.  Don't pass to find_mapsXX.
73333         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
73334
73335 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73336
73337         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73338         strchr-sse2-no-bsf strrchr-sse2-no-bsf
73339         * sysdeps/x86_64/multiarch/strchr.S: Update.
73340         Check bit_slow_BSF bit.
73341         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
73342         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
73343         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
73344
73345 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73346
73347         [BZ #13134]
73348         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
73349         before glibc 2.15.
73350         (tryshell): Define.
73351         (__spawni): Change last parameter to be flag.  Test
73352         SPAWN_XFLAGS_USE_PATH flag to use path or not.
73353         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
73354         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
73355         * posix/spawni.c: Likewise.
73356         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
73357         * posix/spawnp.c: Likewise.  Change normal version to use
73358         SPAWN_XFLAGS_USE_PATH.
73359         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
73360         SPAWN_XFLAGS_TRY_SHELL.
73361
73362         [BZ #13150]
73363         * posix/glob.h: Remove gcc 1.x support.
73364
73365         [BZ #13068]
73366         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73367
73368 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73369
73370         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73371         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73372         strrchr-sse2-bsf
73373         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73374         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73375         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73376         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73377         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73378         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73379
73380 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73381
73382         * sysdeps/x86_64/wcscmp.S: New file.
73383
73384         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73385         wcscmp-c wcscmp-sse2
73386         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73387         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73388         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73389         * wcsmbs/wcscmp.c: Allow renaming.
73390
73391 2011-09-05  David S. Miller  <davem@davemloft.net>
73392
73393         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73394         stack slot, rather than the struct return pointer slot.
73395         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73396         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73397         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73398         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73399
73400 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73401
73402         * po/ja.po: Update from translation team.
73403
73404         [BZ #13144]
73405         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73406         kernel in 64-bit binaries.
73407
73408 2011-09-01  David S. Miller  <davem@davemloft.net>
73409
73410         * elf/elf.h (HWCAP_SPARC_*): Move to..
73411         * sysdeps/sparc/sysdep.h: this new file and add new values.
73412         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73413         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73414         _DL_HWCAP_COUNT to 24.
73415         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73416         entries.
73417         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73418         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73419         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73420         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73421         instead of magic constants.
73422         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73423
73424 2011-08-31  David S. Miller  <davem@davemloft.net>
73425
73426         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73427         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73428         Reimplement to do errno handling inline.
73429         (SYSCALL_ERROR_HANDLER): New macro.
73430         (__SYSCALL_STRING): Do not do errno handling in asm.
73431         (__CLONE_SYSCALL_STRING): Delete.
73432         (__INTERNAL_SYSCALL_STRING): Delete.
73433         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73434         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73435         (PSEUDO): Reimplement to do errno handling inline.
73436         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73437         (SYSCALL_ERROR_HANDLER): New macro.
73438         (__SYSCALL_STRING): Do not do errno handling in asm.
73439         (__CLONE_SYSCALL_STRING): Delete.
73440         (__INTERNAL_SYSCALL_STRING): Delete.
73441         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73442         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73443         i386.
73444         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73445         (inline_syscall*): Add 'err' argument.
73446         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73447         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73448         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73449         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73450
73451         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73452         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73453
73454 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73455
73456         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73457
73458 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73459
73460         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73461         directive.
73462
73463 2011-08-24  David S. Miller  <davem@davemloft.net>
73464
73465         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73466
73467 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73468
73469         * elf/Makefile: Add rules to build and run unload8 test.
73470         * elf/unload8.c: New file.
73471         * elf/unload8mod1.c: New file.
73472         * elf/unload8mod1x.c: New file.
73473         * elf/unload8mod2.c: New file.
73474         * elf/unload8mod3.c: New file.
73475
73476         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73477         it wasn't used.
73478
73479 2011-08-23  David S. Miller  <davem@davemloft.net>
73480
73481         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73482         subtract stack bias.
73483         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73484         %sp not %fp in calculations.
73485         (_JMPBUF_UNWINDS_ADJ): Likewise.
73486
73487         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73488         (aio_suspend): Call it to force an exception region around the
73489         AIO_MISC_WAIT() invocation.
73490
73491 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73492
73493         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73494         backslash.
73495
73496 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73497
73498         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73499         protection macro.
73500         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73501         and <dl-machine.h>.
73502         (Elf64_FuncDesc): Remove.
73503
73504 2011-08-22  David S. Miller  <davem@davemloft.net>
73505
73506         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73507         sigaltstack check, add missing cfi directives.
73508         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73509         missing cfi directives, and sigaltstack handling.
73510
73511 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73512
73513         [BZ #11724]
73514         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73515         object is seen twice.
73516         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73517
73518         * elf/Makefile (distribute): Add tst-initorder2.c.
73519         (tests): Add tst-initorder2.
73520         (modules-names): Add tst-initorder2a tst-initorder2b
73521         tst-initorder2c tst-initorder2d.  Add rules to build them.
73522         ($(objpfx)tst-initorder2.out): New rule.
73523         * elf/tst-initorder2.c: New file.
73524         * elf/tst-initorder2.exp: New file.
73525
73526 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73527
73528         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73529
73530         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73531         dependencies back to end of function.
73532
73533         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73534         $(elfobjdir)/ld.so.
73535
73536 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73537
73538         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73539         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73540         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73541         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73542         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73543         of __vdso_gettimeofday.
73544         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73545         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73546         attribute_hidden.
73547         (_libc_vdso_platform_setup): Remove initialization of
73548         __vdso_gettimeofday and __vdso_time.
73549
73550 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73551
73552         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73553         and fgetc_unlocked.
73554         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73555         getc_unlocked.
73556
73557         * elf/dl-open.c (add_to_global): Report additions to the global scope
73558         for LD_DEBUG=scopes.
73559         (dl_open_worker): Also print scope of newly loaded dependencies.
73560         (_dl_show_scope): Indicate if there is no scope.
73561
73562         [BZ #13114]
73563         * stdio-common/Makefile (tests): Add bug24.
73564         * stdio-common/bug24.c: New file.
73565
73566 2011-08-19  Andreas Jaeger  <aj@suse.de>
73567
73568         [BZ #13114]
73569         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73570         non-existant file when using close-on-exec mode.
73571
73572 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73573
73574         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73575         the very first instruction.
73576
73577         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73578         the CFI state in the end.
73579         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73580         inclusion of dl-trampoline.h.
73581         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73582
73583 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73584
73585         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73586         expectations for long double.
73587
73588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73589         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73590
73591 2011-08-14  David S. Miller  <davem@davemloft.net>
73592
73593         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73594         artificual limit depends upon the system page size.
73595
73596 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73597
73598         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73599         * resolv/Makefile: Define CFLAGS-libresolv.
73600
73601 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73602
73603         * nss/makedb.c (compute_tables): Make variables used in nested
73604         function static.
73605
73606 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73607
73608         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73609         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73610         if buffer was too small.
73611
73612         * elf/pldd.c (main): Attach to all threads in the process.
73613         Rewrite /proc handling to use *at functions.
73614
73615 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73616
73617         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73618         specifies first scope to show.
73619         (dl_open_worker): Update callers.  Move printing scope of new
73620         object to before the relocation.
73621         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73622         * sysdeps/generic/ldsodefs.h: Update declaration.
73623
73624         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73625         string for the scope number.
73626
73627 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73628
73629         * nscd/servicescache.c (cache_addserv): Make sure written is always
73630         initialized.
73631
73632 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73633
73634         * sysdeps/i386/i486/bits/atomic.h
73635         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73636         statement expression, so as to suppress "set but not used" warning.
73637         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73638
73639         * string/strncat.c (STRNCAT): Use prototype definition.
73640
73641         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73642         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73643         -Iprograms here.
73644         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73645         (localedef-modules): Add localedef.
73646         (locale-modules): Add locale.
73647
73648         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73649         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73650         to avoid a warning.
73651
73652 2011-08-14  David S. Miller  <davem@davemloft.net>
73653
73654         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73655         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73656
73657 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73658
73659         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73660         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73661         * elf/rtld.c (dl_main): Set l_name of vDSO.
73662         Call _dl_show_scope when DL_DEBUG_SCOPES.
73663         (process_dl_debug): Recognize scopes flag and also set it for all.
73664         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73665         Declare _dl_show_scope.
73666
73667         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73668         (do_dlopen): Pass caller_dlopen to dl_open.
73669         (__libc_dlopen_mode): Initialize caller_dlopen.
73670
73671         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73672         of libc.  Make tolower call locale-independent.  Optimize a bit by
73673         using isdigit instead of isalnum.
73674         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73675
73676 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73677
73678         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73679         was a dependency or dynamically loaded.
73680
73681 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73682
73683         * intl/l10nflist.c: Allow architecture-specific pop function.
73684         * sysdeps/x86_64/l10nflist.c: New file.
73685
73686         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73687         classification.
73688
73689 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73690
73691         * include/dirent.h: Add libc_hidden_proto for scandirat and
73692         scandirat64.  Don't declare __scandirat64.
73693         * dirent/scandirat.c: Add libc_hidden_def.
73694         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73695         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73696
73697 2011-08-10  David S. Miller  <davem@davemloft.net>
73698
73699         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73700         enum.
73701         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73702         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73703         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73704
73705 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73706
73707         * Versions.def [libc]: Add GLIBC_2.15.
73708         * dirent/Makefile (routines): Add scandirat and scandirat64.
73709         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73710         GLIBC_2.15.
73711         * dirent/dirent.h: Declare scandirat and scandirat64.
73712         * dirent/scandirat.c: New file.
73713         * dirent/scandirat64.c: New file.
73714         * sysdeps/wordsize-64/scandirat.c: New file.
73715         * sysdeps/wordsize-64/scandirat64.c: New file.
73716         * dirent/opendir.c: Define opendirat.
73717         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73718         using scandirat.
73719         * dirent/scandir64.c: Adjust for scandir.c change.
73720         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73721         __scandirat64, and __scandir_cancel_handler.
73722         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73723         additional parameter and use openat instead of open (outside of ld.so).
73724         Add new __opendir as wrapper around __opendirat.
73725         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73726         here without requiring old scandirat implementation.
73727
73728 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73729
73730         * dirent/scandir.c (cancel_handler): Renamed to
73731         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73732         defined.  Adjust users.
73733         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73734         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73735
73736 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73737
73738         * string/test-string.h (IMPL): Use __STRING to expand name and then
73739         stringify it.
73740
73741         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73742         of cleanups.
73743
73744 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73745
73746         * string/Makefile: Update.
73747         (strop-tests): Append strncat.
73748         * string/test-wcscmp.c: New file.
73749         New comprehensive test for wcscmp.
73750         * string/test-strcmp.c: Update.
73751         (WIDE): New define.
73752
73753 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73754
73755         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73756         line.
73757
73758 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73759
73760         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73761         encoding to ACE if AI_IDN.
73762
73763 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73764
73765         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73766         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73767
73768 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73769
73770         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73771         Fix overflow bug in strncat.
73772         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73773
73774         * string/test-strncat.c: Update.
73775         Add new tests for checking overflow bugs.
73776
73777 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73778
73779         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73780         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73781         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73782         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73783         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73784         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73785         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73786         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73787         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73788
73789         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73790         (USE_AS_STRCAT): Define.
73791         Add strcat and strncat support.
73792         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73793
73794 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73795
73796         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73797         __n bigger than INT_MAX+1.
73798         (__strncmp_g): Likewise.
73799
73800 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73801
73802         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73803         * libio/stido.h: Likewise.
73804
73805         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73806         (AF_NFC): Define.
73807         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73808         (AF_NFC): Define.
73809
73810         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73811         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73812         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73813         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73814         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73815
73816         [BZ #13021]
73817         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73818         installed.
73819
73820         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73821         typo.
73822         (_dl_x86_64_save_sse): Likewise.
73823
73824 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73825
73826         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73827         OSXSAVE.
73828         (_dl_x86_64_save_sse): Likewise.
73829
73830         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73831
73832         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73833
73834 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73835
73836         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73837         change.
73838         (_dl_x86_64_save_sse): Use correct AVX check.
73839
73840 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73841
73842         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73843         bug in strncpy/strncat.
73844         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73845
73846 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73847
73848         * string/tester.c (test_strcat): Add tests for different alignments
73849         of source and destination.
73850         (test_strncat): Likewise.
73851
73852 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73853
73854         [BZ #12852]
73855         * posix/glob.c (glob): Check passed in values before using them in
73856         expressions to avoid some overflows.
73857         (glob_in_dir): Likewise.
73858
73859         [BZ #13007]
73860         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73861         check for AVX enablement so that we don't crash with old kernels and
73862         new hardware.
73863         * elf/tst-audit4.c: Add same checks here.
73864         * elf/tst-audit6.c: Likewise.
73865
73866         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73867
73868 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73869
73870         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73871
73872 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73873
73874         * po/cs.po: Update from translation team.
73875         * po/bg.po: Likewise.
73876
73877 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73878
73879         * misc/sys/cdefs.h: Add support for const attribute.
73880         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73881         to gnu_dev_{major,minor,makedev} functions.
73882
73883 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73884
73885         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73886
73887 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73888
73889         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73890         strlen results.
73891
73892 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73893
73894         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73895         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73896         register in order to avoid conflicts with the soft frame pointer
73897         being held in r11 when necessary.
73898         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73899         (INTERNAL_VSYSCALL_NCS): Likewise.
73900
73901 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73902
73903         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73904         * elf/dl-fini.c (_dl_fini): Adjust caller.
73905         * elf/dl-close.c (_dl_close_worker): Likewise.
73906         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73907
73908 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73909
73910         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73911         "aux_cache->nlibs < 0".
73912
73913         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73914         in the reload-count case.
73915
73916 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73917
73918         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73919         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73920         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73921         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73922         * sysdeps/x86_64/multiarch/strcat.S: New file.
73923         * sysdeps/x86_64/multiarch/strncat.S: New file.
73924         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73925         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73926         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73927         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73928         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73929         (USE_AS_STRCAT): Define.
73930         Add strcat and strncat support.
73931         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73932         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73933         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73934         * string/strncat.c: Update.
73935         (USE_AS_STRNCAT): Define.
73936         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73937         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73938         and i7.
73939         * sysdeps/x86_64/multiarch/init-arch.h
73940         (bit_Prefer_PMINUB_for_stringop): New.
73941         (index_Prefer_PMINUB_for_stringop): Likewise.
73942         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73943         bit_Prefer_PMINUB_for_stringop.
73944
73945 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73946
73947         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73948         buffer64.
73949         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73950         of casting of buffer.
73951         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73952         buffer32 and buffer64.
73953         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73954         writes instead of casting of buffer.
73955         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73956         buffer32.
73957         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73958         casting of buffer.
73959
73960 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73961
73962         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73963
73964 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73965
73966         * nscd/nscd.c (termination_handler): Don't do anything for a database
73967         if it has not yet been initialized.
73968
73969 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73970
73971         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73972
73973 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73974
73975         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73976
73977 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73978
73979         * po/nl.po: Update from translation team.
73980         * po/sv.po: Likewise.
73981
73982 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73983
73984         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73985         now disallowed by GCC.
73986
73987         * configure.in (use-default-link): Default to yes if a test -shared
73988         link meets our qualifications.
73989         * configure: Regenerated.
73990
73991         * config.make.in (output-format): New variable.
73992         * configure.in: Check for ld --print-output-format support.
73993         * configure: Regenerated.
73994         * Makerules ($(common-objpfx)format.lds)
73995         [$(output-format) != unknown]: Just use $(output-format),
73996         instead of the linker-script munging.
73997
73998 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73999
74000         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
74001         of $(common-objpfx)shlib.lds.
74002         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
74003
74004         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
74005         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
74006
74007         * configure.in (-z relro check): Adjust test code to add a large
74008         writable data section after it.
74009         * configure: Regenerated.
74010
74011 2011-07-11  Roland McGrath  <roland@hack.frob.com>
74012
74013         * configure.in (-z relro check): Fix test code to make the variable
74014         truly const.
74015         * configure: Regenerated.
74016
74017 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
74018
74019         * nscd/nscd.h (struct traced_file): Define.
74020         (struct database_dyn): Remove inotify_descr, reset_res, and filename
74021         elements.  Add traced_files.
74022         (inotify_fd): Declare.
74023         (register_traced_file): Declare.
74024         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
74025         (inotify_fd): Export.
74026         (resolv_conf_descr): Remove.
74027         (nscd_init): Move inotify descriptor creation to main.
74028         Don't register files for notification here.
74029         (register_traced_file): New function.
74030         (invalidate_cache): Don't use reset_res to determine whether to call
74031         res_init, go through the list of registered files.
74032         (main_loop_poll): The inotify descriptors are now stored in the
74033         structures for the traced files.
74034         (main_loop_epoll): Likewise.
74035         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
74036         to __nss_disable_nscd.
74037         * nscd/cache.c (prune_cache): There is no single inotify descriptor
74038         for a database anymore.  Check the records for all the registered
74039         files instead.
74040         * nss/Makefile (libnss_files-routines): Add files-init.
74041         (libnss_db-routines): Add db-init.
74042         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
74043         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
74044         * nss/nss_db/db-init.c: New file.
74045         * nss/nss_files/files-init.c: New file.
74046         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
74047         __nss_lookup_function.
74048         (__nss_lookup_function): Call nss_load_library.
74049         (nss_load_all_libraries): New function.
74050         (__nss_disable_nscd): Take parameter with callback function for files
74051         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
74052         used for the cached services.
74053         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
74054         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
74055         options for features to all the files in nscd.
74056
74057         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
74058
74059 2011-07-10  Roland McGrath  <roland@hack.frob.com>
74060
74061         * csu/elf-init.c (__libc_csu_init): Comment typo.
74062
74063 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
74064
74065         * po/pl.po: Update from translation team.
74066         * po/ja.po: Likewise.
74067         * po/ru.po: Likewise.
74068         * po/ko.po: Likewise.
74069         * po/fr.po: Likewise.
74070
74071 2011-07-09  Roland McGrath  <roland@hack.frob.com>
74072
74073         * configure.in (.ctors/.dtors header and trailer check):
74074         Use an empirical test on a built program.
74075         * configure: Regenerated.
74076
74077         * configure.in (-z relro check): Use an empirical test on a built DSO.
74078         Detect, but do not require, on ia64.
74079         * configure: Regenerated.
74080
74081         * configure.in (READELF): Find it with AC_CHECK_TOOL.
74082         Update tests that use readelf to use $READELF instead.
74083         * configure: Regenerated.
74084
74085 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
74086
74087         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
74088         if the result is not used.
74089
74090 2011-07-05  Andreas Jaeger  <aj@suse.de>
74091
74092         [BZ#9696]
74093         * stdlib/tst-strtod.c: Add testcase.
74094
74095 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
74096
74097         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
74098         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
74099         The latter has a higher limit.  Take additional parameter to pass to
74100         the new function.
74101         (__pathconf): Pass file to __statfs_link_max.
74102         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
74103         __statfs_link_max.
74104         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
74105         __statfs_link_max.
74106
74107         [BZ #12868]
74108         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
74109         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
74110         Handle Lustre.
74111         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
74112         (__statfs_filesize_max): Likewise.
74113         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
74114
74115 2011-07-05  Andreas Jaeger  <aj@suse.de>
74116
74117         * resolv/res_comp.c (dn_skipname): Remove unused variable.
74118
74119 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
74120
74121         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
74122         `status' variable.
74123         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
74124         Likewise.
74125
74126 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
74127
74128         * Makefile (strop-tests): Add strncat.
74129         * string/test-strncat.c: New file.
74130
74131 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
74132
74133         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
74134
74135 2011-06-21  Andreas Jaeger  <aj@suse.de>
74136
74137         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
74138         Copy rule from iconvdata/Makefile.
74139
74140 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74141
74142         [BZ #12922]
74143         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
74144         but no long options are defined, just return 'W'.
74145
74146 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
74147
74148         [BZ #9696]
74149         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
74150
74151 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74152
74153         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
74154         netgroups to read.
74155         (innetgr): Likewise.
74156
74157 2011-07-05  Roland McGrath  <roland@hack.frob.com>
74158
74159         * config.make.in (install_root): Default to $(DESTDIR).
74160
74161 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
74162
74163         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
74164
74165 2011-07-02  Roland McGrath  <roland@hack.frob.com>
74166
74167         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
74168
74169         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
74170         containing directory rather than embedding absolute directory names.
74171
74172         * scripts/check-local-headers.sh: Rewritten using awk.
74173         Match by word, not by line.  Print error messages for matches.
74174         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
74175
74176         * Makerules [shlib-lds-flags empty]:
74177         ($(common-objpfx)libc_pic.opts): New target.
74178         ($(common-objpfx)libc_pic.os.clean): New target.
74179         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
74180
74181         * config.make.in (OBJCOPY): New variable.
74182         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
74183         * configure: Regenerated.
74184
74185         * config.make.in (use-default-link): New variable.
74186         * configure.in (use_default_link): Grok --with-default-link to set it.
74187         * configure: Regenerated.
74188         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
74189         (shlib-lds, shlib-lds-flags): Define to empty.
74190
74191         * Makerules (shlib-lds): New variable.
74192         (shlib-lds-flags): New variable.
74193         (build-shlib, build-moduile, build-module-asneeded): Use it.
74194         ($(common-objpfx)libc.so): Use $(shlib-lds).
74195         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
74196         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
74197
74198         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
74199         DT_FLAGS/DT_FLAGS_1 with zero flags.
74200
74201         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
74202         linker script munging.
74203
74204 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
74205
74206         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
74207         as 128-bit value.
74208         * crypt/sha512.c (sha512_process_block): Perform total addition using
74209         128-bit if possible.
74210         (__sha512_finish_ctx): Likewise.
74211         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
74212         as 64-bit value.
74213         * crypt/sha256.c (SWAP64): Define.
74214         (sha256_process_block): Perform total addition using 64-bit if
74215         possible.
74216         (__sha256_finish_ctx): Likewise.
74217
74218 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
74219
74220         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
74221         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74222         * nscd/hstcache.c (cache_addhst): Likewise.
74223         * nscd/grpcache.c (cache_addgr): Likewise.
74224         * nscd/aicache.c (addhstaiX): Likewise.
74225         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
74226
74227 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
74228
74229         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
74230         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74231         * nscd/hstcache.c (cache_addhst): Likewise.
74232         * nscd/grpcache.c (cache_addgr): Likewise.
74233         * nscd/aicache.c (addhstaiX): Likewise.
74234
74235 2011-07-01  Andreas Schwab  <schwab@redhat.com>
74236
74237         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
74238         domain only when needed.
74239
74240 2011-06-30  Andreas Schwab  <schwab@redhat.com>
74241
74242         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
74243         is always restored.
74244
74245 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
74246
74247         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
74248         are re-adding the entry.
74249         * nscd/servicescache.c (cache_addserv): Likewise.
74250
74251 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
74252
74253         * sysdeps/generic/dl-irel.h: fix protection against multiple
74254         inclusions.
74255         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
74256
74257 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
74258
74259         [BZ #12935]
74260         * malloc/memusage.sh: Fix quoting in message.
74261         * debug/xtrace.sh: Likewise.
74262
74263         * configure.in: Remove support for --experimental-malloc option, make
74264         it the default.
74265         * config.make.in: Likewise.
74266         * malloc/Makefile: Likewise.
74267
74268 2011-06-27  Andreas Schwab  <schwab@redhat.com>
74269
74270         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
74271         two-byte characters.
74272
74273 2011-06-27  Roland McGrath  <roland@hack.frob.com>
74274
74275         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
74276         AC_CACHE_CHECK invocation.
74277         * configure: Regenerated.
74278
74279         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
74280
74281 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
74282
74283         [BZ #12350]
74284         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
74285         bit from old_res_options.
74286
74287         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
74288
74289         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
74290         value type for setfct.
74291
74292 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
74293
74294         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74295         __gettimeofday instead of gettimeofday.
74296
74297 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
74298
74299         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
74300
74301 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
74302
74303         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
74304
74305         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
74306         info.
74307
74308 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74309
74310         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74311         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74312         strcpy-sse2-unaligned strncpy-sse2-unaligned
74313         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
74314         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
74315         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
74316         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
74317         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
74318         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
74319         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
74320         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
74321         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
74322         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
74323         (STRCPY): Support SSE2 and SSSE3 versions.
74324
74325 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
74326
74327         [BZ #12874]
74328         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
74329         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
74330         kernels which artificially limit size of requests.
74331
74332 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74333
74334         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74335         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74336         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
74337         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
74338         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
74339         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
74340         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
74341         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
74342         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
74343         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
74344         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
74345         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
74346         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
74347         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
74348         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
74349         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74350         Enable unaligned load optimization for Intel Core i3, i5 and i7
74351         processors.
74352         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
74353         Define.
74354         (index_Fast_Unaligned_Load): Define.
74355         (HAS_FAST_UNALIGNED_LOAD): Define.
74356
74357 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
74358
74359         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
74360
74361 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74362
74363         [BZ #12907]
74364         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74365         until it is clear that the information is realy needed.
74366         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74367
74368 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74369
74370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74371
74372 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74373
74374         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74375         /sys/devices/system/cpu/online if it is usable.
74376
74377         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74378         reading the information from the /proc filesystem to once a second.
74379
74380 2011-06-21  Andreas Jaeger  <aj@suse.de>
74381
74382         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74383         NULL after inclusion of kernel headers.
74384
74385 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74386
74387         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74388         calls to internal_setent.
74389
74390         [BZ #12885]
74391         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74392         addresses using gethostbyname4_r ignore IPv4 addresses.
74393
74394         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74395         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74396
74397         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74398
74399 2011-06-20  David S. Miller  <davem@davemloft.net>
74400
74401         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74402         inclusions.
74403         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74404
74405         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74406         (elf_irel): Use it.
74407         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74408         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74409         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74410         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74411         * sysdeps/x86_64/dl-irel.h: Likewise.
74412
74413         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74414         * elf/dl-sym.c: Likewise.
74415
74416 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74417
74418         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74419         need to dereference resplen2.
74420
74421 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74422
74423         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74424
74425 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74426
74427         * Makeconfig: Define vardbdir and inst_vardbdir.
74428         * nss/Makefile: Add rules to install db-Makefile.
74429
74430         * nss/nss_db/db-XXX.c: Cleanup.
74431
74432         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74433         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74434         GLIBC_PRIVATE.
74435         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74436         * nss/makedb.c: Implement -g option to specify that value strings
74437         are generated and should not be added to table iterated over for
74438         get*ent calls.
74439         * nss/nss_db/db-initgroups.c: New file.
74440
74441         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74442         interface.
74443
74444         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74445         (internal_getgrouplist): Adjust to name change.
74446         Update use_initgroups_entry if this is not the first call.
74447         * nss/databases.def: Add initgroups entry.
74448
74449         * nss/makedb.c (compute_tables): Check result of multiple hash table
74450         sizes to minimize maximum chain length.
74451
74452 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74453
74454         * Versions.def: Add entry for libnss_db.
74455         * shlib-versions: Likewise.
74456         * nss/Makefile: Add rules to build libnss_db.
74457         * nss/Versions: Add libnss_db information.  Organize libnss_files
74458         entries better.
74459         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74460         makedb progra.  Some minor improvements to generate smaller files.
74461         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74462         here from...
74463         * nss/makedb.c: ...here.
74464         Improve database format to be smaller and require less memory at
74465         runtime.
74466         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74467         db anymore.
74468         * nss/nss_db/db-netgrp.c: Likewise.
74469         * nss/nss_db/db-open.c: Likewise.
74470         * nss/nss_files/flies-XXX.x: Adjust comments.
74471         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74472         * nss/nss_files/files-grp.c: Likewise.
74473         * nss/nss_files/files-hosts.c: Likewise.
74474         * nss/nss_files/files-network.c: Likewise.
74475         * nss/nss_files/files-proto.c: Likewise.
74476         * nss/nss_files/files-pwd.c: Likewise.
74477         * nss/nss_files/files-rpc.c: Likewise.
74478         * nss/nss_files/files-service.c: Likewise.
74479         * nss/nss_files/files-sgrp.c: Likewise.
74480         * nss/nss_files/files-spwd.c: Likewise.
74481         * nss/nss_db/db-alias.c: Removed.
74482         * nss/nss_db/dummy-db.h: Removed.
74483
74484 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74485
74486         * nss/makedb.c: Rewritten to not use database library.
74487         * nss/Makefile: Update to build new makedb program.
74488
74489 2011-06-14  Andreas Jaeger  <aj@suse.de>
74490
74491         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74492         memset declaration.
74493
74494 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74495
74496         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74497         tmpbuf.
74498
74499 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74500
74501         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74502         * elf/Makefile ($(objpfx)ld.so): Likewise.
74503
74504         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74505         Don't list ld.so twice in dependencies.
74506
74507         * posix/bug-regex31.c: Include <stdlib.h>.
74508
74509         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74510
74511         * nis/nss_compat/compat-spwd.c
74512         (getspent_next_nss_netgr): Remove unused variable.
74513         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74514
74515         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74516         nonmembers" output to use the right array.
74517
74518         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74519
74520         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74521
74522         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74523         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74524         * catgets/gencat.c (read_input_file): Likewise.
74525         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74526
74527         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74528         variable definition inside #if's controlling its use.
74529
74530         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74531
74532         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74533
74534         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74535
74536         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74537         unreachable code.
74538
74539         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74540
74541         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74542         * configure: Regenerated.
74543
74544         * Makerules: Revert last change.
74545         * elf/Makefile: Likewise.
74546
74547 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74548
74549         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74550         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74551         (reloc-link): Likewise.
74552
74553 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74554
74555         * elf/Makefile: Add rules to build pldd.
74556         * elf/pldd.c: New file.
74557         * elf/pldd-xx.c: New file.
74558
74559 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74560
74561         * version.h: Update for 2.15 development version.
74562
74563 2011-06-07  David S. Miller  <davem@davemloft.net>
74564
74565         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74566         ifuncs.
74567         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74568         elf_machine_lazy_rel): Likewise.
74569         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74570         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74571         elf_machine_lazy_rel): Likewise.
74572         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74573         dl_hwcap via passed in argument.
74574         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74575         Likewise.
74576
74577 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74578
74579         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74580
74581 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74582
74583         [BZ #12849]
74584         * manual/fdl-1.1.texi: New file, verbatim from:
74585         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74586         * manual/lgpl-2.1.texi: New file, verbatim from:
74587         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74588         * manual/Makefile (licenses): New variable, list those new file names.
74589         (texis): Use it.
74590         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74591
74592         * manual/fdl.texi: File removed.
74593         * manual/lesser.texi: File removed.
74594         * manual/libc.texinfo (Copying, Documentation License):
74595         Use new @include file names, put @appendix directive before @include.
74596
74597 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74598
74599         [BZ #12841]
74600         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74601         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74602         (mq_open): Add __NTH.
74603
74604 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74605
74606         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74607         Assume Intel Core i3/i5/i7 processor if AVX is available.
74608
74609 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74610
74611         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74612         typo.
74613
74614 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74615
74616         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74617         memory.  Use alloca_account.  Fix memory leak when retrying.
74618
74619 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74620
74621         * version.h (RELEASE): Bump for 2.14 release.
74622         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74623
74624         * config.make.in (RANLIB): Remove entry.
74625
74626 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74627
74628         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74629         (libc.pot): Work around missing support for .ksh extension in xgettext.
74630
74631         [BZ #12684]
74632         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74633         if both request failed.
74634         (send_dg): In case of server errors clear resplen or *resplen2.
74635
74636         [BZ #12454]
74637         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74638         when there are multiple maps.
74639         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74640         (_dl_fini): Remove test here.
74641
74642         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74643
74644 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74645
74646         [BZ #12350]
74647         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74648         bit from old_res_options.
74649         (gaih_inet): Likewise.
74650
74651         [BZ #11099]
74652         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74653         as signed.
74654
74655         * resolv/res_init.c (res_setoptions): Make the code more compact.
74656
74657         [BZ #11558]
74658         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74659         set RES_USEVC.
74660
74661         [BZ #11634]
74662         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74663
74664         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74665
74666         [BZ #11781]
74667         * malloc/malloc.h: Declare malloc hook variables as volatile.
74668
74669         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74670         in last patch.
74671
74672         [BZ #11799]
74673         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74674         raise in the comment.
74675         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74676         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74677         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74678
74679 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74680
74681         [BZ #12811]
74682         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74683         grow the buffers more if it already has to be sufficient.
74684         (build_wcs_upper_buffer): Likewise.
74685         * posix/regexec.c (check_matching): Likewise.
74686         (clean_state_log_if_needed): Likewise.
74687         (extend_buffers): Don't enlarge buffers beyond size of the input
74688         buffer.
74689         Patches mostly by Emil Wojak <emil@wojak.eu>.
74690         * posix/bug-regex32.c: New file.
74691         * posix/Makefile (tests): Add bug-regex32.
74692
74693         * locale/findlocale.c (_nl_find_locale): Return right away if
74694         _nl_explode_name failed.
74695         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74696
74697         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74698
74699         * debug/xtrace.sh: Unify messages.
74700         * malloc/memusage.sh: Likewise.
74701
74702         [BZ #12813]
74703         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74704         time symbol from vDSO.  Substitute with vsyscall if not available.
74705         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74706         __vdso_time.
74707
74708         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74709         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74710         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74711         Add sendmmsg and internal_sendmmsg.
74712         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74713         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74714         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74715
74716         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74717         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74718         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74719
74720 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74721
74722         [BZ #12813]
74723         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74724         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74725         available.
74726         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74727         __vdso_getcpu.
74728
74729         [BZ #12814]
74730         * iconvdata/Makefile (tests): Add bug-iconv9.
74731         * iconvdata/bug-iconv9.c: New file.
74732
74733 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74734
74735         [BZ #12814]
74736         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74737
74738 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74739
74740         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74741         (struct user_regs_struct): Change intcs field back to cs.
74742
74743 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74744
74745         * po/ja.po: Update from translation team.
74746
74747 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74748
74749         [BZ #12795]
74750         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74751         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74752
74753 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74754
74755         * stdlib/longlong.h: Update from GCC.
74756
74757 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74758
74759         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74760         parameter name.
74761         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74762         Add parameter name.
74763         (__sysconf): Pass it down.
74764
74765 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74766
74767         [BZ #12671]
74768         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74769         some situations.
74770         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74771         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74772         add in in __libc_use_alloca calls.  Adjust callers.
74773         (glob): Use malloc in some situations.
74774
74775         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74776         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74777         pltexit.
74778
74779 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74780
74781         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74782         and CLOCK_BOOTTIME_ALARM.
74783
74784         [BZ #12782]
74785         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74786         is returned.
74787
74788         * string/_strerror.c (__strerror_r): Print negative errors as signed
74789         numbers.
74790
74791         [BZ #12777]
74792         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74793         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74794         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74795
74796         * configure.in: Fix typo in redirection and correct removal of test
74797         files in two cases.
74798
74799         [BZ #12788]
74800         * locale/setlocale.c (new_composite_name): Fix test to check for
74801         identical name of all categories.
74802
74803         [BZ #12792]
74804         * libio/filedoalloc.c (local_isatty): New function.
74805         (_IO_file_doallocate): Use local_isatty.
74806         * stdio-common/perror.c (perror): In case a new stream is used
74807         forward the stream error.
74808         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74809         error flag.
74810
74811 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74812
74813         [BZ #11884]
74814         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74815         alloca.
74816         * include/alloca.h (extend_alloca_account): Define.
74817
74818         [BZ #11857]
74819         * posix/regex.h: Fix comments with documentation of user-accessible
74820         fields after compilation and describe correct free'ing of pattern
74821         after re_compile_pattern.
74822         Patch by Reuben Thomas <rrt@sc3d.org>.
74823
74824 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74825
74826         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74827         and -mno-altivec to prevent the compiler from using Altivec and/or
74828         VSX instructions when the corresponding registers are not available.
74829
74830 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74831
74832         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74833
74834 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74835
74836         * libio/freopen.c (freopen): Use __dup2, not dup2.
74837         * libio/freopen64.c (freopen64): Likewise.
74838
74839 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74840
74841         [BZ #12775]
74842         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74843         * math/Makefile (tests): Add test-powl.
74844         (CFLAGS-test-powl.c): Define.
74845         * math/test-powl.c: New file.
74846
74847 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74848
74849         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74850
74851 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74852
74853         [BZ #11837]
74854         * iconvdata/gb18030.c: Update to GB18020-2005.
74855
74856 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74857
74858         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74859         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74860         Patch by Aharon Robbins <arnold@skeeve.com>.
74861
74862         [BZ #11892]
74863         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74864         on the stack.
74865
74866         [BZ #11895]
74867         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74868         through underflows.
74869
74870         [BZ #12766]
74871         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74872         point to strings before performing equality test for error_one_per_line
74873         mode.
74874
74875         [BZ #11697]
74876         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74877
74878         [BZ #11820]
74879         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74880         (struct user_fpregs_struct): Avoid __uint*_t types.
74881
74882         [BZ #6420]
74883         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74884         symbol info.  Use it instead of calling _dl_addr locally.
74885         (lock_and_info): New function.
74886         (tr_freehook): Call lock_and_info and pass symbol info as additional
74887         parameter to tr_where.
74888         (tr_mallochook): Likewise.
74889         (tr_reallochook): Likewise.
74890         (tr_memalignhook): Likewise.
74891
74892         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74893         used and couldn't be at all thread-safe.
74894
74895 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74896
74897         * libio/freopen.c (freopen): Don't close old file descriptor
74898         before the new one is opened.  Instead dup the new file descriptor
74899         to the old one after the new stream is created.
74900         * libio/freopen64.c (freopen64): Likewise.
74901         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74902         * libio/fileops.c (_IO_new_file_close_it): Handle new
74903         _IO_FLAGS2_NOCLOSE flag.
74904         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74905         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74906         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74907         _IO_FLAGS2_NOCLOSE flag.
74908         * include/unistd.h: Add hidden_proto for dup3.
74909         Define __have_dup3.
74910         * io/dup3.c: Define hidden symbol.
74911         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74912
74913         [BZ #7101]
74914         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74915         when an incomplete long option is used.
74916         * posix/tst-getopt_long1.c: New file.
74917         * posix/Makefile (tests): Add tst-getopt_long1.
74918
74919         [BZ #10138]
74920         * scripts/config.guess: Update from autoconf-2.68.
74921         * scripts/config.sub: Likewise.
74922
74923         [BZ #10157]
74924         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74925         tests into ...
74926         (has_cpuclock): ...this.  New function.
74927         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74928         macro here based on has_cpuclock code.
74929
74930         [BZ #10149]
74931         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74932         First byte (not low byte) is now always NUL.
74933         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74934
74935         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74936         Use non-cancelable interfaces.
74937
74938         [BZ #9809]
74939         * locale/iso-639.def: Add entry for Sorani.
74940
74941         [BZ #11901]
74942         * include/stdlib.h: Move include protection to the right place.
74943         Define abort_msg_s.  Declare __abort_msg with it.
74944         * stdlib/abort.c (__abort_msg): Adjust type.
74945         * assert/assert.c (__assert_fail_base): New function.  Majority
74946         of code from __assert_fail.  Allocate memory for __abort_msg with
74947         mmap.
74948         (__assert_fail): Now call __assert_fail_base.
74949         * assert/assert-perr.c: Remove bulk of implementation.  Use
74950         __assert_fail_base.
74951         * include/assert.hL Declare __assert_fail_base.
74952         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74953         mmap.
74954         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74955
74956 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74957
74958         [BZ #11952]
74959         [BZ #12453]
74960         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74961         until all modules are registered in the DTV.
74962         * elf/Makefile: Add rules to build and run tst-tls19.
74963         * elf/tst-tls19.c: New file.
74964         * elf/tst-tls19mod1.c: New file.
74965         * elf/tst-tls19mod2.c: New file.
74966         * elf/tst-tls19mod3.c: New file.
74967         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74968
74969         [BZ #12083]
74970         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74971         correctly.
74972
74973         [BZ #12601]
74974         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74975         two-byte sequence errors.
74976         * iconvdata/Makefile (tests): Add bug-iconv8.
74977         * iconvdata/bug-iconv8.c: New file.
74978
74979         [BZ #12626]
74980         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74981         buf2 definition.
74982
74983         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74984
74985         [BZ #12432]
74986         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74987         (dummy_getcfa): New function.
74988         (init): Get _Unwind_GetCFA address, use dummy if not found.
74989         (backtrace_helper): In recursion check, also check whether CFA changes.
74990         (__backtrace): Completely initialize arg.
74991
74992         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74993         storing incomplete byte sequence in state object.  Avoid testing for
74994         guaranteed too small input if we know there is enough data available.
74995
74996 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74997
74998         * Makeconfig (+link-pie): Indent.
74999         * Rules (binaries-pie): Define if $(have-fpie) and
75000         $(build-shared).
75001         (binaries-shared): Also filter out $(binaries-pie).
75002         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
75003         * nscd/Makefile (others-pie): Add nscd.
75004         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
75005         ($(objpfx)nscd): Remove command override.
75006         * login/Makefile (others-pie): Add pt_chown.
75007         ($(objpfx)pt_chown): Remove command override.
75008         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
75009         remove command overrides.
75010
75011 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
75012
75013         * libio/tst_putwc.c: Fix error messages.
75014
75015         [BZ #12724]
75016         * libio/fileops.c (_IO_new_file_close_it): Always flush when
75017         currently writing and seek to current position when not.
75018         * libio/Makefile (tests): Add bug-fclose1.
75019         * libio/bug-fclose1.c: New file.
75020
75021 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
75022
75023         [BZ #12511]
75024         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
75025         don't set DF_1_NODELETE here.
75026         (do_lookup_x): When entering new entry test for copy relocation
75027         and if necessary set DF_1_NODELETE flag.
75028         * elf/tst-unique4.cc: New file.
75029         * elf/tst-unique4.h: New file.
75030         * elf/tst-unique4lib.cc: New file.
75031         * elf/Makefile: Add rules to build and run tst-unique4.
75032         Patch by Piotr Bury <pbury@goahead.com>.
75033
75034 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
75035
75036         [BZ #12052]
75037         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
75038
75039         [BZ #12625]
75040         * misc/mntent_r.c (addmntent): Flush the stream after the output
75041
75042         [BZ #12393]
75043         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
75044         (is_trusted_path_normalize): Skip initial colon.  Append slash
75045         to empty buffer.  Duplicate is_trusted_path code but allow
75046         constructed patch to be prefix.
75047         (is_dst): Allow $ORIGIN followed by /.
75048         (_dl_dst_substitute): Correct clearing of check_for_trusted.
75049         Correct testing of result of is_trusted_path_normalize
75050         (decompose_rpath): Fix warning.
75051
75052 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
75053
75054         [BZ #11257]
75055         * grp/initgroups.c (internal_getgrouplist): When we found the service
75056         list through the initgroups entry in nsswitch.conf do not always
75057         continue on a successful lookup.  Don't always use the
75058         __nss_group_database value if it is set.
75059         * nss/nsswitch.conf (initgroups): Change action for successful db
75060         lookup to continue for compatibility.
75061
75062 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
75063
75064         [BZ #11532]
75065         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
75066         and CP774 modules.
75067         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
75068         and CP774 modules.
75069         * iconvdata/tst-tables.sh: Likewise.
75070         * iconvdata/cp770.c: New file.
75071         * iconvdata/cp771.c: New file.
75072         * iconvdata/cp772.c: New file.
75073         * iconvdata/cp773.c: New file.
75074         * iconvdata/cp774.c: New file.
75075         * iconvdata/testdata/CP770: New file.
75076         * iconvdata/testdata/CP770..UTF8: New file.
75077         * iconvdata/testdata/CP771: New file.
75078         * iconvdata/testdata/CP771..UTF8: New file.
75079         * iconvdata/testdata/CP772: New file.
75080         * iconvdata/testdata/CP772..UTF8: New file.
75081         * iconvdata/testdata/CP773: New file.
75082         * iconvdata/testdata/CP773..UTF8: New file.
75083         * iconvdata/testdata/CP774: New file.
75084         * iconvdata/testdata/CP774..UTF8: New file.
75085
75086         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
75087         END CHARMAP line.
75088         * iconvdata/gen-8bit-gap.sh: Likewise.
75089         * iconvdata/gen-8bit.sh: Likewise.
75090
75091         * locale/iso-639.def: Add ary entry.
75092
75093         [BZ #11258]
75094         * locale/C-translit.h.in: Add U20A1 transliteration.
75095
75096         [BZ #12178]
75097         * locale/iso-639.def: Add wae entry.
75098         Patch by Kevin Bortis <bortis@translate-wae.ch>.
75099
75100         [BZ #12545]
75101         * locale/programs/localedef.c (construct_output_path): Use ssize_t
75102         for n.
75103
75104         [BZ #12711]
75105         * locale/C-translit.h.in: Add entry for U20B9.
75106         Patch by pravin.d.s@gmail.com.
75107
75108 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
75109
75110         [BZ #12713]
75111         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
75112         ENAMETOOLONG use generic getcwd.
75113         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
75114         in rtld.  Use *stat64.
75115         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
75116         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
75117         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
75118         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
75119         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
75120         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
75121         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
75122         __fstatat64 macros.
75123         * include/dirent.h: Add libc_hidden_proto for rewinddir.
75124         * dirent/rewinddir.c: Add libc_hidden_def.
75125         * sysdeps/mach/hurd/rewinddir.c: Likewise.
75126         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
75127
75128         * include/dirent.h (__alloc_dir): Add flags parameter.
75129         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
75130         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
75131         __alloc_dir.
75132         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
75133         from fdopendir if O_CLOEXEC is already set.
75134
75135 2011-03-15  Alan Modra  <amodra@gmail.com>
75136
75137         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
75138         l_tls_firstbyte_offset non-zero.  Save padding offset in
75139         l_tls_firstbyte_offset for later use.
75140         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
75141         freeing static tls block.
75142
75143 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
75144
75145         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
75146         where #ifdef was intended.  The intent is to prevent ARG_MAX from
75147         being defined by the kernel headers.
75148
75149 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
75150
75151         [BZ #12734]
75152         * resolv/resolv.h: Define RES_NOTLDQUERY.
75153         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
75154         no-tld-query and set RES_NOTLDQUERY.
75155         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
75156         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
75157         modern BIND to search name as TLD unless forbidden.
75158
75159 2011-05-07  Petr Baudis  <pasky@suse.cz>
75160             Ulrich Drepper  <drepper@gmail.com>
75161
75162         [BZ #12393]
75163         * elf/dl-load.c (fillin_rpath): Move trusted path check...
75164         (is_trusted_path): ...to here.
75165         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
75166         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
75167         using is_trusted_path_normalize() in setuid scripts.
75168
75169 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
75170
75171         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
75172         __BEGIN/__END_DECLS.
75173
75174 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
75175
75176         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
75177         NSS_STATUS_NOTFOUND if no record was found.
75178
75179 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75180
75181         * sunrpc/Makefile (headers): Add rpc/netdb.h.
75182         (headers-not-in-tirpc): Remove rpc/netdb.h
75183         * resolv/netdb.h: Revert last change.
75184
75185 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75186
75187         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
75188         circular dependency between libgcc.a and libc.a.
75189
75190 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75191
75192         * resolv/netdb.h: Don't include <rpc/netdb.h>.
75193         * nis/Makefile: Don't install rpcsvc/*.
75194         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
75195         instead of <rpc/types.h>.
75196         (MAXHOSTNAMELEN): Define.
75197
75198 2011-05-03  Andreas Schwab  <schwab@redhat.com>
75199
75200         * elf/ldconfig.c (add_dir): Don't crash on empty path.
75201
75202 2011-04-28  Maciej Babinski  <mbabinski@google.com>
75203
75204         [BZ #12714]
75205         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
75206         gethostbyname4_r when IPv6 results are possible.
75207
75208 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
75209
75210         [BZ #12723]
75211         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
75212         _PC_PIPE_BUF handling.
75213
75214 2011-04-30  Bruno Haible  <bruno@clisp.org>
75215
75216         [BZ #12717]
75217         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
75218         * resolv/netdb.h (getnameinfo): Change type of flags parameter
75219         to 'int'.
75220         * inet/getnameinfo.c (getnameinfo): Likewise.
75221
75222 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
75223
75224         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
75225         to groups setting in database lookup.
75226         * nss/nsswitch.conf: Add initgroups entry.
75227
75228 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
75229
75230         [BZ #12685]
75231         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
75232         mode string.
75233         Patch by Eric Blake <eblake@redhat.com>.
75234
75235 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
75236
75237         * sunrpc/Makefile (need-export-routines): Add svc_run.
75238         (routines): Remove svc_run.
75239         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
75240         * sunrpc/clnt_perr.c (clnt_perrno): Export.
75241         * sunrpc/svc_run.c (svc_run): Likewise.
75242         * sunrpc/svc_udp.c (svcudp_create): Likewise.
75243
75244 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
75245
75246         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
75247         problem in reallocation in last patch.
75248
75249 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
75250
75251         * sunrpc/Makefile: Move inclusion of Rules.
75252
75253 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75254
75255         * nss/nss_files/files-initgroups.c: New file.
75256         * nss/Makefile (libnss_files-routines): Add files-initgroups.
75257         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
75258         _nss_files_initgroups_dyn.
75259
75260 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
75261
75262         * elf/elf.h (R_ARM_IRELATIVE): Define.
75263
75264 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75265
75266         * po/ru.po: Update from translation team.
75267
75268 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75269
75270         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
75271         dependencies.
75272
75273 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
75274
75275         [BZ #12653]
75276         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
75277         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
75278         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75279         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
75280         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
75281
75282 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
75283
75284         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
75285         differing bytes.
75286         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
75287         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
75288         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
75289
75290 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75291
75292         [BZ #12420]
75293         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
75294         storing it.
75295         * stdlib/bug-getcontext.c: New file.
75296         * stdlib/Makefile: Add rules to build and run bug-getcontext.
75297
75298 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75299
75300         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
75301         instructions into .machine "z9-109".
75302         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
75303         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
75304
75305 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75306
75307         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
75308         between environment variables and auxiliary vector.
75309
75310 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
75311
75312         * Makefile: Add rules to build linkobj/libc.so.
75313         * include/libc-symbols.h: Define libc_hidden_nolink.
75314         * include/rpc/auth.h: Mark functions which are to be hidden.
75315         * include/rpc/auth_des.h: Likewise.
75316         * include/rpc/auth_unix.h: Likewise.
75317         * include/rpc/clnt.h: Likewise.
75318         * include/rpc/des_crypt.h: Likewise.
75319         * include/rpc/key_prot.h: Likewise.
75320         * include/rpc/pmap_clnt.h: Likewise.
75321         * include/rpc/pmap_prot.h: Likewise.
75322         * include/rpc/pmap_rmt.h: Likewise.
75323         * include/rpc/rpc_msg.h: Likewise.
75324         * include/rpc/svc.h: Likewise.
75325         * include/rpc/svc_auth.h: Likewise.
75326         * include/rpc/xdr.h: Likewise.
75327         * nis/Makefile: Link all DSOs against linkobj/libc.so.
75328         * nss/Makefile: Likewise.
75329         * sunrpc/Makefile: Don't install headers.  Build library with normal
75330         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
75331         * sunrpc/auth_des.c: Hide exported symbols by default, export some
75332         for the compat linking library.  Remove use of INTDEF/INTUSE.
75333         * sunrpc/auth_none.c: Likewise.
75334         * sunrpc/auth_unix.c: Likewise.
75335         * sunrpc/authdes_prot.c: Likewise.
75336         * sunrpc/authuxprot.c: Likewise.
75337         * sunrpc/clnt_gen.c: Likewise.
75338         * sunrpc/clnt_perr.c: Likewise.
75339         * sunrpc/clnt_raw.c: Likewise.
75340         * sunrpc/clnt_simp.c: Likewise.
75341         * sunrpc/clnt_tcp.c: Likewise.
75342         * sunrpc/clnt_udp.c: Likewise.
75343         * sunrpc/clnt_unix.c: Likewise.
75344         * sunrpc/des_crypt.c: Likewise.
75345         * sunrpc/des_soft.c: Likewise.
75346         * sunrpc/get_myaddr.c: Likewise.
75347         * sunrpc/key_call.c: Likewise.
75348         * sunrpc/key_prot.c: Likewise.
75349         * sunrpc/netname.c: Likewise.
75350         * sunrpc/pm_getmaps.c: Likewise.
75351         * sunrpc/pm_getport.c: Likewise.
75352         * sunrpc/pmap_clnt.c: Likewise.
75353         * sunrpc/pmap_prot.c: Likewise.
75354         * sunrpc/pmap_prot2.c: Likewise.
75355         * sunrpc/pmap_rmt.c: Likewise.
75356         * sunrpc/publickey.c: Likewise.
75357         * sunrpc/rpc_cmsg.c: Likewise.
75358         * sunrpc/rpc_common.c: Likewise.
75359         * sunrpc/rpc_dtable.c: Likewise.
75360         * sunrpc/rpc_prot.c: Likewise.
75361         * sunrpc/rpc_thread.c: Likewise.
75362         * sunrpc/rtime.c: Likewise.
75363         * sunrpc/svc.c: Likewise.
75364         * sunrpc/svc_auth.c: Likewise.
75365         * sunrpc/svc_authux.c: Likewise.
75366         * sunrpc/svc_raw.c: Likewise.
75367         * sunrpc/svc_run.c: Likewise.
75368         * sunrpc/svc_simple.c: Likewise.
75369         * sunrpc/svc_tcp.c: Likewise.
75370         * sunrpc/svc_udp.c: Likewise.
75371         * sunrpc/svc_unix.c: Likewise.
75372         * sunrpc/svcauth_des.c: Likewise.
75373         * sunrpc/xcrypt.c: Likewise.
75374         * sunrpc/xdr.c: Likewise.
75375         * sunrpc/xdr_array.c: Likewise.
75376         * sunrpc/xdr_float.c: Likewise.
75377         * sunrpc/xdr_intXX_t.c: Likewise.
75378         * sunrpc/xdr_mem.c: Likewise.
75379         * sunrpc/xdr_rec.c: Likewise.
75380         * sunrpc/xdr_ref.c: Likewise.
75381         * sunrpc/xdr_sizeof.c: Likewise.
75382         * sunrpc/xdr_stdio.c: Likewise.
75383
75384 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75385
75386         [BZ #12650]
75387         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75388         * sysdeps/ia64/dl-tls.h: Likewise.
75389         * sysdeps/powerpc/dl-tls.h: Likewise.
75390         * sysdeps/s390/dl-tls.h: Likewise.
75391         * sysdeps/sh/dl-tls.h: Likewise.
75392         * sysdeps/sparc/dl-tls.h: Likewise.
75393         * sysdeps/x86_64/dl-tls.h: Likewise.
75394         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75395
75396 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75397
75398         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75399         rpath element also skip the following colon.
75400         (expand_dynamic_string_token): Add is_path parameter and pass
75401         down to DL_DST_REQUIRED and _dl_dst_substitute.
75402         (decompose_rpath): Call expand_dynamic_string_token with
75403         non-zero is_path.  Ignore empty rpaths.
75404         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75405         with zero is_path.
75406
75407 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75408
75409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75410         Make cancelable.
75411
75412 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75413
75414         [BZ #12655]
75415         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75416         Patch by Filipe David Manana <fdmanana@apache.org>.
75417
75418 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75419
75420         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75421         Maintain aligned stack.
75422         (CHECK_RSP): Remove unused macro.
75423
75424 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75425
75426         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75427         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75428
75429 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75430
75431         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75432
75433         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75434
75435 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75436
75437         [BZ #12518]
75438         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75439         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75440         * sysdeps/x86_64/memmove.c: New file.
75441         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75442         (memcpy): Renamed to ...
75443         (__new_memcpy): This.
75444         (memcpy): Provide GLIBC_2_14 memcpy.
75445         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75446         (memcpy): Provide GLIBC_2_2_5 memcpy.
75447
75448 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75449
75450         [BZ #12631]
75451         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75452
75453 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75454
75455         * misc/syncfs.c: New file.
75456         * misc/Makefile (routines): Add syncfs.
75457         * posix/unistd.h: Declare syncfs.
75458         * sysdeps/unix/syscalls.list: Add syncfs.
75459
75460 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75461
75462         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75463         open_by_handle_at.
75464         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75465         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75466         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75467         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75468         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75469         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75470         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75471
75472 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75473
75474         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75475         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75476         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75477         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75478         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75479         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75480         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75481
75482         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75483         sync_file_range.c with -fexceptions.
75484         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75485         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75486         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75487         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75488         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75489         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75490         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75491         sync_file_range as cancellation point
75492         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75493         now a wrapper around __call_sync_file_range with cancellation handling.
75494         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75495         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75496         function name to __call_sync_file_range.
75497         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75498         Add call_sync_file_range.
75499
75500 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75501
75502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75503         bits/timex.h.
75504
75505 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75506
75507         * iconv/iconv.h: Fix typo in comment.
75508         * io/fcntl.h: Likewise.
75509         * libio/stdio.h: Likewise.
75510         * posix/spawn.h: Likewise.
75511         * posix/unistd.h: Likewise.
75512         * stdlib/stdlib.h: Likewise.
75513         * time/time.h: Likewise.
75514         * wcsmbs/wchar.h: Likewise.
75515
75516         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75517         open_by_handle): Add.
75518         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75519         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75520         Augment a few comments.
75521         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75522         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75523         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75524         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75525         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75526         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75527         open_by_handle.
75528
75529         * io/fcntl.h (AT_EMPTY_PATH): Define.
75530
75531 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75532
75533         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75534         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75535         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75536         to...
75537         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75538         * Versions.def: Add GLIBC_2.14.
75539         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75540         Export.
75541
75542 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75543
75544         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75545         round counter.
75546         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75547
75548 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75549
75550         [BZ #12597]
75551         * string/test-strncmp.c (do_page_test): New function.
75552         (check2): Likewise.
75553         (test_main): Call check2.
75554         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75555
75556 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75557
75558         [BZ #12587]
75559         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75560         Handle cache information in CPU leaf 4.
75561         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75562
75563 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75564
75565         [BZ #12583]
75566         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75567         character representation.
75568         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75569
75570 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75571
75572         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75573         END(__isnan) to END(__isnanf) to match function entry point/label
75574         EALIGN(__isnanf,...).
75575
75576 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75577
75578         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75579
75580 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75581
75582         [BZ #12510]
75583         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75584         copy from the symbol referenced in the relocation to initialize the
75585         used variable.
75586         Patch by Piotr Bury <pbury@goahead.com>.
75587         * elf/Makefile: Add rules to build and tst-unique3.
75588         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75589         * elf/tst-unique3.cc: New file.
75590         * elf/tst-unique3.h: New file.
75591         * elf/tst-unique3lib.cc: New file.
75592         * elf/tst-unique3lib2.cc: New file.
75593
75594         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75595
75596 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75597
75598         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75599         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75600         to _start.
75601
75602 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75603
75604         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75605         to-be-loaded object along a path to loader is ld.so.
75606
75607 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75608             Ulrich Drepper  <drepper@gmail.com>
75609
75610         * sysdeps/x86_64/memset.S: After aligning destination, code
75611         branches to different locations depending on the value of
75612         misalignment, when multiarch is enabled. Fix this.
75613
75614 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75615
75616         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75617         Set _x86_64_preferred_memory_instruction for AMD processsors.
75618         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75619         Set bit_Prefer_SSE_for_memop for AMD processors.
75620
75621 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75622
75623         * libio/fmemopen.c (fmemopen): Optimize a bit.
75624
75625 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75626
75627         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75628
75629 2011-03-03  Roland McGrath  <roland@redhat.com>
75630
75631         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75632
75633 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75634
75635         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75636         __bzero_ultra1 instead of __memset_ultra1.
75637
75638 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75639             Ulrich Drepper  <drepper@gmail.com>
75640
75641         [BZ #12509]
75642         * include/link.h (struct link_map): Add l_orig_initfini.
75643         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75644         returning unsuccessfully.
75645         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75646         close of a file loaded at startup, restore the original l_initfini
75647         list.
75648         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75649         list, store the pointer.
75650         * elf/Makefile ($(objpfx)noload-mem): New rule.
75651         (noload-ENV): Define.
75652         (tests): Add $(objpfx)noload-mem.
75653         * elf/noload.c: Include <memcheck.h>.
75654         (main): Call mtrace.  Close all opened handles.
75655
75656 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75657
75658         [BZ #12454]
75659         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75660         dependencies are missing.
75661
75662 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75663
75664         Fix __if_freereq crash: Unlike the generic version which uses free,
75665         Hurd needs munmap.
75666         * sysdeps/mach/hurd/ifreq.h: New file.
75667
75668 2011-01-27  Petr Baudis  <pasky@suse.cz>
75669             Ulrich Drepper  <drepper@gmail.com>
75670
75671         [BZ 12445]#
75672         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75673         to extend_alloca().
75674         * stdio-common/bug23.c: New file.
75675         * stdio-common/Makefile (tests): Add bug23.
75676
75677 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75678             Ulrich Drepper  <drepper@gmail.com>
75679
75680         [BZ #12489]
75681         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75682         before performing relro protection.  At old place add assertion
75683         to make sure nothing changed.
75684
75685 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75686             Glauber de Oliveira Costa  <glommer@gmail.com>
75687
75688         * elf/elf.h: Add new ARM TLS relocs.
75689
75690 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75691
75692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75693         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75694         cast from r3.
75695         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75696         'tests' variable.
75697         * sysdeps/wordsize-64/tst-writev.c: New file.
75698
75699 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75700
75701         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75702         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75703         insns in _dl_start to prevent a TOC reference before relocs are
75704         resolved.
75705
75706 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75707
75708         [BZ #12469]
75709         * Makeconfig: Remove RANLIB definition.
75710         * Makerules: Don't use RANLIB.
75711         * aclocal.m4: Remove ranlib test.
75712         * configure.in: No need to check for ranlib.
75713         * elf/rtld-Rules: Don't use RANLIB.
75714
75715 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75716
75717         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75718         protection macro.
75719         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75720         inclusion protection macro.
75721
75722         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75723         SIGRTMIN and SIGRTMAX and print information in that case only when
75724         SIGRTMIN is defined.
75725
75726 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75727
75728         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75729         arginfo fn returning -1.
75730
75731         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75732         and thousands string is zero terminated.
75733
75734 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75735
75736         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75737         sysdeps/unix/sysv/linux/bits/socket.h.
75738
75739 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75740
75741         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75742         (__CPU_COUNT): Remove old macros.
75743         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75744         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75745         (__CPU_ALLOC, __CPU_FREE): Add macros.
75746         (__sched_cpualloc, __sched_cpufree): Add declarations.
75747
75748 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75749
75750         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75751         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75752         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75753         (readdhstai): Return value of addhstaiX call.
75754         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75755         (addgrbyX): Return value returned by cache_addgr.
75756         (readdgrbyname): Return value returned by addgrbyX.
75757         (readdgrbygid): Likewise.
75758         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75759         (addpwbyX): Return value returned by cache_addpw.
75760         (readdpwbyname): Return value returned by addhstbyX.
75761         (readdpwbyuid): Likewise.
75762         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75763         (addservbyX): Return value returned by cache_addserv.
75764         (readdservbyname): Return value returned by addservbyX:
75765         (readdservbyport): Likewise.
75766         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75767         (addhstbyX): Return value returned by cache_addhst.
75768         (readdhstbyname): Return value returned by addhstbyX.
75769         (readdhstbyaddr): Likewise.
75770         (readdhstbynamev6): Likewise.
75771         (readdhstbyaddrv6): Likewise.
75772         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75773         (readdinitgroups): Return value returned by addinitgroupsX.
75774         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75775         (prune_cache): Keep track of timeout value of re-added entries.
75776         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75777         * nscd/nscd.h: Adjust prototypes of readd* functions.
75778
75779 2011-02-04  Roland McGrath  <roland@redhat.com>
75780
75781         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75782         (nis_stats): Likewise.
75783         * nis/nis_modify.c (nis_modify): Likewise.
75784         * nis/nis_remove.c (nis_remove): Likewise.
75785         * nis/nis_add.c (nis_add): Likewise.
75786
75787         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75788
75789         * posix/fnmatch_loop.c: Add some consts.
75790
75791         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75792
75793 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75794
75795         [BZ #12460]
75796         * config.make.in (config-cflags-novzeroupper): Define.
75797         * configure.in: Substitute libc_cv_cc_novzeroupper.
75798         * elf/Makefile (AVX-CFLAGS): Define.
75799         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75800         (CFLAGS-tst-auditmod4a.c): Likewise.
75801         (CFLAGS-tst-auditmod4b.c): Likewise.
75802         (CFLAGS-tst-auditmod6b.c): Likewise.
75803         (CFLAGS-tst-auditmod6c.c): Likewise.
75804         (CFLAGS-tst-auditmod7b.c): Likewise.
75805         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75806
75807 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75808
75809         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75810         function to the callback.
75811         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75812
75813 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75814
75815         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75816         of errno.
75817
75818 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75819
75820         [BZ #11724]
75821         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75822         of constructors.
75823         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75824         of destructors.
75825         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75826
75827         [BZ #11724]
75828         * elf/Makefile: Add rules to build and run new test.
75829         * elf/tst-initorder.c: New file.
75830         * elf/tst-initorder.exp: New file.
75831         * elf/tst-initordera1.c: New file.
75832         * elf/tst-initordera2.c: New file.
75833         * elf/tst-initordera3.c: New file.
75834         * elf/tst-initordera4.c: New file.
75835         * elf/tst-initorderb1.c: New file.
75836         * elf/tst-initorderb2.c: New file.
75837         * elf/tst-order-a1.c: New file.
75838         * elf/tst-order-a2.c: New file.
75839         * elf/tst-order-a3.c: New file.
75840         * elf/tst-order-a4.c: New file.
75841         * elf/tst-order-b1.c: New file.
75842         * elf/tst-order-b2.c: New file.
75843         * elf/tst-order-main.c: New file.
75844         New test case by George Gensure <werkt0@gmail.com>.
75845
75846 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75847
75848         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75849         decoding ACE if AI_CANONIDN.
75850
75851 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75852
75853         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75854
75855 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75856
75857         * version.h (RELEASE): Bump for 2.13 release.
75858         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75859
75860         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75861
75862         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75863         MADV_NOHUGEPAGE.
75864         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75865         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75866         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75867         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75868         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75869         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75870
75871         * posix/getconf.c: Update copyright year.
75872         * catgets/gencat.c: Likewise.
75873         * csu/version.c: Likewise.
75874         * debug/catchsegv.sh: Likewise.
75875         * debug/xtrace.sh: Likewise.
75876         * elf/ldconfig.c: Likewise.
75877         * elf/ldd.bash.in: Likewise.
75878         * elf/sprof.c (print_version): Likewise.
75879         * iconv/iconv_prog.c: Likewise.
75880         * iconv/iconvconfig.c: Likewise.
75881         * locale/programs/locale.c: Likewise.
75882         * locale/programs/localedef.c: Likewise.
75883         * malloc/memusage.sh: Likewise.
75884         * malloc/mtrace.pl: Likewise.
75885         * nscd/nscd.c (print_version): Likewise.
75886         * nss/getent.c: Likewise.
75887
75888         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75889         PF_CAIF, and PF_ALG.
75890         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75891
75892 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75893
75894         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75895         (modules-names): Use them.
75896         (ifunc-test-modules, ifunc-pie-tests): Define.
75897         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75898         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75899         (test-extras): Likewise.
75900         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75901         $(compile-command.c).
75902         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75903         (all-built-dso): Define.
75904         (check-textrel.out, check-execstack.out): Depend on it.
75905
75906         * configure.in: Don't override --enable-multi-arch.
75907
75908 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75909
75910         [BZ #6812]
75911         * nscd/hstcache.c (tryagain): Define.
75912         (cache_addhst): Return tryagain not notfound for temporary errors.
75913         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75914         failed.
75915
75916 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75917
75918         [BZ #10563]
75919         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75920         to make the syscall.
75921         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75922
75923         [BZ #12378]
75924         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75925         and fall back to matching as normal character if the string ends before
75926         the matching ']' is found.  This is what POSIX requires.
75927         * posix/testfnm.c: Adjust test result.
75928         * posix/globtest.sh: Adjust test result.  Add new test.
75929         * posix/tst-fnmatch.input: Likewise.
75930         * posix/tst-fnmatch2.c: Add new test.
75931
75932 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75933
75934         * elf/Makefile (check-execstack): Revert last change.  Depend on
75935         check-execstack.h.
75936         (check-execstack.h): New target.
75937         (generated): Add check-execstack.h.
75938         * elf/check-execstack.c: Include "check-execstack.h".
75939         (main): Revert last change.
75940         (handle_file): Return zero if GNU_STACK is absent and
75941         DEFAULT_STACK_PERMS doesn't include PF_X.
75942
75943 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75944
75945         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75946         in child fails because the descriptor is already closed.
75947         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75948         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75949         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75950
75951         [BZ #12397]
75952         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75953         syscall.
75954
75955         [BZ #10484]
75956         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75957         temporary buffer used to handle multi lookups locally.
75958         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75959
75960 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75961
75962         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75963         loader is ld.so.
75964
75965 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75966
75967         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75968         alignment for SSE2.
75969
75970 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75971
75972         [BZ #12394]
75973         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75974         characters.  When rounding increased number of integer digits recompute
75975         number of groups.
75976         * stdio-common/tst-grouping.c: New file.
75977         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75978
75979 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75980
75981         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75982         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75983
75984         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75985         void.
75986         * bits/select.h: Likewise.
75987
75988 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75989
75990         * po/ja.po: Update from translation team.
75991
75992 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75993
75994         [BZ #11155]
75995         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75996         implementation just like for lxstat, fxstatat, et al.
75997
75998 2010-12-27  Jim Meyering  <meyering@redhat.com>
75999
76000         [BZ #12348]
76001         * posix/regexec.c (build_trtable): Return failure indication upon
76002         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
76003
76004 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
76005
76006         [BZ #12201]
76007         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
76008         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
76009         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
76010         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
76011
76012         [BZ #12207]
76013         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
76014
76015         [BZ #12204]
76016         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
76017         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
76018
76019 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
76020
76021         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
76022         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
76023         script has SORT_BY_INIT_PRIORITY.
76024         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
76025         NO_CTORS_DTORS_SECTIONS is defined.
76026         * elf/soinit.c: Likewise.
76027         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
76028         NO_CTORS_DTORS_SECTIONS is defined.
76029         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
76030         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
76031         * sysdeps/sh/init-first.c: Likewise.
76032         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
76033
76034 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
76035
76036         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
76037         always use the slow path.
76038
76039 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
76040
76041         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
76042         similar rule which adds the sysdep directories to the header search in
76043         order to pick up the correct platform stackinfo.h.
76044         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
76045         perform test if it is, otherwise return successfully without testing.
76046         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
76047         DEFAULT_STACK_PERMS define in stackinfo.h.
76048         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
76049         defined in stackinfo.h.
76050         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
76051         DEFAULT_STACK_PERMS defined in stackinfo.h.
76052         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
76053         * sysdeps/ia64/stackinfo.h: Likewise.
76054         * sysdeps/s390/stackinfo.h: Likewise.
76055         * sysdeps/sh/stackinfo.h: Likewise.
76056         * sysdeps/sparc/stackinfo.h: Likewise.
76057         * sysdeps/x86_64/stackinfo.h: Likewise.
76058         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
76059         PF_X for powerpc64.  Retain PF_X for powerpc32.
76060
76061 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
76062
76063         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
76064         accurately.
76065         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
76066         GETDENTS_64BIT_ALIGNED.
76067
76068 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
76069
76070         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
76071
76072 2010-12-10  Andreas Schwab  <schwab@redhat.com>
76073
76074         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
76075         _GNU_SOURCE.
76076
76077         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
76078         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
76079         Remove __restrict.
76080         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
76081         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
76082
76083 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
76084
76085         [BZ #11655]
76086         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
76087         are initialized.
76088
76089 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
76090
76091         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
76092
76093 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
76094
76095         * po/it.po: Update from translation team.
76096
76097 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
76098
76099         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
76100         unused codes.
76101
76102 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
76103
76104         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
76105
76106 2010-11-24  Andreas Schwab  <schwab@redhat.com>
76107
76108         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
76109         specially.
76110         (gaih_getanswer_slice): Likewise.
76111
76112 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
76113
76114         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
76115
76116 2010-05-31  Petr Baudis  <pasky@suse.cz>
76117
76118         [BZ #11149]
76119         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
76120         silently even in the chroot mode.
76121
76122 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
76123
76124         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
76125         last patch a bit.  Pretty printing
76126
76127 2010-05-31  Petr Baudis <pasky@suse.cz>
76128
76129         [BZ #10085]
76130         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
76131         initialization of skip_initgroups_dyn.
76132
76133 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
76134
76135         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
76136         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
76137
76138 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
76139
76140         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
76141
76142 2010-11-11  Andreas Schwab  <schwab@redhat.com>
76143
76144         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
76145         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
76146         (tst-fnmatch-ENV): Set MALLOC_TRACE.
76147         ($(objpfx)tst-fnmatch-mem): New rule.
76148         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
76149         * posix/tst-fnmatch.c (main): Call mtrace.
76150
76151 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
76152
76153         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76154         Support Intel processor model 6 and model 0x2c.
76155
76156 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
76157
76158         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
76159           signed comparison.
76160
76161 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
76162
76163         [BZ #12205]
76164         * string/test-strncasecmp.c (check_result): New function.
76165         (do_one_test): Use it.
76166         (check1): New function.
76167         (test_main): Use it.
76168         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
76169         Support strcasecmp and strncasecmp.
76170
76171 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
76172
76173         [BZ #12194]
76174         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
76175         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76176
76177 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
76178
76179         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
76180         IFUNC support.
76181         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76182         memset-x86-64.
76183         * sysdeps/x86_64/multiarch/bzero.S: New file.
76184         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
76185         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
76186         * sysdeps/x86_64/multiarch/memset.S: New file.
76187         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
76188         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76189         Set bit_Prefer_SSE_for_memop for Intel processors.
76190         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
76191         Define.
76192         (index_Prefer_SSE_for_memop): Define.
76193         (HAS_PREFER_SSE_FOR_MEMOP): Define.
76194
76195 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
76196
76197         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
76198         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
76199
76200 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
76201
76202         [BZ #12191]
76203         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76204         (__x86_64_raw_data_cache_size_half): Likewise.
76205         (__x86_64_raw_shared_cache_size): Likewise.
76206         (__x86_64_raw_shared_cache_size_half): Likewise.
76207
76208         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76209         (__x86_64_raw_data_cache_size_half): Likewise.
76210         (__x86_64_raw_shared_cache_size): Likewise.
76211         (__x86_64_raw_shared_cache_size_half): Likewise.
76212         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
76213         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
76214         and __x86_64_raw_shared_cache_size_half.  Round
76215         __x86_64_data_cache_size_half, __x86_64_data_cache_size
76216         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
76217         to multiple of 256 bytes.
76218
76219 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
76220
76221         [BZ #12167]
76222         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
76223         of inacessible symlinks.  Verify result of symlink before returning it.
76224         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
76225         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
76226
76227 2010-10-28  Erich Ritz  <erichritz@gmail.com>
76228
76229         * math/math.h (isinf): Fix typo in comment.
76230
76231 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
76232
76233         * po/da.po: Update from translation team.
76234
76235 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
76236
76237         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
76238         is added to the list.
76239
76240 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76241             Ulrich Drepper  <drepper@gmail.com>
76242
76243         * elf/dl-object.c (_dl_new_object): Don't append the new object to
76244         the global list here.  Move code to...
76245         (_dl_add_to_namespace_list): ...here.  New function.
76246         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
76247         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
76248         * elf/dl-load.c (lose): Don't remove the element from the list.
76249         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
76250         (_dl_map_object): Likewise.
76251
76252 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
76253
76254         [BZ #12159]
76255         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
76256         into all bytes of SSE register.
76257         Patch by Richard Li <richardpku@gmail.com>.
76258
76259 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
76260
76261         [BZ #12140]
76262         * malloc/malloc.c (_int_free): Fill correct number of bytes when
76263         perturbing.
76264
76265 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
76266
76267         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
76268         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
76269         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
76270         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
76272         submachine.
76273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
76274
76275 2010-10-22  Andreas Schwab  <schwab@redhat.com>
76276
76277         * include/dlfcn.h (__RTLD_SECURE): Define.
76278         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
76279         mode & __RTLD_SECURE instead.
76280         (open_path): Rename preloaded parameter to secure.
76281         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
76282         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
76283         * elf/dl-deps.c (openaux): Likewise.
76284         * elf/rtld.c (struct map_args): Remove is_preloaded.
76285         (map_doit): Don't use it.
76286         (dl_main): Likewise.
76287         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
76288         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
76289
76290 2010-09-09  Andreas Schwab  <schwab@redhat.com>
76291
76292         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
76293         (sysd-rules-targets): Remove duplicates.
76294         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
76295         rtld-%.$o dependency.
76296
76297 2010-10-18  Andreas Schwab  <schwab@redhat.com>
76298
76299         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
76300         _dl_map_object do it.
76301
76302 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
76303
76304         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
76305         fast fma builtins, define the macros in the C99 standard.
76306         (FP_FAST_FMAF): Likewise.
76307         (FP_FAST_FMAL): Likewise.
76308         * sysdeps/x86_64/bits/mathdef.h: Likewise.
76309
76310         * bits/mathdef.h: Update copyright year.
76311         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76312
76313 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
76314
76315         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
76316         builtins, define the macros in the C99 standard.
76317         (FP_FAST_FMAF): Likewise.
76318         (FP_FAST_FMAL): Likewise.
76319         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
76320         multiply/add.
76321         (FP_FAST_FMAF): Likewise.
76322
76323 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
76324
76325         [BZ #3268]
76326         * math/libm-test.inc (fma_test): Some new testcases.
76327         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
76328         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
76329         y and infinite z.  Do multiplication by C already in long double.
76330         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
76331         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
76332         y and infinite z.  Do bitwise or of inexact bit into u.d.
76333         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
76334         * sysdeps/i386/fpu/s_fmaf.S: Removed.
76335         * sysdeps/i386/fpu/s_fma.S: Removed.
76336         * sysdeps/i386/fpu/s_fmal.S: Removed.
76337
76338 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
76339
76340         [BZ #3268]
76341         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
76342         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
76343         computation is not scheduled after fetestexcept.  Fix value
76344         of minimum denormal long double.
76345
76346 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
76347
76348         [BZ #3268]
76349         * math/libm-test.inc (fma_test): Add some more tests.
76350         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
76351         correctly.
76352
76353 2010-10-15  Andreas Schwab  <schwab@redhat.com>
76354
76355         * scripts/data/localplt-s390-linux-gnu.data: New file.
76356         * scripts/data/localplt-s390x-linux-gnu.data: New file.
76357
76358 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
76359
76360         [BZ #3268]
76361         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
76362         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
76363         instead of dbl-64.
76364         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76365         inlines.
76366         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76367         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76368         if one of x and y is very large and the other is subnormal.
76369         * sysdeps/s390/fpu/s_fmaf.c: New file.
76370         * sysdeps/s390/fpu/s_fma.c: New file.
76371         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76372         * sysdeps/powerpc/fpu/s_fma.S: New file.
76373         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76374         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76375         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76376
76377 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76378
76379         [BZ #3268]
76380         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76381         fma tests.
76382         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76383         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76384         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76385         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76386         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76387         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76388         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76389
76390 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76391
76392         [BZ #12078]
76393         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76394         * posix/bug-regex31.input: Add test case.
76395
76396 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76397
76398         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76399         * posix/bug-regex31.input: New file.
76400
76401         [BZ #12078]
76402         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76403         (parse_sub_exp): Fix last change, use postorder.
76404
76405         * posix/bug-regex31.c: New file.
76406         * posix/Makefile: Add rules to build and run bug-regex31.
76407
76408         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76409
76410         [BZ #12078]
76411         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76412
76413         [BZ #12108]
76414         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76415         to have entries in sys_siglist.
76416
76417         [BZ #12093]
76418         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76419         be NULL.
76420
76421 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76422
76423         [BZ #3268]
76424         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76425         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76426         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76427         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76428         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76429         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76430         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76431         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76432         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76433         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76434         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76435         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76436         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76437         * math/ftestexcept.c (fetestexcept): Likewise.
76438         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76439         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76440         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76441         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76442         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76443         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76444         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76445
76446 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76447
76448         [BZ #12107]
76449         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76450         newline.
76451
76452 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76453
76454         * string/bug-strstr1.c: New file.
76455         * string/Makefile: Add rules to build and run bug-strstr1.
76456
76457 2010-10-05  Eric Blake  <eblake@redhat.com>
76458
76459         [BZ #12092]
76460         * string/str-two-way.h (two_way_long_needle): Always clear memory
76461         when skipping input due to the shift table.
76462
76463 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76464
76465         [BZ #12005]
76466         * malloc/mcheck.c: Handle large requests.
76467
76468         [BZ #12077]
76469         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76470         for strncmp and strncasecmp.
76471         * string/stratcliff.c: Add tests for strcmp and strncmp.
76472         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76473
76474 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76475
76476         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76477         __set_fpscr.
76478
76479 2010-09-30  Andreas Jaeger  <aj@suse.de>
76480
76481         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76482         (CGROUP_SUPER_MAGIC): Define.
76483         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76484         Handle btrfs and cgroup file systems.
76485         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76486         Likewise.
76487
76488 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76489
76490         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76491         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76492
76493 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76494
76495         [BZ #12067]
76496         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76497         trying to locate the ELF header.
76498
76499 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76500
76501         [BZ #11611]
76502         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76503         Mask out sign-bit copies when constructing f_fsid.
76504
76505 2010-09-24  Petr Baudis <pasky@suse.cz>
76506
76507         * debug/stack_chk_fail_local.c: Add missing licence exception.
76508         * debug/warning-nop.c: Likewise.
76509
76510 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76511
76512         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76513         implementing getdents64 using getdents syscall, set d_type if
76514         __ASSUME_GETDENTS32_D_TYPE.
76515
76516 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76517
76518         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76519         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76520
76521 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76522
76523         [BZ #12037]
76524         * posix/unistd.h: Undo change of feature selection for ftruncate from
76525         2010-01-11.
76526
76527 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76528
76529         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76530         detection.
76531
76532 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76533
76534         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76535         fanotify_mark.
76536         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76537
76538 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76539
76540         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76541         variables after CHECK_SP call.
76542         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76543
76544 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76545             Ulrich Drepper  <drepper@redhat.com>
76546
76547         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76548         re-relocationg ld.so.
76549         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76550         _dl_init_paths call.
76551         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76552         here anymore.
76553
76554 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76555
76556         * resolv/res_init.c (__res_vinit): Count the default server we added.
76557
76558 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76559             Ulrich Drepper  <drepper@redhat.com>
76560
76561         [BZ #11968]
76562         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76563         (____longjmp_chk): Use %ebx for saving value across system call.
76564         Add unwind info.
76565
76566 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76567
76568         * manual/Makefile: Don't mix pattern rules with normal rules.
76569
76570 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76571
76572         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76573         operation.
76574         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76575         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76576         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76577         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76578         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76579         Likewise.
76580
76581 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76582
76583         [BZ #11979]
76584         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76585         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76586
76587 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76588
76589         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76590         * sysdeps/x86_64/addmul_1.S: Likewise.
76591         * sysdeps/x86_64/lshift.S: Likewise.
76592         * sysdeps/x86_64/mul_1.S: Likewise.
76593         * sysdeps/x86_64/rshift.S: Likewise.
76594         * sysdeps/x86_64/sub_n.S: Likewise.
76595         * sysdeps/x86_64/submul_1.S: Likewise.
76596
76597 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76598
76599         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76600         Define __sched_param instead of SCHED_* and sched_param when
76601         <bits/sched.h> is included with __need_schedparam defined.
76602         * bits/sched.h [__need_schedparam]
76603         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76604         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76605         (__defined_schedparam): Define to 1.
76606         (__sched_param): New structure, identical to sched_param.
76607         (__need_schedparam): Undefine.
76608
76609 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76610
76611         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76612         (epoll_create1): Declare.
76613
76614         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76615
76616 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76617
76618         [BZ #7066]
76619         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76620         shifting retval into place.
76621
76622 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76623
76624         * nis/rpcsvc/nis.h: Update copyright notice.
76625         * nis/rpcsvc/nis.x: Likewise.
76626         * nis/rpcsvc/nis_callback.h: Likewise.
76627         * nis/rpcsvc/nis_callback.x: Likewise.
76628         * nis/rpcsvc/nis_object.x: Likewise.
76629         * nis/rpcsvc/nis_tags.h: Likewise.
76630         * nis/rpcsvc/yp.h: Likewise.
76631         * nis/rpcsvc/yp.x: Likewise.
76632         * nis/rpcsvc/ypupd.h: Likewise.
76633         * nis/yp_xdr.c: Likewise.
76634         * nis/ypupdate_xdr.c: Likewise.
76635
76636         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76637         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76638         (pmap_getport): Use __libc_rpc_getport.
76639         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76640         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76641         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76642
76643 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76644
76645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76646         fanotify_mark.
76647
76648 2010-08-27  Roland McGrath  <roland@redhat.com>
76649
76650         * sysdeps/i386/i686/multiarch/Makefile
76651         (CFLAGS-varshift.c): New variable.
76652
76653 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76654
76655         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76656         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76657
76658         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76659
76660         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76661
76662 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76663
76664         * sysdeps/x86_64/strlen.S: Unroll the loop.
76665         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76666         strlen-sse2 strlen-sse2-bsf.
76667         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76668         __strlen_no_bsf if bit_Slow_BSF is set.
76669         (__strlen_sse42): Removed.
76670         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76671         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76672
76673 2010-08-25  Roland McGrath  <roland@redhat.com>
76674
76675         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76676         * sysdeps/x86_64/multiarch/varshift.c: New file.
76677         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76678         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76679         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76680         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76681
76682 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76683
76684         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76685         strlen-sse2 strlen-sse2-bsf.
76686         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76687         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76688         (__strlen_sse2): Removed.
76689         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76690         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76691         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76692         bit_Slow_BSF for Atom.
76693         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76694         (index_Slow_BSF): Define.
76695         (HAS_SLOW_BSF): Define.
76696
76697 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76698
76699         [BZ #10851]
76700         * resolv/res_init.c (__res_vinit): When no server address at all
76701         is given default to loopback.
76702
76703 2010-08-24  Roland McGrath  <roland@redhat.com>
76704
76705         * configure.in: Remove config-name.h generation.
76706         * configure: Regenerated.
76707         * config-name.in: File removed.
76708         * scripts/config-uname.sh: New file.
76709         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76710         ($(objdir)config-name.h): New target.
76711
76712         * sunrpc/rpc_parse.h: Avoid nested comment.
76713
76714 2010-08-24  Richard Henderson  <rth@redhat.com>
76715             Ulrich Drepper  <drepper@redhat.com>
76716             H.J. Lu  <hongjiu.lu@intel.com>
76717
76718         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76719         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76720         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76721         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76722         _mm_alignr_epi8 with _mm_loadu_si128.
76723         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76724         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76725         (__m128i_shift_right): Removed.
76726         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76727         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76728         * sysdeps/x86_64/multiarch/varshift.h: New file.
76729         * sysdeps/x86_64/multiarch/varshift.S: New file.
76730
76731 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76732
76733         * configure.in: Move assembler checks to before sysdep dir checking.
76734
76735 2010-08-20  Petr Baudis  <pasky@suse.cz>
76736
76737         * LICENSES: Sync the sunrpc license.
76738
76739 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76740
76741         * sunrpc/auth_des.c: Update copyright notice once again.
76742         * sunrpc/auth_none.c: Likewise.
76743         * sunrpc/auth_unix.c: Likewise.
76744         * sunrpc/authdes_prot.c: Likewise.
76745         * sunrpc/authuxprot.c: Likewise.
76746         * sunrpc/bindrsvprt.c: Likewise.
76747         * sunrpc/clnt_gen.c: Likewise.
76748         * sunrpc/clnt_perr.c: Likewise.
76749         * sunrpc/clnt_raw.c: Likewise.
76750         * sunrpc/clnt_simp.c: Likewise.
76751         * sunrpc/clnt_tcp.c: Likewise.
76752         * sunrpc/clnt_udp.c: Likewise.
76753         * sunrpc/clnt_unix.c: Likewise.
76754         * sunrpc/des_crypt.c: Likewise.
76755         * sunrpc/des_soft.c: Likewise.
76756         * sunrpc/get_myaddr.c: Likewise.
76757         * sunrpc/getrpcport.c: Likewise.
76758         * sunrpc/key_call.c: Likewise.
76759         * sunrpc/key_prot.c: Likewise.
76760         * sunrpc/openchild.c: Likewise.
76761         * sunrpc/pm_getmaps.c: Likewise.
76762         * sunrpc/pm_getport.c: Likewise.
76763         * sunrpc/pmap_clnt.c: Likewise.
76764         * sunrpc/pmap_prot.c: Likewise.
76765         * sunrpc/pmap_prot2.c: Likewise.
76766         * sunrpc/pmap_rmt.c: Likewise.
76767         * sunrpc/rpc/auth.h: Likewise.
76768         * sunrpc/rpc/auth_unix.h: Likewise.
76769         * sunrpc/rpc/clnt.h: Likewise.
76770         * sunrpc/rpc/des_crypt.h: Likewise.
76771         * sunrpc/rpc/key_prot.h: Likewise.
76772         * sunrpc/rpc/netdb.h: Likewise.
76773         * sunrpc/rpc/pmap_clnt.h: Likewise.
76774         * sunrpc/rpc/pmap_prot.h: Likewise.
76775         * sunrpc/rpc/pmap_rmt.h: Likewise.
76776         * sunrpc/rpc/rpc.h: Likewise.
76777         * sunrpc/rpc/rpc_des.h: Likewise.
76778         * sunrpc/rpc/rpc_msg.h: Likewise.
76779         * sunrpc/rpc/svc.h: Likewise.
76780         * sunrpc/rpc/svc_auth.h: Likewise.
76781         * sunrpc/rpc/types.h: Likewise.
76782         * sunrpc/rpc/xdr.h: Likewise.
76783         * sunrpc/rpc_clntout.c: Likewise.
76784         * sunrpc/rpc_cmsg.c: Likewise.
76785         * sunrpc/rpc_common.c: Likewise.
76786         * sunrpc/rpc_cout.c: Likewise.
76787         * sunrpc/rpc_dtable.c: Likewise.
76788         * sunrpc/rpc_hout.c: Likewise.
76789         * sunrpc/rpc_main.c: Likewise.
76790         * sunrpc/rpc_parse.c: Likewise.
76791         * sunrpc/rpc_parse.h: Likewise.
76792         * sunrpc/rpc_prot.c: Likewise.
76793         * sunrpc/rpc_sample.c: Likewise.
76794         * sunrpc/rpc_scan.c: Likewise.
76795         * sunrpc/rpc_scan.h: Likewise.
76796         * sunrpc/rpc_svcout.c: Likewise.
76797         * sunrpc/rpc_tblout.c: Likewise.
76798         * sunrpc/rpc_util.c: Likewise.
76799         * sunrpc/rpc_util.h: Likewise.
76800         * sunrpc/rpcinfo.c: Likewise.
76801         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76802         * sunrpc/rpcsvc/key_prot.x: Likewise.
76803         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76804         * sunrpc/rpcsvc/mount.x: Likewise.
76805         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76806         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76807         * sunrpc/rpcsvc/rex.x: Likewise.
76808         * sunrpc/rpcsvc/rstat.x: Likewise.
76809         * sunrpc/rpcsvc/rusers.x: Likewise.
76810         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76811         * sunrpc/rpcsvc/spray.x: Likewise.
76812         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76813         * sunrpc/rtime.c: Likewise.
76814         * sunrpc/svc.c: Likewise.
76815         * sunrpc/svc_auth.c: Likewise.
76816         * sunrpc/svc_authux.c: Likewise.
76817         * sunrpc/svc_raw.c: Likewise.
76818         * sunrpc/svc_run.c: Likewise.
76819         * sunrpc/svc_simple.c: Likewise.
76820         * sunrpc/svc_tcp.c: Likewise.
76821         * sunrpc/svc_udp.c: Likewise.
76822         * sunrpc/svc_unix.c: Likewise.
76823         * sunrpc/svcauth_des.c: Likewise.
76824         * sunrpc/xcrypt.c: Likewise.
76825         * sunrpc/xdr.c: Likewise.
76826         * sunrpc/xdr_array.c: Likewise.
76827         * sunrpc/xdr_float.c: Likewise.
76828         * sunrpc/xdr_mem.c: Likewise.
76829         * sunrpc/xdr_rec.c: Likewise.
76830         * sunrpc/xdr_ref.c: Likewise.
76831         * sunrpc/xdr_sizeof.c: Likewise.
76832         * sunrpc/xdr_stdio.c: Likewise.
76833
76834         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76835         handling.
76836
76837 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76838
76839         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76840
76841 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76842
76843         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76844         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76845         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76846         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76847         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76848         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76849         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76850         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76851         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76852         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76853         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76854         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76855         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76856         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76857
76858 2010-07-26  Anton Blanchard  <anton@samba.org>
76859
76860         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76861         * malloc/arena.c (heap_trim): Likewise.
76862
76863 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76864
76865         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76866         here.  Not...
76867         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76868         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76869
76870 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76871
76872         * sysdeps/i386/elf/Makefile: New file.
76873
76874 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76875
76876         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76877         from fanotify_init.
76878         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76879         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76880
76881 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76882
76883         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76884         of strncasecmp_l.
76885         * sysdeps/multiarch/strcmp.S: Likewise.
76886
76887 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76888
76889         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76890         strncase_l-nonascii.
76891         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76892         Add strncase_l-ssse3.
76893         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76894         * sysdeps/x86_64/strcmp.S: Likewise.
76895         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76896         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76897         * sysdeps/x86_64/strncase.S: New file.
76898         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76899         * sysdeps/x86_64/strncase_l.S: New file.
76900         * string/Makefile (strop-tests): Add strncasecmp.
76901         * string/test-strncasecmp.c: New file.
76902
76903         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76904         warning.
76905
76906         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76907         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76908
76909 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76910
76911         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76912
76913 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76914
76915         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76916         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76917         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76918
76919 2010-05-01  Alan Modra  <amodra@gmail.com>
76920
76921         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76922         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76923         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76924         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76925         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76926         tidying.  Don't tail-call __sigjmp_save for static lib.
76927         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76928         save location.
76929         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76930         (CALL_MCOUNT): Add eh info, and nop after bl.
76931         (TAIL_CALL_SYSCALL_ERROR): New macro.
76932         (PSEUDO_RET): Use it.
76933         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76934         Correct save location of integer regs and cr.
76935         (_dl_profile_resolve): Correct cr save location.  Delete nops
76936         after bl when SHARED.  Reduce cfi size a little by better
76937         placement of cfi directives.
76938         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76939         make a stack frame.  Instead use parm save area as a temp.
76940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76941         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76943         Don't make a stack frame for parent, use parm save area.
76944         Increase child stack frame to 112 bytes.  Don't save unused reg,
76945         and adjust reg usage.  Set up cfi on error recovery and
76946         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76948         (__makecontext): Add dummy nop after jump to exit.
76949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76950         Use correct parm save area and cr save, reduce stack frame.
76951         Correct cfi for possible PSEUDO_RET frame setup.
76952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76953         Branch to local label emitted by PSEUDO_RET rather than
76954         __syscall_error.
76955
76956 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76957
76958         [BZ #11904]
76959         * locale/programs/locale.c (print_assignment): New function.
76960         (show_locale_vars): Use it.
76961
76962 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76963
76964         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76965         field.
76966         (struct statfs64): Likewise.
76967         (_STATFS_F_FLAGS): Define.
76968         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76969         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76970         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76971         (ST_VALID): Define locally.
76972         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76973         __statvfs_getflags, use the provided value.
76974         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76975         __ASSUME_STATFS_F_FLAGS.
76976
76977         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76978
76979         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76980         Add sys/fanotify.h.
76981         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76982         fanotify_mask for GLIBC_2.13.
76983         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76984         fanotify_init and fanotify_mark.
76985         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76986         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76987
76988         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76989         Add prlimit.
76990         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76991         prlimit64 for GLIBC_2.13.
76992         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76993         prlimit64.
76994         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76995         syscall.
76996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76997         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76998         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76999         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
77000         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
77001         add prlimit alias.
77002         * sysdeps/unix/sysv/linux/prlimit.c: New file.
77003
77004         [BZ #11903]
77005         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
77006         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
77007
77008         * nss/Makefile: Add rules to build and run tst-nss-test1.
77009         * shlib-versions: Add entry for libnss_test1.
77010         * nss/nss_test1.c: New file.
77011         * nss/tst-nss-test1.c: New file.
77012
77013         * nss/nsswitch.c (__nss_database_custom): Define new variable.
77014         (__nss_configure_lookup): Set appropriate entry in
77015         __nss_configure_lookup to true.
77016         * nss/nsswitch.h: Define enum with indeces of databases in
77017         databases and __nss_database_custom arrays.  Declare
77018         __nss_database_custom.
77019         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
77020         to avoid using nscd when custom rules are installed.
77021         * nss/getXXbyYY_r.c: Likewise.
77022         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
77023
77024         * nss/nss_files/files-parse.c: Whitespace fixes.
77025
77026 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
77027
77028         [BZ #11883]
77029         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
77030         * posix/fnmatch_loop.c: Likewise.
77031
77032 2010-07-17  Andi Kleen  <ak@linux.intel.com>
77033
77034         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
77035         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
77036         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
77037         * Versions.def [GLIBC_2.13]: Add.
77038
77039 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
77040
77041         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77042         Also fail if tpwd after pwuid call is NULL.
77043
77044 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77045
77046         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
77047         when converting to ms.
77048
77049 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77050
77051         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
77052         EOPNOTSUPP errors with ENOTTY.
77053         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
77054         EOPNOTSUPP errors with ENOTTY.
77055
77056 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
77057
77058         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
77059         Add strcasecmp_l-ssse3.
77060         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
77061         strcasecmp.
77062         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
77063         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
77064         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
77065
77066 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
77067
77068         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
77069
77070         * string/Makefile (strop-tests): Add strcasecmp.
77071         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
77072         strcasecmp_l-nonascii.
77073         (gen-as-const-headers): Add locale-defines.sym.
77074         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
77075         * sysdeps/x86_64/strcasecmp.S: New file.
77076         * sysdeps/x86_64/strcasecmp_l.S: New file.
77077         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
77078         * sysdeps/x86_64/locale-defines.sym: New file.
77079         * string/test-strcasecmp.c: New file.
77080
77081         * string/test-strcasestr.c: Test both ends of the range of characters.
77082         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
77083
77084 2010-07-29  Roland McGrath  <roland@redhat.com>
77085
77086         [BZ #11856]
77087         * manual/locale.texi (Yes-or-No Questions): Fix example code.
77088
77089 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
77090
77091         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
77092         for ld.so.
77093
77094 2010-07-27  Andreas Schwab  <schwab@redhat.com>
77095
77096         * manual/memory.texi (Malloc Tunable Parameters): Document
77097         M_PERTURB.
77098
77099 2010-07-26  Roland McGrath  <roland@redhat.com>
77100
77101         [BZ #11840]
77102         * configure.in (-fgnu89-inline check): Set and substitute
77103         gnu89_inline, not libc_cv_gnu89_inline.
77104         * configure: Regenerated.
77105         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
77106
77107 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
77108
77109         * string/test-strnlen.c: New file.
77110         * string/Makefile (strop-tests): Add strnlen.
77111         * string/tester.c (test_strnlen): Add a few more test cases.
77112         * string/tst-strlen.c: Better error reporting.
77113
77114         * sysdeps/x86_64/strnlen.S: New file.
77115
77116 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
77117
77118         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
77119         lower-latency instructions.
77120
77121 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
77122
77123         * string/test-strcasestr.c: New file.
77124         * string/test-strstr.c: New file.
77125         * string/Makefile (strop-tests): Add strstr and strcasestr.
77126         * string/str-two-way.h: Don't undefine MAX.
77127         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
77128
77129 2010-07-21  Andreas Schwab  <schwab@redhat.com>
77130
77131         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77132         strcasestr-nonascii.
77133         (CFLAGS-strcasestr-nonascii.c): Define.
77134         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
77135         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
77136         Remove unused attribute.
77137
77138 2010-07-20  Roland McGrath  <roland@redhat.com>
77139
77140         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
77141         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
77142         ld.so.cache was broken.  With it, there is no way to disable dsocaps
77143         like LD_HWCAP_MASK can disable hwcaps.
77144
77145 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77146
77147         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
77148
77149 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
77150
77151         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
77152         call in strcasestr.
77153         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
77154         __strcasestr_sse42_nonascii.
77155         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
77156         strcasestr-nonascii.c.
77157         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
77158
77159 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
77160
77161         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
77162         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
77163         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
77164         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
77165
77166 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
77167
77168         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
77169         fcntl.
77170
77171 2010-07-06  Andreas Schwab  <schwab@redhat.com>
77172
77173         [BZ #11577]
77174         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
77175         dl_signal_cerror.
77176
77177 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
77178
77179         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
77180         _PC_PIPE_BUF using F_GETPIPE_SZ.
77181
77182 2010-07-05  Roland McGrath  <roland@redhat.com>
77183
77184         * manual/arith.texi (Rounding Functions): Fix rint description
77185         implicit in round description.
77186
77187 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
77188
77189         * elf/Makefile: Fix linking for a few tests to make recent linker
77190         happy.
77191
77192 2010-06-30  Andreas Schwab  <schwab@redhat.com>
77193
77194         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
77195         $(common-objpfx)libc_nonshared.a.
77196
77197 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
77198
77199         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
77200         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
77201         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77202         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77203         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
77204         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
77205         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77206         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
77208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
77209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
77210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
77212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
77214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
77215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
77216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
77217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
77219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
77221         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
77222         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
77223         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
77224         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
77225         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
77226         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
77227         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
77228         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
77229         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
77230         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
77231         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
77232         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
77233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
77234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
77235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
77236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
77237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
77238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
77239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
77240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
77241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
77242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
77243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
77244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
77245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
77246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
77247
77248 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
77249
77250         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
77251         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
77252         * string/memmove.c (memmove): Renamed to ...
77253         (MEMMOVE): ...this.  Default to memmove.
77254         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
77255         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
77256         (END_CHK): Define.
77257         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77258         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
77259         mempcpy-ssse3-back memmove-ssse3-back.
77260         * sysdeps/x86_64/multiarch/bcopy.S: New file .
77261         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
77262         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
77263         * sysdeps/x86_64/multiarch/memcpy.S: New file.
77264         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
77265         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
77266         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
77267         * sysdeps/x86_64/multiarch/memmove.c: New file.
77268         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
77269         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
77270         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
77271         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
77272         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
77273         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
77274         Define.
77275         (index_Fast_Copy_Backward): Define.
77276         (HAS_ARCH_FEATURE): Define.
77277         (HAS_FAST_REP_STRING): Define.
77278         (HAS_FAST_COPY_BACKWARD): Define.
77279
77280 2010-06-21  Andreas Schwab  <schwab@redhat.com>
77281
77282         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77283         Restore proper fallback handling.
77284
77285 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
77286
77287         [BZ #11701]
77288         * posix/group_member.c (__group_member): Correct checking loop.
77289
77290         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
77291         OOM in getpwuid_r correctly.  Return error number when the caller
77292         should return, otherwise -1.
77293         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
77294         call returning > 0 value.
77295         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
77296
77297 2010-06-07  Andreas Schwab  <schwab@redhat.com>
77298
77299         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
77300         libc_nonshared.a from targets in modules-names.
77301
77302 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
77303
77304         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
77305         requires it.
77306
77307 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
77308
77309         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
77310         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
77311         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
77312         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
77313
77314 2010-06-02  Andreas Schwab  <schwab@redhat.com>
77315
77316         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
77317
77318 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
77319
77320         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
77321         and F_GETPIPE_SZ.
77322         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77323         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
77324         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
77325         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77326         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
77327         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
77328
77329 2010-06-14  Roland McGrath  <roland@redhat.com>
77330
77331         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
77332
77333 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
77334
77335         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
77336         __REDIRECT followed by __THROW.
77337         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
77338         * posix/getopt.h (getopt): Likewise.
77339
77340 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77341
77342         * hurd/lookup-at.c (__file_name_lookup_at): Accept
77343         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
77344         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
77345         in AT_FLAGS.
77346         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
77347         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
77348
77349 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
77350
77351         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
77352
77353 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
77354
77355         [BZ #11640]
77356         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77357         Properly check family and model.
77358
77359 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
77360
77361         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
77362
77363 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77364
77365         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77366
77367 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77368
77369         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77370         symbol reference.
77371
77372 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77373
77374         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77375         symbol reference.
77376
77377 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77378
77379         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77380         and internal_recvmmsg.
77381         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77382         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77383         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77384         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77385
77386         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77387         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77388         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77389
77390 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77391
77392         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77393
77394 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77395
77396         POWER7 optimizations.
77397         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77398         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77399
77400 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77401
77402         * version.h: Update for 2.13 development version.
77403
77404 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77405
77406         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77407         exceptions.  Return 0.
77408
77409 2010-05-07  Roland McGrath  <roland@redhat.com>
77410
77411         * elf/ldconfig.c (main): Add a const.
77412
77413 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77414
77415         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77416         (args_options): Add no-idn option.
77417         (ahosts_keys_int): Add idn_flags to ai_flags.
77418         (parse_option): Handle 'i' option to clear idn_flags.
77419
77420         * malloc/malloc.c (_int_free): Possible race in the most recently
77421         added check.  Only act on the data if no current modification
77422         happened.
77423
77424 See ChangeLog.17 for earlier changes.